Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Metatag content in two languages

Metatag content in two languages

Scheduled Pinned Locked Moved Web Development
databasehelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    johncogan
    wrote on last edited by
    #1

    Hi My site in development is using a dynamic system that outputs metatag content and page titles stored in the database for each page, with defaults to catch any situation where no values exist for a particular page. Now the crunch for me here is that the page is to be aimed at two audiences in particular. International and German speaking. Currently it is outputing content in english but I need to somehow reliably determine (using ASP3) if the incoming user (or crawler/robot for that instance) is from a german domain so that meta tag content and page titles are in german. This is especially important (in my situation) for indexing on google.de Or does it not matter in this instance. Cheers for any help in this matter. John

    P M 2 Replies Last reply
    0
    • J johncogan

      Hi My site in development is using a dynamic system that outputs metatag content and page titles stored in the database for each page, with defaults to catch any situation where no values exist for a particular page. Now the crunch for me here is that the page is to be aimed at two audiences in particular. International and German speaking. Currently it is outputing content in english but I need to somehow reliably determine (using ASP3) if the incoming user (or crawler/robot for that instance) is from a german domain so that meta tag content and page titles are in german. This is especially important (in my situation) for indexing on google.de Or does it not matter in this instance. Cheers for any help in this matter. John

      P Offline
      P Offline
      Paul Watson
      wrote on last edited by
      #2

      johncogan wrote: Currently it is outputing content in english but I need to somehow reliably determine (using ASP3) if the incoming user (or crawler/robot for that instance) is from a german domain so that meta tag content and page titles are in german. This is especially important (in my situation) for indexing on google.de Firstly there is no 100% reliable method, some Germans are going to slip through and some non-Germans are going to be tagged as Germans. So make sure you have a "English/German" toggle on the site that people can click. Ok, if 100% of your traffic is coming from Google.de searches then just do a referrer check. It is available through the ASP Headers. The other way is to get the IP and then ascertain if it might be of German origin. Have a look at GeoIP right here on CP for this. :) Enjoy.

      Paul Watson
      Bluegrass
      Cape Town, South Africa

      Roger Wright wrote: Using a feather is kinky; using the whole chicken is perverted!

      J 1 Reply Last reply
      0
      • P Paul Watson

        johncogan wrote: Currently it is outputing content in english but I need to somehow reliably determine (using ASP3) if the incoming user (or crawler/robot for that instance) is from a german domain so that meta tag content and page titles are in german. This is especially important (in my situation) for indexing on google.de Firstly there is no 100% reliable method, some Germans are going to slip through and some non-Germans are going to be tagged as Germans. So make sure you have a "English/German" toggle on the site that people can click. Ok, if 100% of your traffic is coming from Google.de searches then just do a referrer check. It is available through the ASP Headers. The other way is to get the IP and then ascertain if it might be of German origin. Have a look at GeoIP right here on CP for this. :) Enjoy.

        Paul Watson
        Bluegrass
        Cape Town, South Africa

        Roger Wright wrote: Using a feather is kinky; using the whole chicken is perverted!

        J Offline
        J Offline
        johncogan
        wrote on last edited by
        #3

        Cheers for this Paul, on thinking on it, I think trying to seperate the two is going to be difficult so will probably have to translate the site into german at a later date. Now all I need to find is someone who can read/write german :/ Good to see there is a visible SA presence on this site. I am in the UK/London and missing the World Cup :(

        1 Reply Last reply
        0
        • J johncogan

          Hi My site in development is using a dynamic system that outputs metatag content and page titles stored in the database for each page, with defaults to catch any situation where no values exist for a particular page. Now the crunch for me here is that the page is to be aimed at two audiences in particular. International and German speaking. Currently it is outputing content in english but I need to somehow reliably determine (using ASP3) if the incoming user (or crawler/robot for that instance) is from a german domain so that meta tag content and page titles are in german. This is especially important (in my situation) for indexing on google.de Or does it not matter in this instance. Cheers for any help in this matter. John

          M Offline
          M Offline
          markkuk
          wrote on last edited by
          #4

          Look for the "Accept-Language:" HTTP header, and see if it has "de" includes with higher priority than "en"

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups