[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "_(" and "N_(" convenience macros not being recognized
From: |
Bruno Haible |
Subject: |
Re: "_(" and "N_(" convenience macros not being recognized |
Date: |
Wed, 10 Jun 2009 00:30:02 +0200 |
User-agent: |
KMail/1.9.9 |
Hi,
David Bruce wrote:
> I maintain two packages that use GNU gettext. In one of the packages,
> I cannot get the suggested convenience string-marking macros to work.
> Text marked with "gettext ("To be translated")" gets handled
> correctly, but text marked with "_("doesn't get translated")" fails to
> be translated. Similarly, "gettext_noop()" works but not "N_()".
Most probably the 'xgettext' invocation is lacking the options -k_ and
-kN_. See the gettext manual [1][2].
If you are using the common po/* infrastructure that 'gettextize' installs,
the place where you specify the xgettext options is the variable
XGETTEXT_OPTIONS in po/Makevars.
Bruno
[1]
http://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html
[2] http://www.gnu.org/software/gettext/manual/html_node/C.html