Click to See Complete Forum and Search --> : Help me test quickly please
StrangerInBeijing
Jul 1st, 2008, 09:46 PM
Hi,
I just fixed an annoying bug. My site s hold load in English unless your ip address is from China or Hong Kong.
Would you guys still awake do me a favor, go here (http://www.studypath.cn) and see if the site loads in English?
I'm in China now so hard to check. Boss in Ireland and was complaining site still load in Chinese there. So fixed bug (I think) and uploaded it, just wanna confirm before he get online and bite my head off.
penagate
Jul 1st, 2008, 10:00 PM
I see English text in the three central content columns with Chinese everywhere else.
Did you consider using language negotiation rather than IP address to determine the initial language?
StrangerInBeijing
Jul 1st, 2008, 10:03 PM
You are not in China or Hong Kong right?
Language negotiation? What's that?
penagate
Jul 1st, 2008, 10:30 PM
I am in Australia. My browser is configured to accept Australian English (en-AU), British English (en-GB), and then any flavour of English (en), in that order. You can use the $_SERVER['HTTP_ACCEPT_LANGUAGE'] variable to determine what language to serve initially.
My Accept-Language string looks like this:
en-au,en-gb;q=0.7,en;q=0.3
The 'q' value is a weighting. In the absence of q-values the order of appearance should be considered instead. For example, a string of "zh,en" indicates that the user prefers Chinese, but will take English if Chinese is not available. You should serve them Chinese, unless they provide some other token indicating an explicit choice of language, such as a cookie from a previous visit, or a token in the URL. My string indicates that I cannot comprehend Chinese at all; you should serve me English unless either I have previously visited your site and indicated that I want to see Chinese, or I used a URL that specifies the language.
I did have a link to an excellent set of notes on language negotiation, but sadly the page appears to have been removed.
dclamp
Jul 1st, 2008, 11:40 PM
i see all english. the pictures contain Chinese though.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.