Re: [G2R] Translation of .schemas files in core modules
- From: Kjartan Maraas <kmaraas online no>
- To: Zbigniew Chyla <cyba gnome pl>
- Cc: Luis Villa <louie ximian com>, Christian Rose <menthos menthos com>, desktop-devel-list gnome org, GNOME i18n list <gnome-i18n gnome org>, gnome2 release team <gnome2-release-team gnome org>
- Subject: Re: [G2R] Translation of .schemas files in core modules
- Date: 31 Jul 2002 13:29:57 +0200
ons, 2002-07-31 kl. 11:05 skrev Zbigniew Chyla:
> On Wed, 2002-07-31 at 09:30:07, Kjartan Maraas wrote:
>
> > - uiinfo->widget = gtk_image_menu_item_new_with_mnemonic (L_("_Contents"));
> > + title = g_strdup (_("_Contents"));
> > + uiinfo->widget = gtk_image_menu_item_new_with_mnemonic (L_(title));
> > + g_free(title);
>
> This is wrong.
> You're trying to translate already translated string. Calling
> gettext (gettext (title)) may return an invalid string (in theory).
> Besides, you don't need g_strdup/g_free here.
So how do we fix this without the L_(N_()) hack? Have you actually
tested to see if it works at all?
At least this way it worked when I tested it.
Cheers
Kjartan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]