Re: General localization question



Kaixo!

On Wed, Feb 06, 2002 at 08:16:35AM +0530, Joshua N Pritikin wrote:

> If i want to try *uninstalled* translations then what do i have to do?
> 
>   gtk_init (...);
>   bindtextdomain("redael", "/home/joshua/redael/locale");
>   textdomain("redael");
> 
>   cp po/mr.gmo /home/joshua/redael/locale/mr/LC_MESSAGES/redael.mo
>   cp po/mr.gmo /home/joshua/redael/locale/mr_MR/LC_MESSAGES/redael.mo
> 
>   LANG=mr_MR ./redael
> 
> It seems like this should work but it doesn't.

Have you a locale "mr_MR" installed ?
Otherwise it would backfall to "C".

Try using LANGUAGE=mr, it should work:

chanae:~$ LC_ALL=mr_MR strace mc 2> A
chanae:~$ grep LC_ A
open("/usr/share/locale/mr_MR/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale/mr/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such
file or directory)
chanae:~$ LC_ALL=en LANGUAGE=mr strace mc 2> A
chanae:~$ grep LC_ A
open("/usr/share/locale/en/LC_IDENTIFICATION", O_RDONLY) = 3
open("/usr/share/locale/en/LC_MEASUREMENT", O_RDONLY) = 3
open("/usr/share/locale/en/LC_TELEPHONE", O_RDONLY) = 3
open("/usr/share/locale/en/LC_ADDRESS", O_RDONLY) = 3
open("/usr/share/locale/en/LC_NAME", O_RDONLY) = 3
open("/usr/share/locale/en/LC_PAPER", O_RDONLY) = 3
open("/usr/share/locale/en/LC_MESSAGES", O_RDONLY) = 3
open("/usr/share/locale/en/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3
open("/usr/share/locale/en/LC_MONETARY", O_RDONLY) = 3
open("/usr/share/locale/en/LC_COLLATE", O_RDONLY) = 3
open("/usr/share/locale/en/LC_TIME", O_RDONLY) = 3
open("/usr/share/locale/en/LC_NUMERIC", O_RDONLY) = 3
open("/usr/share/locale/en/LC_CTYPE", O_RDONLY) = 3
open("/usr/share/locale//mr/LC_MESSAGES/mc.mo", O_RDONLY) = -1 ENOENT (No such
file or directory)

As you can see, when a non-exisiting locale is used, translations are not
even looked for.
However if I use an existing locale (one with all the LC_* files present)
then I can use a translation in another language (here it isn't there
either, but it is looked).

-- 
Ki ça vos våye bén,
Pablo Saratxaga

http://www.srtxg.easynet.be/		PGP Key available, key ID: 0x8F0E4975




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