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 527841 - Enabling draw spaces plugin makes translated ui untranslated
Enabling draw spaces plugin makes translated ui untranslated
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-13 08:57 UTC by Gabor Kelemen
Modified: 2019-03-23 20:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
patch (848 bytes, patch)
2008-04-19 16:39 UTC, Paolo Borelli
committed Details | Review

Description Gabor Kelemen 2008-04-13 08:57:08 UTC
gedit is 100% translated to Hungarian. However, after enabling the smart spaces plugin, the Preferences dialog (and some random strings, linke "Unsaved doucument 1") changes back to English. Disabling the plugin makes the strings appear again in Hungarian. Here is a small (not really, so not attaching) screencast:
http://delfin.unideb.hu/~kg0021/smartspaces.gif
Comment 1 Gabor Kelemen 2008-04-13 09:02:48 UTC
Oh, fsck... it's not smart spaces, it's the Draw spaces plugin:

#: ../plugins/drawspaces/drawspaces.gedit-plugin.desktop.in.h:1
msgid "Draw Spaces"
msgstr "Szóközök rajzolása"

changing summary, sorry.
Comment 2 Claude Paroz 2008-04-19 14:33:54 UTC
Confirmed in French (2.20).
Comment 3 Claude Paroz 2008-04-19 14:52:10 UTC
That has something to do with two following lines, because when I comment them, the problem disappear:

  gtk.glade.bindtextdomain(GETTEXT_PACKAGE, GP_LOCALEDIR)
  gtk.glade.textdomain(GETTEXT_PACKAGE)

I moved them in the __init__ function of DrawSpacesConfigDialog so as the configure dialog of the plugin is still translated.
Comment 4 Paolo Borelli 2008-04-19 16:39:26 UTC
Created attachment 109549 [details] [review]
patch

Does this look correct? It seems to work for me
Comment 5 Claude Paroz 2008-04-19 17:37:05 UTC
Yes, it works for me also.