GNOME Bugzilla – Bug 339156
string "Read" needs gettext context
Last modified: 2013-09-10 13:49:32 UTC
#: ../mail/em-filter-i18n.h:47 ../mail/message-tag-followup.c:81 msgid "Read" needs translator comments. this can both mean "to read" as well as "has been read" which are quite different in other languages. obviously it's the second meaning.
this is currently wrong in the french version because of that (must be "lu", but currently it's "lire"), see bug 339097.
and in #: ../ui/evolution-mail-message.xml.h:126 msgid "_Read" ...this is bug 339097, to be correct.
i have to correct myself: adding translator comments does not help, we need gettext context, like in bug 328988. ...but is this possible for glade and xml files? i don't know at all. :-/ #: ../plugins/groupwise-features/proxy-add-dialog.glade.h:13 #: ../ui/evolution-mail-message.xml.h:126 msgid "_Read" #: ../plugins/groupwise-features/proxy-add-dialog.glade.h:13 is about the permissions, you can choose "Read" and "Write". so "read" means "to read". this would be in german "Lesen" or in french "Lire". #: ../ui/evolution-mail-message.xml.h:126 is about marking a message as read. so "read" means "has been read". this would be in german "Gelesen" or in french "Lu". currently one CANNOT translate this correctly, as it has two different meanings.
james, can one add gettext context to xml/glade files? any ideas how to fix this? :-/
Adding context to one of the message occurences is enough. So if we can add context to glade message that would do it (we'd still want a comment on both, though).
Created attachment 69076 [details] [review] patch(TM). hvala danilo - attaching a patch as proposed.
Created attachment 69098 [details] [review] patch² corrected
hmm. obviously that translated part does not get stripped in the UI, at least when i open the glade file in glade-2. :-( any ideas anyone? i did use context="yes".
Translation must not contain the "...|" part. That is a limitation of our API. (if I understood the problem you're having)
From comment #8, marking the patch as needs-work
Created attachment 103692 [details] screenshot in glade-2 danilo: if i edit plugins/groupwise-features/proxy-add-dialog.glade and change <property name="label" translatable="yes">_Read</property> to <property name="label" translatable="yes" context="yes" comments="Translators: strip the part in front of the |">permission to read|_Read</property> and open the glade file in glade-2, the context is not stripped in the UI. see screenshot. i can't test this in real as i don't have a groupwise account to test.
Created attachment 103693 [details] [review] patch updated patch. someone with groupwise access should test this. as long as nobody offers me groupwise access i cannot test this (and will not translate any groupwise-related stuff in the user manual), right? right.
Andre, I tested it and looks fine to me.
Patch committed to SVN trunk as r34910 (http://svn.gnome.org/viewvc/evolution?view=revision&revision=34910)
Bumping version to a stable release.