LiveSearch

Powered by vanilla & lovin' it!

    •  
      CommentAuthorechoes
    • CommentTimeFeb 27th 2007
     
    HI,

    I have a client who has a business based in Japan (www.q-signs.com). I am currently designing his US/English version.

    He wants the English version to have a url of www.q-sings.com/us. He wants me to code in a function that looks at your location and either directs you to the English or Japanese based on your location.

    I noticed one code on this, but couldn't make anything out of it. Does anyone have any decent tut's on this?

    Thanks!
    Nick
    •  
      CommentAuthorihc
    • CommentTimeFeb 27th 2007
     
    what server?
    •  
      CommentAuthornimmot
    • CommentTimeFeb 27th 2007 edited
     
    •  
      CommentAuthorchris
    • CommentTimeFeb 28th 2007
     
    i know it's the way your client wants it and all... but don't you think it would be better to let the user choose which language they would prefer to view the site in?
    •  
      CommentAuthorihc
    • CommentTimeFeb 28th 2007
     
    ^ ~nods
    •  
      CommentAuthormichael
    • CommentTimeFeb 28th 2007 edited
     
    you could use a (php-)script which checks what languages your browser is accepting. if japanese is accepted you can send the browser/user to the japanese content. otherwise send him/her/it to the english content. that way you assure that other languages (or even browsers with no language set) get diverted to the english pages as well.
    all in all i follow chris and ihc there: allow the user to view the site in the language he wants to


    edit: thers also an apache web server module called mod_negotiation. you simply create two versions of the file (e.g. welcome.html.en and welcome.html.jp). the web server checks which languages are accepted and is serving the appropriate page to the user. your hosting provider / server administrator probably has to activate and configure this module first tho.
    •  
      CommentAuthorihc
    • CommentTimeFeb 28th 2007 edited
     
    michael:edit: thers also an apache web server module called mod_negotiation. you simply create two versions of the file (e.g. welcome.html.en and welcome.html.jp). the web server checks which languages are accepted and is serving the appropriate page to the user. your hosting provider / server administrator probably has to activate and configure this module first tho.


    ^ ~nods again - that's why i was asking what the server was - i was trying to work out how to offer bi-lingual german / english pages also and in the end came down to let the user decide.

    safari by default accepts many of the languages installed on your system - if you weren't picky about customizing your OS install so mac users may get sent the japanese form by mistake (small market share does it matter)
    •  
      CommentAuthorechoes
    • CommentTimeFeb 28th 2007 edited
     
    As much as I wish I could tell my client what to do, this is an instance where he wants this, and I have to do it.

    And its looking like I wont have the capacity to really change too much of anything on the Japanese site... I would just be able to email the code to them and tell them where to stick it. And they might have some english link off to the side somewhere at their discretion. Im not completely clear on the matter, but more or less, Im not getting paid enough to care that much.

    Thanks for the help! :)
    •  
      CommentAuthorihc
    • CommentTimeFeb 28th 2007
     
    tell them where to stick it
    •  
      CommentAuthorchris
    • CommentTimeFeb 28th 2007
     
    ^ ~nods
    •  
      CommentAuthormichael
    • CommentTimeFeb 28th 2007
     
    ^ ~ also nods
    •  
      CommentAuthorechoes
    • CommentTimeFeb 28th 2007
     
    damn noders!