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:
Tom Hacohen 2015-11-17 12:07:39 +00:00
parent f1cffd7709
commit 8fcf9a0fe6
1 changed files with 2 additions and 1 deletions

View File

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