[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Italian language for gnubg && Windows??
From: |
Holger |
Subject: |
Re: [Bug-gnubg] Italian language for gnubg && Windows?? |
Date: |
Mon, 11 Aug 2003 23:08:12 +0200 |
At 23:00 11.08.2003 +0200, Olivier Baur wrote:
Le lundi, 11 aoû 2003, à 21:50 Europe/Paris, Holger a écrit :
Windows itself doesn't have any clue about locale dependent folders. For
internationalisation native programmes usually use a dll that only
consists of enumerated resources and loads the appropriate dll for each
language. The concept of gettext is quite a bit different. So gettext
would have to know itself where to look for its files.
I also don't want Mac users to have files installed in
/usr/loca/share/locale, so what I'm doing is I install the .mo translation
files in a new gnubg/locale directory that I will include inside the gnubg
application package for Mac OS X:
(folder hierarchy snipped)
And I tell gnubg to look for its .mo files by changing (in
gnubg.c:real_main()):
bindtextdomain (PACKAGE, LOCALEDIR);
to
#ifdef __APPLE__
bindtextdomain (PACKAGE, "./locale");
#else
bindtextdomain (PACKAGE, LOCALEDIR);
#endif
You don't need to do this. You can just set LOCALEDIR in your config.h (or
rather passing it to configure).
Maybe you can use the same approach on Windows.
Probably, but I've never tried it and until now even didn't know that those
files at the proper place and then setting LANG would already be enough.
Every day something new. :)
Regards,
Holger