r12208 - gnucash/trunk - Mark budget strings for i18n
Chris Shoemaker
c.shoemaker at cox.net
Fri Dec 30 15:23:13 EST 2005
On Fri, Dec 30, 2005 at 02:54:54PM -0500, Derek Atkins wrote:
> 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:
I think it does.
>
> void foo(const char*msg)
> {
> ...
> display_string(_(msg));
> ...
> }
I suppose this was meant to be:
void display_string(const char *msg)
{
foo(_(msg));
}
I wish the glib docs were wikified. I'd add these explanations. Thanks.
-chris
>
> 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