[i18n] locale

Per-Stian Vatne psv@orsta.org
Mon, 27 May 2002 13:44:19 +0200


Siterer Jan Schneider <jan@horde.org>:

| It works fine here, even without the nb_NO locale being installed on my
| system. Did you try the tests in po/README to find out if the problem is on
| the system or the php side?

# ls -l |grep NO
-rw-r--r--    1 root     wheel       15546 Feb  8 14:01 nb_NO.po
-rw-r--r--    1 root     wheel       16051 May 23 14:01 nn_NO.po

# export TEXTDOMAINDIR=/var/www/webmail/horde/locale

# (LANG=nn_NO; LANGUAGE=nn_NO; LC_MESSAGES=nn_NO; gettext horde "Message" )
Melding

# (LANG=nb_NO; LANGUAGE=nb_NO; LC_MESSAGES=nb_NO; gettext horde "Message" )
Message

gettext (GNU gettext) 0.11.2

I'm running RedHat 7.3 with PHP 4.1.2 (RedHat rpm's).

Tests don't work for nb_NO, but found something strange (I'm not too familiar
with locales on the system) - in /usr/share/locale there is a nb and nb_NO
directory, but it's empty... but nn and nn_NO is empty, too. However, in
/usr/lib/locale/ the nb entries are missing, but no_NO and nn_NO are present.
And locale -a tells me all of the NO-locales are installed (see prv message).

Tested renaming the locale for nb_NO to no_NO (alias of some sort, but nb is the
official code for "norsk bokmål"), and works just fine, both system and php...

# ls -l |grep no
-rw-r--r--    1 root     root        15546 May 27 13:25 no_NO.po

(copy of nb_no.po)

# (LANG=nn_NO; LANGUAGE=no_NO; LC_MESSAGES=no_NO; gettext horde "Message" )
Melding

Any ideas? Could it be a problem in RedHat or the gettext-package I use? Haven't
"customized" anything with locales, and seems that other people have this
problem, too? (at least the original poster?) Tested changing nb_NO to no_NO in
config/lang.php, and works fine, too. But it's not the correct locale name, though.

Regards,
Per-Stian


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/