bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Italian language for gnubg && Windows??


From: Olivier Baur
Subject: Re: [Bug-gnubg] Italian language for gnubg && Windows??
Date: Mon, 11 Aug 2003 23:00:08 +0200

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:

gnubg/
  (...)
  gnubg
  (...)
  locale/
    da/
      LC_MESSAGES/
        gnubg.mo
    de/
      LC_MESSAGES/
        gnubg.mo
    fr/
      LC_MESSAGES/
        gnubg.mo
    (...)
  (...)

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


Maybe you can use the same approach on Windows.


-- Olivier




reply via email to

[Prev in Thread] Current Thread [Next in Thread]