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 675246 - Strings appear untranslated
Strings appear untranslated
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2012-05-01 14:56 UTC by Gabor Kelemen
Modified: 2012-05-03 09:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of the problem (18.13 KB, image/png)
2012-05-01 14:56 UTC, Gabor Kelemen
  Details
Fix the problems mentioned above (1.37 KB, patch)
2012-05-01 15:00 UTC, Gabor Kelemen
reviewed Details | Review
Fix all the problems listed in the previous comment (6.36 KB, patch)
2012-05-03 07:47 UTC, Gabor Kelemen
committed Details | Review

Description Gabor Kelemen 2012-05-01 14:56:11 UTC
Created attachment 213215 [details]
Screenshot of the problem

Some translated strings still appear untranslated:
- In the account editor, push the Birthday button of a XMPP account, the title of the appearing date selector appears untranslated.
This is because in src/empathy-accounts.c the textdomain() call is after g_set_application_name(), not before.

- The application name in empathy-accounts --help. 
This is because in g_option_context_new(), you need to use the _() macro, not N_().
(this isn't *that* important, just struck me while fixing the previous one :))
Comment 1 Gabor Kelemen 2012-05-01 15:00:04 UTC
Created attachment 213216 [details] [review]
Fix the problems mentioned above
Comment 2 Guillaume Desmottes 2012-05-02 08:30:23 UTC
Review of attachment 213216 [details] [review]:

Thanks for the patch. While you're add it any chance you could check and fix the other files as well ? :)
src/empathy-auth-client.c
src/empathy-av.c
src/empathy-call.c
src/empathy-chat.c
src/empathy-debugger.c
src/empathy.c
Comment 3 Gabor Kelemen 2012-05-03 07:47:27 UTC
Sure. Meanwhile, I have checked the docs again, and turns out I was wrong: in g_option_context_new(), the N_() macro is correct, the translation domain needs to be set with g_option_context_set_translation_domain().

So let's see what's wrong with these:
src/empathy-auth-client.c : nothing
src/empathy-av.c : textdomain() should be before g_set_application_name(), g_option_context_set_translation_domain() needs to be added
src/empathy-call.c : same as the previous
src/empathy-chat.c : g_option_context_set_translation_domain() needs to be added 
src/empathy-debugger.c : same as empathy-av
src/empathy.c : textdomain() should be before g_set_application_name(), g_option_group_set_translation_domain() needs to be called to localize the descriptions of the no-connect and start-hidden options.
src/empathy-accounts.c : same as empathy-av.c
Comment 4 Gabor Kelemen 2012-05-03 07:47:43 UTC
Created attachment 213348 [details] [review]
Fix all the problems listed in the previous comment
Comment 5 Guillaume Desmottes 2012-05-03 09:51:03 UTC
Merged; thanks a lot for your work on this!