evolution r35479 - trunk/shell



Author: tml
Date: Thu May  8 04:17:18 2008
New Revision: 35479
URL: http://svn.gnome.org/viewvc/evolution?rev=35479&view=rev

Log:
2008-05-08  Tor Lillqvist  <tml novell com>

	* main.c (main) [Win32]: If no message catalog is installed for
	the current locale language, don't bother with the localisations
	provided by other things then either. Reset thread locale to
	"en-US" and C library locale to "C" to ensure that.



Modified:
   trunk/shell/ChangeLog
   trunk/shell/main.c

Modified: trunk/shell/main.c
==============================================================================
--- trunk/shell/main.c	(original)
+++ trunk/shell/main.c	Thu May  8 04:17:18 2008
@@ -690,6 +690,17 @@
 				      GNOME_PARAM_HUMAN_READABLE_NAME, _("Evolution"),
 				      NULL);
 
+#ifdef G_OS_WIN32
+	if (strcmp (_(""), "") == 0) {
+		/* No message catalog installed for the current locale language,
+		 * so don't bother with the localisations provided by other things then
+		 * either. Reset thread locale to "en-US" and C library locale to "C".
+		 */
+		SetThreadLocale (MAKELCID (MAKELANGID (LANG_ENGLISH, SUBLANG_ENGLISH_US),
+					   SORT_DEFAULT));
+		setlocale (LC_ALL, "C");
+	}
+#endif
 	if (start_online && start_offline) {
 		fprintf (stderr, _("%s: --online and --offline cannot be used together.\n  Use %s --help for more information.\n"),
 			 argv[0], argv[0]);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]