# HG changeset patch # User Mark Doliner # Date 1137038619 0 # Node ID 95d350f56998692d2a718592732cead67a1f3e36 # Parent 8ac4025810abb76dffed3cdd998fc9b226bc4893 [gaim-migrate @ 15194] A patch from Bj??rn Voigt to make sure the usage info is printed out in the correct localization: "There is a small i18n problem in src/gtkmain.c. Unlike Gaim oldstatus, the new code calls show_usage() before gtk_init_check(). This means that, setlocale() is not called and the usage message is English." committer: Tailor Script diff -r 8ac4025810ab -r 95d350f56998 src/gtkmain.c --- a/src/gtkmain.c Thu Jan 12 03:48:42 2006 +0000 +++ b/src/gtkmain.c Thu Jan 12 04:03:39 2006 +0000 @@ -308,6 +308,11 @@ char *text_conv; GError *error = NULL; +#ifdef HAVE_SETLOCALE + /* Locale initialization is not complete here. See gtk_init_check() */ + setlocale(LC_ALL, ""); +#endif + if (terse) { text = g_strdup_printf(_("Gaim %s. Try `%s -h' for more information.\n"), VERSION, name); } else {