Martin Vermeer wrote:
> On Wed, Sep 17, 2003 at 10:52:48AM +0200, Lars Gullik Bj�nnes spake
> thusly:
>
>> what happens if you function call replace the default args with
>> N_(...)
>
> ?
N_(...) is just an empty macro (does nothing --- see src/gettext.h)
that enables the po files to document translatable static strings.
See po/Makefile.in.in. The actual call to the gettext translation is
through function _(...)
Example:
char const * const translated_string =
N_("No code to execute. Use N_(...) to flag "
"this message for translation");
void foo() {
string const msg1 = _("Call the gettext translation service");
string const msg2 = _(translated_string);
}
--
Angus