Re: [PATCH] Do not use gettextize and i18n round 2 Re: I18n: The gettext proposal
From: Nicolás Lichtmaier <nick_at_reloco.com.ar>
Date: 2004-03-30 20:13:57 CEST
Ben Collins-Sussman wrote:
>>I think my biggest concern for i18n adoption is that we will no longer be able
Yes. This is the issue:
You can't add a function call anywhere in the code. You can't add a
char *global_greetings[] = { _("Hello"), _("Hi"), NULL };
This won't compile. The solution is to have a macro which does nothing:
#define N_(x) (x)
char *global_greetings[] = { N_("Hello"), N_("Hi"), NULL };
This will be caught by xgettext and it will be put in the .pot file, but
for(p=global_greetings;p;p++)
We use "gettext" here so as not to trigger xgettext.
That's it!
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.