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 667185 - Menu items from plugins not translated
Menu items from plugins not translated
Status: RESOLVED FIXED
Product: Evolution Exchange
Classification: Deprecated
Component: Connector
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Connector Maintainer
Ximian Connector QA
Depends on:
Blocks:
 
 
Reported: 2012-01-03 14:43 UTC by Michael Basse
Modified: 2012-01-04 16:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evo patch (2.79 KB, patch)
2012-01-04 16:11 UTC, Milan Crha
committed Details | Review
eex patch (12.15 KB, patch)
2012-01-04 16:18 UTC, Milan Crha
committed Details | Review

Description Michael Basse 2012-01-03 14:43:45 UTC
Also see

https://bugs.launchpad.net/ubuntu/+source/evolution-exchange/+bug/911269


using evoltion-exchange 3.2.1 in german has two items which are not translated, or better, the translation does not have any effect.

The file po/de.po
is holding msgstr "Berechtigungen …" which means "Permissions..."

also see

https://translations.launchpad.net/ubuntu/precise/+source/evolution-exchange/+pots/evolution-exchange/de/158/+translate

but that translation does not show up in evolution-exchange

see the menu file/Datei http://alpha-unix.de/~iceroot/ubuntu/evolution-missing-translation.png

so i guess its an error in the source-code and not in the ubuntu-translation-technic from launchpad

grep on the source-package founds the correct german translation.

There is a second missing translation (see the screenshot again)
Comment 1 Michael Basse 2012-01-03 14:47:02 UTC
changing to calendar or task view and then using the file/Datei-menu there is also the item "Permissions..." not translated into the german "Berechtigungen..."
Comment 2 Michael Basse 2012-01-03 14:50:52 UTC
the contact-view also have this bug.

i have not found any other places with that issue, so i guess thats all
Comment 3 Michael Basse 2012-01-03 19:10:22 UTC
there are also other bugged translations

see http://alpha-unix.de/~iceroot/ubuntu/evoultion-screenshots/
Comment 4 André Klapper 2012-01-03 20:10:41 UTC
Confirming using LANG=de_DE.utf8 and evolution-exchange in Fedora16.
Comment 5 Milan Crha 2012-01-04 16:11:18 UTC
Created attachment 204587 [details] [review]
evo patch

for evolution;

Useful utility function. It can be copied to each required 3rd party plugin which modifies UI menu, if it's required for a stable version. I'm doing this for unstable.
Comment 6 Milan Crha 2012-01-04 16:18:50 UTC
Created attachment 204588 [details] [review]
eex patch

for evolution-exchange;

Two issues:
a) the library used gi18n.h when it should use gi18n-lib.h, thus the domain wasn't set properly. Changing this fixed most of the issues, except of menus
b) for menus there is a problem with GtkActionGroup, which supports only one translation domain, but it doesn't have a function to retrieve currently set domain, thus I cannot change translation domain temporarily, add my actions and return its translation domain back. I also didn't want to change its translation domain since now on, thus the above evolution patch, which makes sure the actions are translated properly before added to the destination action group.

I looked around and there are more issues in couple other evolution-* plugins.
I changed also evolution-groupwise, evolution-ews and evolution-mapi.
Comment 7 Milan Crha 2012-01-04 16:26:16 UTC
Created commit 5aa4790 in evo master (3.3.4+)
Created commit a78cf51 in eex master (3.3.4+)
Created commit ae5d1cf in egw master (3.3.4+)
Created commit eb9d169 in ews master (3.3.4+)
Created commit 306ca7e in ema master (3.3.4+)