[gaim-migrate @ 15194]

Thu, 12 Jan 2006 04:03:39 +0000

author
Björn Voigt <bjoern@cs.tu-berlin.de>
date
Thu, 12 Jan 2006 04:03:39 +0000
changeset 12846
93ff2d8dd1e7
parent 12845
ac6e4ffb7dc6
child 12847
972b19e6303d

[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: Mark Doliner <markdoliner@pidgin.im>

src/gtkmain.c file | annotate | diff | comparison | revisions
--- 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 {

mercurial