mirror of https://github.com/GNOME/gimp.git
app: allows for empty string as language.
Language detection was not working fine on Windows when the language was an empty string rather than NULL.
This commit is contained in:
parent
32501f502b
commit
5a78326589
|
@ -52,7 +52,7 @@ language_init (const gchar *language)
|
|||
return actual_language;
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
if (! language &&
|
||||
if ((! language || strlen (language) == 0) &&
|
||||
g_getenv ("LANG") == NULL &&
|
||||
g_getenv ("LC_MESSAGES") == NULL &&
|
||||
g_getenv ("LC_ALL") == NULL &&
|
||||
|
|
Loading…
Reference in New Issue