r12208 - gnucash/trunk - Mark budget strings for i18n
Derek Atkins
warlord at MIT.EDU
Fri Dec 30 14:54:54 EST 2005
Quoting Chris Shoemaker <c.shoemaker at cox.net>:
> Your brief explanation is better than the glib docs, but I still don't
> understand what would cause a string marked N_("...") to eventually be
> translated.
Something calls "_()" on the string later in the process. For example,
you might want to delay the translation until later in the process.
I hope the following (made-up) example helps clear it up for you:
void foo(const char*msg)
{
...
display_string(_(msg));
...
}
void bar(int state)
{
...
switch (state) {
case STATE_1:
display_string(N_("In State 1");
break;
case STATE_2:
display_string(N_("In State 2");
break;
...
}
...
}
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list