GNOME Bugzilla – Bug 639440
[PATCH] Strings not translated when plugin manager is used form apps
Last modified: 2011-03-05 09:16:56 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
What domain should be passed to dgettext in that case? Could you try if it works for your local copy of libanjuta?
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.
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.
As this bug ended up being NEEDINFO despite having enough information I missed it. This is now fixed in git.