GNOME Bugzilla – Bug 353060
Strings aren't translated in UI
Last modified: 2013-09-14 16:49:28 UTC
In evolution-data-server-1.7.92 messages for POP3 progress like: "Expunging deleted messages" "Retrieving POP3 summary" aren't translated in Evolution progress dialog while receiving mail.
Srinivasa, can you please look at this bug as well?
yes, the strings are translated in the po files, but not in the UI. this isn't a critical bug. for future reference, please file mailer bugs under component mailer. thanks in advance. :-)
Ive been trying hard, I dont seem to get the clue. Even I do a printf (_("Retrieving POP3 summary")) I get only english. Even glib/gi18.h doesnt help.
I've investigated a bit, the reason is that in plugin textdomain = evolution-2.8 while it should be evolution-data-server-1.8, currently I am looking on the way to fix it.
It's related to the bug 300891
Created attachment 71780 [details] [review] Proposed patch This patch will fix the problem, unifying pop3 with other providers.
Nickolay, it doesnt seem to work for me. Are you sure this is the right fix?
It works for me. Are you sure you've regeneraged Makefiles? Check that this defines appears in compilations string for pop3 provider.
If you added glib/gi18n, you should remove it as well, you need to include camel-i18n.h
Ping on this problem. It's rather annoying since visibility is very high.
Nickolay, I set LANG=mk_MK.utf8 I checked the mk.po and the string is translated. Also I applied the patch and did make clean and make install. gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../intl -I../../../camel -pthread -DORBIT2=1 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/opt/gnome/include/gnome-vfs-2.0 -I/opt/gnome/lib/gnome-vfs-2.0/include -I/opt/gnome/include/bonobo-activation-2.0 -I/opt/gnome/include/libbonobo-2.0 -I/opt/gnome/include/gconf/2 -I/opt/gnome/include/orbit-2.0 -I/usr/include -I/usr/include/nspr4/ -I/usr/include/nss3 -D_LARGEFILE64_SOURCE -DCAMEL_EXPLICIT_TRANSLATION_DOMAIN=\"evolution-data-server-1.8\" -DG_LOG_DOMAIN=\"camel-pop3-provider\" -g -O2 -Wall -Wmissing-prototypes -Wno-sign-compare -MT camel-pop3-provider.lo -MD -MP -MF .deps/camel-pop3-provider.Tpo -c camel-pop3-provider.c -fPIC -DPIC -o .libs/camel-pop3-provider.o I have pasted a snap of make install. It has the patch applied. It still shows in english in SEND/Receive on POP accounts. Can any one else verify it? Am I doing something wrong?
Srinivasa, can you please attach the preprocessed camel-pop3-folder.c? You can just add -E option to comilation string or use the following script: #!/bin/sh prefix=/opt/gnome gcc -E -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../intl \ -I../../../camel -pthread -DORBIT2=1 -I$prefix/include/glib-2.0 \ -I$prefix/lib/glib-2.0/include -I$prefix/include/gnome-vfs-2.0 \ -I$prefix/lib/gnome-vfs-2.0/include \ -I$prefix/include/bonobo-activation-2.0 \ -I$prefix/include/libbonobo-2.0 -I$prefix/include/gconf/2 \ -I$prefix/include/orbit-2.0 -I$prefix -I$prefix/nspr4/ \ -I$prefix/nss3 -D_LARGEFILE64_SOURCE \ -DCAMEL_EXPLICIT_TRANSLATION_DOMAIN=\"evolution-data-server-1.8\" \ -DG_LOG_DOMAIN=\"camel-pop3-provider\" -g -O2 -Wall -Wmissing-prototypes \ -Wno-sign-compare -MT camel-pop3-folder.lo -MD -MP -MF \ .deps/camel-pop3-folder.Tpo -c camel-pop3-folder.c -fPIC -DPIC -o \ result.c
Also please check with strace that message catalogs are found in correct place
Created attachment 74655 [details] Preprocessed output Let me know if that helps.
Looks fine, now what about strace from evolution-data-server?
That patch makes the string translation beeing used on Ubuntu edgy with GNOME 2.16.1 too
Any news here? Would be nice to get this fixed once and for all.
srini: *ping* - comment 16, patch at comment 6? :-)
Hmm, I think it should be OK to commit the patch and test this out. For some reasons it didnt work out for me. It is better to go this way.
Applied, thanks.