Norwegian locale trouble in Dapper + Firefox

Erling Ringen Elvsrud systemansvarlig at vagaungdomsskule.no
Fri May 5 10:50:46 UTC 2006


Hello,

I want to use Norwegian where possible in Dapper. In Norway we have two
variants of written Norwegian, Nynorsk (nn) and Bokmål (nb). 
I want to use Nynorsk where it is available and fall back to Bokmål if
it is not. 

in bash I type locale and the output looks promising:

LANG=nn_NO.UTF-8
LANGUAGE=nn_NO:nn:no_NO:no:nb_NO:nb:en_GB:en
LC_CTYPE="nn_NO.utf8"
LC_NUMERIC="nn_NO.utf8"
LC_TIME="nn_NO.utf8"
LC_COLLATE="nn_NO.utf8"
LC_MONETARY="nn_NO.utf8"
LC_MESSAGES="nn_NO.utf8"
LC_PAPER="nn_NO.utf8"
LC_NAME="nn_NO.utf8"
LC_ADDRESS="nn_NO.utf8"
LC_TELEPHONE="nn_NO.utf8"
LC_MEASUREMENT="nn_NO.utf8"
LC_IDENTIFICATION="nn_NO.utf8"
LC_ALL=nn_NO.utf8



locale -a:

C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
nb_NO
nb_NO.utf8
nn_NO.utf8
POSIX


I have installed the mozilla-firefox-locale-nb and when I click on
Tools->Extensions I see the Norwegian bokmål language pack.

My question is: How can I enable it in Firefox? I still have english
language! I have tried many things like using the UILocale switch when
starting Firefox from the console. I have also tried to change the 
general.useragent.locale variable (about:config in location) to many
different values like nb_NO.utf8, but it is still not working.

Norwegian locales seems to work properly in most other programs.

As far as I have understood the line:
"LANGUAGE=nn_NO:nn:no_NO:no:nb_NO:nb:en_GB:en"

Prioritizes locales with nn_NO in first place, then nn(?), and it seems
to work in other programs (e.g. Gimp is only available in Bokmål,
Evolution uses Nynorsk).

Why are the locale names so different from the output of locale -a?

Any suggestions are appreciated,

Erling










More information about the ubuntu-users mailing list