changeset 12846:95d350f56998

[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 <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 12 Jan 2006 04:03:39 +0000
parents 8ac4025810ab
children a95094ac6766
files src/gtkmain.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 {