projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0158a51
)
Use g_win32_getlocale() in manual availability detection on Windows.
author
Andrej Kacian
<ticho@claws-mail.org>
Thu, 9 Jul 2015 10:38:50 +0000
(12:38 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Thu, 9 Jul 2015 10:38:50 +0000
(12:38 +0200)
src/manual.c
patch
|
blob
|
history
diff --git
a/src/manual.c
b/src/manual.c
index 94c26ac583579cd8f1ec9882bb709135b1450f0a..6620720619b697258b3d783e374621d6c888888b 100644
(file)
--- a/
src/manual.c
+++ b/
src/manual.c
@@
-47,17
+47,13
@@
static gchar *get_language()
gchar *c;
#ifdef G_OS_WIN32
gchar *c;
#ifdef G_OS_WIN32
- language = g_
strdup(gtk_set_locale()
);
+ language = g_
win32_getlocale(
);
#else
#else
- /* FIXME: Why not using gtk_set_locale here too? -wk */
language = g_strdup(setlocale(LC_MESSAGES, NULL));
#endif
language = g_strdup(setlocale(LC_MESSAGES, NULL));
#endif
- /* At least under W32 it is possible that gtk_set_locate
- returns NULL. This is not documented but well, it happens
- and g_strdup is happy with a NULL argument. We return a
- standard language string in this case. */
- if (!language)
- return g_strdup("en");
+ if (!language)
+ return g_strdup("en");
+
if((c = strchr(language, ',')) != NULL)
*c = '\0';
if((c = strchr(language, '_')) != NULL)
if((c = strchr(language, ',')) != NULL)
*c = '\0';
if((c = strchr(language, '_')) != NULL)