GNOME Bugzilla – Bug 765999
Fail whale dialog is not translated
Last modified: 2016-05-09 19:16:43 UTC
When showing the "fail whale" dialog upon a desktop crash, it is always in English even though translations are provided in the .po files. Though I've tested on version 3.10, looking at the source code it appears the problem still exists on git master. The solution appears to be as simple as adding the following 4 lines at the start of main() in gnome-session/gsm-fail-whale-dialog.c: setlocale (LC_ALL, ""); bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE);
Created attachment 327310 [details] [review] Proposed patch
I've pushed a slightly-modified version of this patch: * Removed the call to setlocale() -- this is actually only needed for command line programs. Since the fail whale is a GTK+ app, GTK+ handles it for us. * Moved the code down a few lines, below variable initializations.