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:
Jehan 2022-07-07 22:13:28 +02:00
parent 32501f502b
commit 5a78326589
1 changed files with 4 additions and 4 deletions

View File

@ -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 &&