After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 117360 - [PATCH] troublesome strings in gedit
[PATCH] troublesome strings in gedit
Status: RESOLVED DUPLICATE of bug 115633
Product: gedit
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2003-07-14 05:09 UTC by Dafydd Harries
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Dafydd Harries 2003-07-14 05:09:58 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".
Comment 1 Christian Rose 2003-08-08 10:38:04 UTC
The first of these messages seems to already be covered by bug 115633,
perhaps the patch could be added there.
Comment 2 Paolo Maggi 2003-10-21 15:55:03 UTC
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.
Comment 3 Paolo Maggi 2003-10-21 16:22:50 UTC

*** This bug has been marked as a duplicate of 115633 ***
Comment 4 Dafydd Harries 2003-10-22 12:24:08 UTC
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.