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 09:30:07 +0200
tir, 2002-07-30 kl. 20:04 skrev Zbigniew Chyla:
> On Tue, 2002-07-30 at 10:35:49, Kjartan Maraas wrote:
>
> > - intltool not being able to extract strings marked with L_(). One good
> > examle is from libgnomeui/gnome-app-helper.c where "Contents" is not
> > ending up in the .pot file. This leads to "Help->Contents" not being
> > translated.
>
> Simple workaround:
>
> - uiinfo->widget = gtk_image_menu_item_new_with_mnemonic (L_("_Contents"));
> + uiinfo->widget = gtk_image_menu_item_new_with_mnemonic (L_(N_("_Contents")));
>
>
I came to the conclusion that the strings themselves shouldn't be marked
by L_() and changed it to use L_() when the string was used instead.
Attaching the patch here for review.
It works for me (tm).
Cheers
Kjartan
Index: gnome-app-helper.c
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/gnome-app-helper.c,v
retrieving revision 1.211
diff -u -r1.211 gnome-app-helper.c
--- gnome-app-helper.c 16 Jul 2002 19:26:44 -0000 1.211
+++ gnome-app-helper.c 30 Jul 2002 14:59:09 -0000
@@ -1140,8 +1140,12 @@
create_help_entries (GtkMenuShell *menu_shell, GnomeUIInfo *uiinfo, gint pos)
{
gchar *path;
+ gchar *title;
- 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);
+
uiinfo->hint = g_strdup (_("View help for this application"));
setup_image_menu_item (uiinfo->widget, GNOME_APP_PIXMAP_STOCK, GTK_STOCK_HELP);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]