Re: russian i18n
Robert Hart <[email protected]> Sun, 23 Nov 2003 14:05:30 +0000
| Newsgroups | gmane.comp.audio.zinf.devel |
|---|---|
| Message-ID | <1069596330.1765.24.camel@euclid> |
On Sun, 2003-11-23 at 10:01, Robert Hart wrote:
> The alternative would be to concatenate the strings together at runtime.
> e.g. (very much off the top of my head)
>
> gchar labeltext[50];
> sprintf(labeltext, _("version %s"), BRANDING_VERSION);
> textlabel = gtk_label_new(labeltext);
I suppose it would be more "c++" to do:
string labeltext;
labeltext=_("version ");
labeltext+=BRANDING_VERSION;
textlabel = gtk_label_new(labeltext.c_str());
(Although that kinda presumes the order of the two bits stays the same
in every language). I suppose you'd want to wrap references to BRANDING
in _() as well.
Rob
--
Robert Hart <[email protected]>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/