GNOME Bugzilla – Bug 117360
[PATCH] troublesome strings in gedit
Last modified: 2004-12-22 21:47:04 UTC
Some translatable strings in gedit are problematic. Some messages in gedit-page-setup-dialog.c are broken up in a very troublesome fashion: #: gedit/dialogs/gedit-page-setup-dialog.c:587 msgid "Could not find '" #: gedit/dialogs/gedit-page-setup-dialog.c:587 #: gedit/dialogs/gedit-page-setup-dialog.c:629 msgid "" "page-setup-dialog.glade2'.\n" "\n" "Reinstall gedit." #: gedit/dialogs/gedit-page-setup-dialog.c:628 msgid "Could not find the required widgets inside '" The following patch (against HEAD) fixes this: diff -u -r1.2 gedit-page-setup-dialog.c --- gedit/dialogs/gedit-page-setup-dialog.c 14 Jun 2003 12:55:45 -0000 1.2 +++ gedit/dialogs/gedit-page-setup-dialog.c 14 Jul 2003 04:00:25 -0000 @@ -584,8 +584,12 @@ if (!gui) { - gedit_warning (_("Could not find '" GEDIT_GLADEDIR "page-setup-dialog.glade2'.\n\n" - "Reinstall gedit."), parent); + gchar *tmp = g_strdup_printf(_("Could not find '%s%s'. " + "Reinstall gedit."), GEDIT_GLADEDIR, + "page-setup-dialog.glade2"); + gedit_warning (tmp, parent); + g_free(tmp); + return NULL; } @@ -625,9 +629,11 @@ !dialog->numbers_font_label || !dialog->restore_button) { - gedit_warning (_("Could not find the required widgets inside '" - GEDIT_GLADEDIR "page-setup-dialog.glade2'.\n\n" - "Reinstall gedit."), parent); + gchar *tmp = g_strdup_printf(_("Could not find the required " + "widgets inside %s%s'.\n\nReinstall gedit."), + GEDIT_GLADEDIR, "page-setup-dialog.glade2"); + gedit_warning(tmp, parent); + g_free(tmp); if (!dialog->dialog) gtk_widget_destroy (dialog->dialog); Most of the remaining strings that I don't like occur within glade files and I have no idea about improving them. The problem is that messages have been broken up, making them much much more difficult to translate accurately: #: gedit/dialogs/gedit-preferences.glade2.h:39 msgid "Print _line numbers every" #: gedit/dialogs/gedit-preferences.glade2.h:54 msgid "_Autosave current file every" #: gedit/dialogs/page-setup-dialog.glade2.h:14 msgid "_Number every" It would be nice if the following message had a comment to guide translators: #: plugins/taglist/gedit-taglist-plugin-window.c:176 #, fuzzy msgid "Tag Groups Combo" And, finally, I think that the following message: #: plugins/shell_output/shell_output.c:246 #, fuzzy msgid "An error occurs while running the selected command." should say "occurred".
The first of these messages seems to already be covered by bug 115633, perhaps the patch could be added there.
I have applied a modified version of the patch in CVS HEAD. I have solved the "Tag Groups Combo" problem and the "occurs" problem too. I don't know how to solve the glade related problem. Removing PATCH keyword.
*** This bug has been marked as a duplicate of 115633 ***
Thank you! I, too, am not sure what the best solution is for glade files. It may be that this is a bug in glade; i.e. that glade needs better i18n support.