diff options
author | Tor Lillqvist <tml@novell.com> | 2008-05-08 12:17:18 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2008-05-08 12:17:18 +0800 |
commit | 703123f651bd41d35a5ca3b75cd14a9708d03ae7 (patch) | |
tree | 0e5b37ab4c1b8b84787e9b0341f17073096cb692 /shell | |
parent | 4c58a7f9d9002dadc59145ba52550b3df2dcc1ac (diff) | |
download | gsoc2013-evolution-703123f651bd41d35a5ca3b75cd14a9708d03ae7.tar gsoc2013-evolution-703123f651bd41d35a5ca3b75cd14a9708d03ae7.tar.gz gsoc2013-evolution-703123f651bd41d35a5ca3b75cd14a9708d03ae7.tar.bz2 gsoc2013-evolution-703123f651bd41d35a5ca3b75cd14a9708d03ae7.tar.lz gsoc2013-evolution-703123f651bd41d35a5ca3b75cd14a9708d03ae7.tar.xz gsoc2013-evolution-703123f651bd41d35a5ca3b75cd14a9708d03ae7.tar.zst gsoc2013-evolution-703123f651bd41d35a5ca3b75cd14a9708d03ae7.zip |
If no message catalog is installed for the current locale language, don't
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.
svn path=/trunk/; revision=35479
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 7 | ||||
-rw-r--r-- | shell/main.c | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index fa452cccc8..4647ade3fc 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,10 @@ +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. + 2008-04-29 Akhil Laddha <lakhil@novell.com> ** Fix for bug #529660 diff --git a/shell/main.c b/shell/main.c index 32bff688f6..7062ea9a6e 100644 --- a/shell/main.c +++ b/shell/main.c @@ -690,6 +690,17 @@ main (int argc, char **argv) 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]); |