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,10 +52,10 @@ language_init (const gchar *language)
|
|||
return actual_language;
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
if (! language &&
|
||||
g_getenv ("LANG") == NULL &&
|
||||
g_getenv ("LC_MESSAGES") == NULL &&
|
||||
g_getenv ("LC_ALL") == NULL &&
|
||||
if ((! language || strlen (language) == 0) &&
|
||||
g_getenv ("LANG") == NULL &&
|
||||
g_getenv ("LC_MESSAGES") == NULL &&
|
||||
g_getenv ("LC_ALL") == NULL &&
|
||||
g_getenv ("LANGUAGE") == NULL)
|
||||
{
|
||||
/* FIXME: This is a hack. gettext doesn't pick the right language
|
||||
|
|
Loading…
Reference in New Issue