GNOME Bugzilla – Bug 732240
Application name doesn't translate in the about dialog.
Last modified: 2014-06-25 19:10:10 UTC
Created attachment 279240 [details] [review] Patch which fixes the issue on master as of 963a1871f40760ebbb842e1740320045ab7c6e00. In the about dialog, "Logs" isn't being translated.
Comment on attachment 279240 [details] [review] Patch which fixes the issue on master as of 963a1871f40760ebbb842e1740320045ab7c6e00. Thanks for the bug report and patch. As the program-name property defaults to the string set by g_set_application_name(), and that string is used elsewhere in Logs (for the --version argument), could you instead leave the property unset, and call g_set_application_name() with the translated name (probably in gl_application_init)?
It seems when I g_set_application_name(_(PACKAGE_NAME)); in gl_application_init, it seems to ignore the locale and pass the string through untranslated, perhaps I'm missing something.
Ah, it seems that gtk_init() calls setlocale(), and therefore the gettext() call must go after that. I fixed this on master with commit 15987f8c2a57d77699b0d1660b0390d982ac58c8.