Evas language: Fix language from locale function.
This function was trying to infer from the LANG env var, though it should have just queried the locale all along, as the language we want is the system's text language, and not necessarily the LANG variable's value. @fix.
This commit is contained in:
parent
f1cffd7709
commit
8fcf9a0fe6
|
@ -21,6 +21,7 @@
|
|||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <locale.h>
|
||||
|
||||
#include <Eina.h>
|
||||
|
||||
|
@ -134,7 +135,7 @@ evas_common_language_from_locale_get(void)
|
|||
if (*lang) return lang;
|
||||
|
||||
const char *locale;
|
||||
locale = getenv("LANG");
|
||||
locale = setlocale(LC_MESSAGES, NULL);
|
||||
if (locale && *locale)
|
||||
{
|
||||
char *itr;
|
||||
|
|
Loading…
Reference in New Issue