GNOME Bugzilla – Bug 300891
Now camel should specify the translation domain explicitly to use gettext
Last modified: 2005-08-10 03:53:34 UTC
Please describe the problem: Camel messages like "Moving messages" or "Filtering messages" are displayed as-is (not translated) in evolution. It's because camel should find their messages in "evolution-data-server-1.2" domain, but now it finds in (implicit) "evolution-1.2" domain. Now camel uses translation messages in "evolution-data-server-1.2" domain. So camel should use gettext in the way like other libraries: (1) initialize with bindtextdomain() and bind_textdomain_codeset() in some camel initialization routines. (2) use dgettext() instead of gettext() -- defining CAMEL_EXPLICIT_TRANSLATION_DOMAIN is enough. Steps to reproduce: 1. Run evolution in non-English locale 2. Do some mail filtering, moving Actual results: Messages like "Moving messages (XX%)", "Filtering Messages (XX%)" are displayed in English. Expected results: They should be translated according to the locale language. Does this happen every time? Always. Other information:
Created attachment 45336 [details] [review] patch to use explicit translation domain It adds initialization code using bindtextdomain() and bind_textdomain_codeset(). And it defines CAMEL_EXPLICIT_TRANSLATION_DOMAIN (to use dgettext) and EVOLUTION_LOCALEDIR (for initialization) in Makefile.am
Created attachment 45356 [details] [review] revised patch including camel providers It adds initialization code using bindtextdomain() and bind_textdomain_codeset(). And it defines CAMEL_EXPLICIT_TRANSLATION_DOMAIN (to use dgettext) and EVOLUTION_LOCALEDIR (for initialization) in Makefile.am's
Created attachment 45471 [details] [review] revised patch to set each provider's translation_domain It adds initialization code using bindtextdomain() and bind_textdomain_codeset(). And it defines CAMEL_EXPLICIT_TRANSLATION_DOMAIN (to use dgettext) and EVOLUTION_LOCALEDIR (for initialization) in Makefile.am's. And it sets translation_domain in each provider's CamelProvider struct.
Created attachment 50437 [details] [review] updated patch, with some other changes too lazy to remove
committed to 2.4. thanks for the work, sorry for taking so long to use it.
*** Bug 308314 has been marked as a duplicate of this bug. ***