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 639440 - [PATCH] Strings not translated when plugin manager is used form apps
[PATCH] Strings not translated when plugin manager is used form apps
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: libanjuta
git master
Other Linux
: Normal normal
: ---
Assigned To: Naba Kumar
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-13 16:06 UTC by Daniele Forsi
Modified: 2011-03-05 09:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add dgettext() to plugin-manager.c (9.17 KB, patch)
2011-01-18 21:43 UTC, Daniele Forsi
none Details | Review
Add dgettext() to anjuta-ui.c (1.76 KB, patch)
2011-01-18 21:46 UTC, Daniele Forsi
none Details | Review

Description Daniele Forsi 2011-01-13 16:06:01 UTC
The strings contained in libanjuta/anjuta-plugin-manager.c are shown correctly translated when I open Anjuta's Plugin Manager, but they are shown in English when the plugin manager of an application built with libanjuta (namely the git version gtkpod-2 from www.gtkpod.org).

I can see the translations in my app if I manually add them to a .po file; this suggests that perhaps dgettext() should be used instead of _( ) in libanjuta/anjuta-plugin-manager.c
Comment 1 Johannes Schmid 2011-01-18 18:52:42 UTC
What domain should be passed to dgettext in that case? Could you try if it works for your local copy of libanjuta?
Comment 2 Daniele Forsi 2011-01-18 21:43:29 UTC
Created attachment 178670 [details] [review]
Add dgettext() to plugin-manager.c

It should use Anjuta's domain, so GETTEXT_PACKAGE is ok.

This patch fixes the strings in "Installed plugins" and "Preferred plugins" tabs of the plugin-manager. It is against anjuta-2.30.1.0 from Ubuntu, if it doesn't apply to the git version just replace all _( with dgettext (GETTEXT_PACKAGE, in plugin-manager.c and include config.h.
Comment 3 Daniele Forsi 2011-01-18 21:46:19 UTC
Created attachment 178672 [details] [review]
Add dgettext() to anjuta-ui.c

This patch translates the columns headings in the "Shortcuts" tab of the plugin manager.
Comment 4 Johannes Schmid 2011-03-05 09:16:56 UTC
As this bug ended up being NEEDINFO despite having enough information I missed it. This is now fixed in git.