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 640751 - Mark a non-user-visible string as untranslatable.
Mark a non-user-visible string as untranslatable.
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Contact List
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2011-01-27 19:12 UTC by Will Thompson
Modified: 2011-01-28 10:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Main window: mark Edit→Context as untranslatable. (1.55 KB, patch)
2011-01-27 19:13 UTC, Will Thompson
none Details | Review

Description Will Thompson 2011-01-27 19:12:27 UTC
empathy-main-window.ui has a hypothetical menu item named ‘Edit’ → ‘Context’. In practice, the string ‘Context’ is changed to ‘Contact’ or ‘Group’ by some slightly clunky code in empathy-main-window.c: <http://git.gnome.org/browse/empathy/tree/src/empathy-main-window.c#n1388>. So the word ‘Context’ should never be shown to the user.

But it's still marked as translatable, and everyone's diligently translated it. Patch to follow…
Comment 1 Will Thompson 2011-01-27 19:13:15 UTC
Created attachment 179463 [details] [review]
Main window: mark Edit→Context as untranslatable.

The label of this menu item is changed to either _("Contact") or
_("Group"), depending on what's currently selected in the tree view. If
neither a contact nor a group is selected, the item is hidden entirely.

Thus, it should be safe not to translate this string.

I haven't tested this. I just came across this when mpt pointed it out
on the Twitter: <http://twitter.theinfo.org/30701150579720192>. His
tweets suggest that he's found a way to make it show up in the UI, but I
can't find any way to do that (either reading the code, or playing with
the actual UI).
Comment 2 Guillaume Desmottes 2011-01-28 09:37:17 UTC
Thanks, merged to master and 2.34.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 3 Will Thompson 2011-01-28 10:48:58 UTC
FWIW this was an issue with appmenu-gtk: http://twitter.com/#!/mpt/status/30730093336723456