Saturday, January 17, 2009

How to change locale in Mozilla Firefox

... or How to change language in Mozilla Firefox ...
... or How to change the language of the Firefox menu bar
...

Purpose:
We might need to switch to a different language in Mozilla Firefox (User Interface, Spell Checker Dictionary, Website content and error messages) to test applications behavior with various internationalized testing conditions (localization or internationalization testing or automatic Globalization Support)

Description:

On Windows
We'll download any Windows specific language version from http://www.mozilla.com/en-US/firefox/all.html#languages

After installing all consecutive specific versions to the same path (every language must be downloaded and installed), we can manually change the following Mozilla Firefox variables.

Typing about:config on the address var, we can filter and change variables (with the right Windows permissions):

general.useragent.locale
intl.accept_languages
spellchecker.dictionary
extensions.qls*

Possible values:http://www.loc.gov/standards/iso639-2/php/code_list.php
(ISO 639-1 Code)

IE. (en,en-us,sv,sv-se)

Another easy and versatile way is to install Firefox Add-On "Quick Locale Switcher"
https://addons.mozilla.org/en-US/firefox/addon/1333
It allows you to quickly change and apply a different locale related setting from the tools menu, the statusbar, or your Toolbar.

After selected language and restarted Mozilla Firefox, our browser automatically goes to the right place.
ie.
en-US
http://www.mozilla-europe.org/en/
sv-SE
http://sv-se.www.mozilla.com/sv-SE/
it-IT
http://www.mozilla-europe.org/it/

On Linux
We'll download any Linux specific language version from http://www.mozilla.com/en-US/firefox/all.html#languages

We can decompress to an specific folder (one per language) and call the right one by some script and install Firefox Add-On "Quick Locale Switcher" from https://addons.mozilla.org/en-US/firefox/addon/1333

NOTE: we can also install OPIE from https://addons.mozilla.org/en-US/firefox/addon/6152 or FEBE https://addons.mozilla.org/en-US/firefox/addon/2109 to selectively backup and restore extensions if we want to try different configurations.
Or simply do backup (Firefox_Dir\defaults\profile) = file prefs.js

Links, References:
http://kb.mozillazine.org/General.useragent.locale
http://www.loc.gov/standards/iso639-2/php/code_list.php
http://wpkg.org/Firefox
https://addons.mozilla.org/en-US/firefox/addon/1333
http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries

http://preferential.mozdev.org/preferences.html

1 comment:

Anonymous said...
This comment has been removed by a blog administrator.

Oracle Search