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 517003 - Translated strings are not being used in gedit's plugin
Translated strings are not being used in gedit's plugin
Status: RESOLVED FIXED
Product: devhelp
Classification: Applications
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: devhelp-maint
devhelp-maint
Depends on:
Blocks: Arabic
 
 
Reported: 2008-02-17 14:33 UTC by Djihed Afifi
Modified: 2009-08-28 11:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simple patch (897 bytes, patch)
2009-05-03 00:13 UTC, Gabor Kelemen
none Details | Review

Description Djihed Afifi 2008-02-17 14:33:21 UTC
The strings that are used in gedit's plugins don't show up translated in gedit.

This, despite them being marked for translation, and translated in devhelp's po files.


To test, build latest both gedit and devhelp, and start gedit (With Arabic, which currently has 100% translation). You'll notice that the string "Show API documentation" in the menu item is not being translated.

This could be as simple as setting the gettext domain.
Comment 1 Richard Hult 2008-02-26 21:37:29 UTC
Good catch! Feel like cooking up a patch? :)
Comment 2 Gabor Kelemen 2009-05-03 00:13:43 UTC
Created attachment 133834 [details] [review]
Simple patch 

Seems that action_group.set_translation_domain() does not work as expected, I stole this snippet from gedit-plugins, this shows the correct translations.
Comment 3 Frederic Peters 2009-08-28 11:43:06 UTC
Thanks for your patch, I just pushed it.

commit 81d1471506bcfcdfa4a3da4cb3ef4b9cb29c8aa0
Author: Gabor Kelemen <kelemeng@gnome.hu>
Date:   Fri Aug 28 13:42:23 2009 +0200

    Display translated strings in gedit plugin