Re: [G2R] Translation of .schemas files in core modules



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.


Zbigniew



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]