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

Re: gettext documentation not accurate for Debian?



> Of course, you have to call xgettext with --keyword=_ otherwise you
> won't see anything.  Yeah, this documentation rules...

 Besides you need to add...

        setlocale (LC_ALL, "");
        bindtextdomain(PACKAGE, LOCALEDIR);
        textdomain (PACKAGE);

 ...to your program initialization. Where PACKAGE is your package name (to
form the file.mo filename) and LOCALEDIR something /usr/loca/share/locale.

 It's adviseable to use autoconf/automake when using gettext.


Reply to: