On Fri, Feb 4, 2011 at 1:56 PM, Jeremy Huddleston <[email protected]> wrote:
>
> On Feb 4, 2011, at 13:02, Gaetan Nadon wrote:
>
>> On Fri, 2011-02-04 at 10:25 -0800, Jeremy Huddleston wrote:
>>
>>> It looks like libXpm ... does not honor --disable-nls.
>> ...
>
>> Never heard of it, did a bit a surfing. It is related to getttext and
>> intltool which is used in libXpm only and inxload and xfd. I see a lot
>> of stuff about it on the net and many indicate this option has been
>> removed.
>>
>> One example of stuff I found:
>> https://bugzilla.gnome.org/show_bug.cgi?id=589223
>
> Ah, so the '--disable-nls' configure option is actually from glib's m4 
> macros, and a lot of projects picked it up.  I'll see what I can do about 
> making a similar macro for util-macros that we can use, but my m4 wizardry is 
> a bit lacking.

glib just wraps the macros that come with gettext. I think what you
basically want to look at is AM_GNU_GETTEXT. Here's the source:

http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-runtime/m4/gettext.m4

Some documentation that might be relevant:

http://www.gnu.org/software/gettext/manual/gettext.html#Maintainers

There should be plenty of example repos to look at. Anything with
files in $datadir/locale/*/LC_MESSAGES is using localization, and most
of them are probably using gettext to get there.

--
Dan
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to