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 644016 - Git tasks do not show up translated
Git tasks do not show up translated
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: git
git master
Other Linux
: Normal normal
: ---
Assigned To: James Liggett
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-06 12:38 UTC by Gabor Kelemen
Modified: 2011-11-21 19:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Invoke gettext on static array items (1.73 KB, patch)
2011-03-06 12:41 UTC, Gabor Kelemen
reviewed Details | Review
Screenshot of the solution (247.55 KB, image/png)
2011-03-06 22:34 UTC, Gabor Kelemen
  Details

Description Gabor Kelemen 2011-03-06 12:38:16 UTC
The tasks in the Git tasks window are translated in the po file, yet they do not show up translated on the UI.
Comment 1 Gabor Kelemen 2011-03-06 12:41:46 UTC
Created attachment 182603 [details] [review]
Invoke gettext on static array items
Comment 2 Johannes Schmid 2011-03-06 21:45:26 UTC
Review of attachment 182603 [details] [review]:

Does that fix things for you? It looks unlikely to me that adding _() around that entry would be it translatable. I checked the strings that are defined in git/plugin.c and those are all surrounded by _N() which seems to be ok.
Comment 3 Gabor Kelemen 2011-03-06 22:34:22 UTC
Created attachment 182639 [details]
Screenshot of the solution

Sure, it works :)
As we all know, N_() is just an alias for gettext_noop, and we need to call gettext() (alias: _() ) when we actually use the arrays items.

See also:
http://www.gnu.org/software/gettext/manual/gettext.html#Special-cases
Comment 4 Johannes Schmid 2011-11-21 19:58:57 UTC
Sorry, forgot about this one!

It is now applied in master! Thanks for your work and please feel free to ping on bugs with no response for a while in the future!