473,324 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

How to set Firefox default language to test internationalization?

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.
Jun 27 '08 #1
6 6549
Scripsit pl*******@yahoo.com:
I've altered the PHP underlying a website to support
a few languages other than English,
Meaning what?
but the Firefox version that
I'm using is of course the English-language one.
Is that relevant? How?
When I set the language in the preferences e.g. to French,
In the browser? Surely?
the website still thinks the browser is English.
No it doesn't.
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/

Jun 27 '08 #2
In article
<e2**********************************@d77g2000hsb. googlegroups.com>,
pl*******@yahoo.com wrote:
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
Jun 27 '08 #3
pl*******@yahoo.com schreef:
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.
Jun 27 '08 #4
On Sat, 31 May 2008 17:45:35 +0200, <pl*******@yahoo.comwrote:
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
Jun 27 '08 #5
..oO(Rik Wasmus)
>On Sat, 31 May 2008 17:45:35 +0200, <pl*******@yahoo.comwrote:
>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
Jun 27 '08 #6
On 3 juin, 14:55, Michael Fesser <neti...@gmx.dewrote:
.oO(Rik Wasmus)
On Sat, 31 May 2008 17:45:35 +0200, <plenty...@yahoo.comwrote:
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
Jul 26 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Keith MacDonald | last post by:
Hello, Is there a portable (at least for VC.Net and g++) method to convert text between wchar_t and char, using the standard library? I may have missed something obvious, but the section on...
6
by: Mark Olbert | last post by:
The doPostBack javascript functioning is not submitting the page when called by linkbuttons (or an autopostback checkbox, for that matter). I'm aware of a problem with Netscape browsers and the...
1
by: KPS | last post by:
I'm attempting to create a simple treeview-like behavior in JavaScript. The desired behavior happens in IE but I cannot get the same to happen in FireFox. The primary thing I want to accomplish...
5
by: toldyouso | last post by:
The following script works in IE but in Firefox errors with the msg Enumerator is not defined. <html> <head> <meta name="vs_defaultClientScript" content="JavaScript"> <script...
9
by: Dave | last post by:
Hi, I've been trawling the web for answer to my problem with no luck although I'm hardly alone it seems! Below is the generated source for an ASP page that posts a value called 'album' to...
7
by: 80s.arcade | last post by:
Hi. Please take a look at this page: http://tinyurl.com/s2l8w In IE6, putting the mouse on each of the two items highlights the word in a blue (different image) and shows a tool tip. In...
3
by: plenty900 | last post by:
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...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
5
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hallo, I have a radiobuttonlist control that is added on a custom Web User Control. This control has a property that exposes the SelectedIndex property of the embedded radiobuttonlist. When...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.