HighDots Forums  

How to set Firefox default language to test internationalization?

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss How to set Firefox default language to test internationalization? in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
plenty900@yahoo.com
 
Posts: n/a

Default How to set Firefox default language to test internationalization? - 05-31-2008 , 10:45 AM






Hi folks,

I've altered the PHP underlying a website to support
a few languages other than English, but the Firefox version that
I'm using is of course the English-language one.
When I set the language in the preferences e.g. to French,
the website still thinks the browser is English. Is there a way
to properly change the browser language?

Thanks.

Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: How to set Firefox default language to test internationalization? - 05-31-2008 , 11:38 AM






Scripsit plenty900 (AT) yahoo (DOT) com:

Quote:
I've altered the PHP underlying a website to support
a few languages other than English,
Meaning what?

Quote:
but the Firefox version that
I'm using is of course the English-language one.
Is that relevant? How?

Quote:
When I set the language in the preferences e.g. to French,
In the browser? Surely?

Quote:
the website still thinks the browser is English.
No it doesn't.

Quote:
Is there a way
to properly change the browser language?
That wouldn't be an _authoring_ problem, would it?

Please explain in concrete terms what you have done. Start from giving
us the URL. You probably need to reveal some PHP code too.

Followups trimmed to alt.html, since this does not seem to be about HTML
authoring in the strict sense applicable in c.i.w.a.h.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #3  
Old   
dorayme
 
Posts: n/a

Default Re: How to set Firefox default language to test internationalization? - 05-31-2008 , 07:18 PM



In article
<e22a08c1-6097-49b8-87ff-b15da3a4a735 (AT) d77g2000hsb (DOT) googlegroups.com>,
plenty900 (AT) yahoo (DOT) com wrote:

Quote:
the website still thinks the browser is English
Mori and his wife were dining in a Kosher restaurant in New York when
the manager spots them.

Hey, Mori! Good to see you.

Oy, Saul, I didn't know you went into the restaurant business? You were
in used cars back then, huh! Listen here, I am so impressed by how well
and politely your Chinese waiter speaks Yiddish!"

Ssshhi! I taught him - he is applying for American citizenship - he
thinks it is English.

--
dorayme


Reply With Quote
  #4  
Old   
Roderik
 
Posts: n/a

Default Re: How to set Firefox default language to test internationalization? - 05-31-2008 , 09:17 PM



plenty900 (AT) yahoo (DOT) com schreef:
Quote:
Hi folks,

I've altered the PHP underlying a website to support
a few languages other than English, but the Firefox version that
I'm using is of course the English-language one.
When I set the language in the preferences e.g. to French,
the website still thinks the browser is English. Is there a way
to properly change the browser language?

Thanks.
Type in the address bar:
about:config

You will get a list of settings. Search for "en-" and you see some
language settings.


Reply With Quote
  #5  
Old   
Rik Wasmus
 
Posts: n/a

Default Re: How to set Firefox default language to test internationalization? - 06-02-2008 , 01:03 PM



On Sat, 31 May 2008 17:45:35 +0200, <plenty900 (AT) yahoo (DOT) com> wrote:
Quote:
I've altered the PHP underlying a website to support
a few languages other than English, but the Firefox version that
I'm using is of course the English-language one.
When I set the language in the preferences e.g. to French,
the website still thinks the browser is English. Is there a way
to properly change the browser language?
Euhm, I never had any trouble checking the Accept-Language header in PHP&
altering my preferences with FireFox...? Another language to the top / as
prefered was perfectly reflected in that header. If yours doesn't, search
for, and possibly file, a bug report. Unless you are mistakingly trying to
parse the User-Agent string for language-indications. In which case: don't.

Test:
1) English on top, Dutch as second:
Accept-Language: en-gb,en;q=0.7,nl;q=0.3

2) German on top, French as second
Accept-Language: de,fr;q=0.5

No problems here. I do seem to have an old version (2.0.0.14), can't
imagine they broke in further releases though, will check tomorrow with
FF3.

(dropped alt.html, newsserver doesn't carry it).
--
Rik Wasmus
....spamrun finished


Reply With Quote
  #6  
Old   
Michael Fesser
 
Posts: n/a

Default Re: How to set Firefox default language to test internationalization? - 06-03-2008 , 07:55 AM



..oO(Rik Wasmus)

Quote:
On Sat, 31 May 2008 17:45:35 +0200, <plenty900 (AT) yahoo (DOT) com> wrote:
I've altered the PHP underlying a website to support
a few languages other than English, but the Firefox version that
I'm using is of course the English-language one.
When I set the language in the preferences e.g. to French,
the website still thinks the browser is English. Is there a way
to properly change the browser language?

Euhm, I never had any trouble checking the Accept-Language header in PHP &
altering my preferences with FireFox...? Another language to the top / as
prefered was perfectly reflected in that header. If yours doesn't, search
for, and possibly file, a bug report. Unless you are mistakingly trying to
parse the User-Agent string for language-indications. In which case: don't.

Test:
1) English on top, Dutch as second:
Accept-Language: en-gb,en;q=0.7,nl;q=0.3

2) German on top, French as second
Accept-Language: de,fr;q=0.5

No problems here. I do seem to have an old version (2.0.0.14), can't
imagine they broke in further releases though, will check tomorrow with
FF3.
It could also be a bug in his script. If you parse the Accept-Language
header, you should also take the quality parameters into account or you
might get unexpected results.

Micha


Reply With Quote
  #7  
Old   
gitelapasserelle@gmail.com
 
Posts: n/a

Default Re: How to set Firefox default language to test internationalization? - 07-26-2008 , 06:18 PM



On 3 juin, 14:55, Michael Fesser <neti... (AT) gmx (DOT) de> wrote:
Quote:
.oO(Rik Wasmus)



On Sat, 31 May 2008 17:45:35 +0200, <plenty... (AT) yahoo (DOT) com> wrote:
I've altered the PHP underlying a website to support
a few languages other than English, but the Firefox version that
I'm using is of course the English-language one.
When I set the language in the preferences e.g. to French,
the website still thinks the browser is English. Is there a way
to properly change the browser language?

Euhm, I never had any trouble checking the Accept-Language header in PHP& *
altering my preferences with FireFox...? Another language to the top / as *
prefered was perfectly reflected in that header. If yours doesn't, search *
for, and possibly file, a bug report. Unless you are mistakingly trying to *
parse the User-Agent string for language-indications. In which case: don't.

Test:
1) English on top, Dutch as second:
* *Accept-Language: en-gb,en;q=0.7,nl;q=0.3

2) German on top, French as second
* *Accept-Language: de,fr;q=0.5

No problems here. I do seem to have an old version (2.0.0.14), can't *
imagine they broke in further releases though, will check tomorrow with *
FF3.

It could also be a bug in his script. If you parse the Accept-Language
header, you should also take the quality parameters into account or you
might get unexpected results.

Micha
Hello
use Quick Locale Switcher 1.6.5.9 extension for firefox maybe
https://addons.mozilla.org/fr/firefox/addon/1333


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.