[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems with locales and Norwegian



El dom, 01-02-2004 a las 12:43, Preben Randhol escribió:
> Carlos Perelló Marín <carlos@pemas.net> wrote on 01/02/2004 (12:30) :
> > With bash:
> > 
> > export LANGUAGE=no_NO:no_NY:nb:nn
> 
> Thanks, but I have tried this and it doesn't work.

How did you tied it?

It's a know gettext feature.

test it this way:

$ LANGUAGE=no_NO:no_NY:nb:nn strace application > /tmp/output 2>&1

Open the /tmp/output file and look at all open calls done inside
/usr/share/locale, there you could see the order, for example:

$ LANGUAGE=cd_FR:es_ES strace gedit > salida 2>&1

The cd_FR is just a non existent locale and here you have what I get:

open("/usr/share/locale/cd_FR/LC_MESSAGES/libgnome-2.0.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/cd/LC_MESSAGES/libgnome-2.0.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/es_ES/LC_MESSAGES/libgnome-2.0.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/es/LC_MESSAGES/libgnome-2.0.mo", O_RDONLY) = 3


Cheers.

-- 
Carlos Perelló Marín
Debian GNU/Linux Sid (PowerPC)
Linux Registered User #121232
mailto:carlos@pemas.net || mailto:carlos@gnome.org
http://carlos.pemas.net
Valencia - Spain

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente


Reply to: