Commit 788b64a7 authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Ray Strode

Call setlocale in main function of gnome-session-binary and gnome-session-quit

It is required to correctly show translated messages on some locales.

https://bugzilla.gnome.org/show_bug.cgi?id=760425
parent 91e74ccf
......@@ -294,6 +294,7 @@ main (int argc, char **argv)
/* Make sure we initialize gio in a way that does not autostart any daemon */
initialize_gio ();
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
......
......@@ -171,6 +171,7 @@ main (int argc, char *argv[])
GOptionContext *ctx;
/* Initialize the i18n stuff */
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment