GNOME Bugzilla – Bug 520296
Add i18n context to translatable string
Last modified: 2009-01-26 14:45:34 UTC
#: ../src/lib/accerciser/plugin/plugin_manager.py:375 tvc = gtk.TreeViewColumn(_('View')) View is ambiguous, since it can be both a verb and a noun. Please add translation context and a translator comment.
There's another "View" string in the UI code (menu name) with a totally different meaning. Luckily there's an accelerator underscore there, otherwise this would definitely cause tranlation problems in Dutch: #: ../src/lib/accerciser/ui_manager.py:23 msgid "_View" Oh, and you can't expect translators to look in the source code for clarification—I'm an exception ;)
The following translator comments have been added to trunk and to the gnome-2-22 branch: # Translators: This is the viewport in which the plugin appears, # it is a noun.
A translator comment is not enough for many languages, e.g. for Dutch "View" may be translated as "Beeld" (noun) or "Tonen" (verb). The string itself should have context, e.g. something like Q_() or the pgettext() support in newer gettext versions. The word "View" in accerciser is currently used in both versions—the only reason it's not a problem right now because "_View" != "View", so that I can translate it into the correct Dutch versions. Reopening.
Can this be fixed in trunk please? I'd suggest Q_("menu|_View") for the menu item, and Q_("viewport|View") for the viewport.
Too bad this cannot go in anymore before 2.24 because of the string freeze. This bug should really be resolved in the next cycle.
Wouter, I apologize for missing this in the last development cycle. I put your suggestions in trunk. Just re-open it again if I did not get what you mean :)
Thanks, return _(s).split('|', 1)[-1] looks right to me.
Oh, and while we're at it (too lazy to open a new report), please do the same for "Bookmarks", even though this is a less problematic case (since the 3rd person perspective is not used anywhere in the UI). So: #: ../src/lib/accerciser/ui_manager.py:22 msgid "_Bookmarks" ...should be "menu|_Bookmarks", just like the view menu, which was already fixed: #: ../src/lib/accerciser/ui_manager.py:23 msgid "menu|_View" Thanks!
Eitan, could you address my comments from comment #8 before we enter string freeze? Thanks a lot.
Thanks Wouter. This has been updated in trunk.
Thanks, I've noticed gnome-1i8n for you.
Oops! Forgot it is string announcement period.
No problem, I already did it for you. The internet is a collective brain :)