Consider fallback to english for i18n 12/81912/1 accepted/tizen/common/20160803.193312 accepted/tizen/ivi/20160804.080820 accepted/tizen/mobile/20160804.080911 accepted/tizen/tv/20160804.080737 accepted/tizen/wearable/20160804.080653 submit/tizen/20160803.012753
authorSemun Lee <sm79.lee@samsung.com>
Fri, 29 Jul 2016 07:58:30 +0000 (16:58 +0900)
committerSemun Lee <sm79.lee@samsung.com>
Fri, 29 Jul 2016 07:58:30 +0000 (16:58 +0900)
LANGUAGE variable can contain default language information.
It will be used when the mo files for the selected language is not
available.

Change-Id: I9ab112666b8da2c90460a3985879aab364df3e70
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
src/appcore-watch-i18n.c

index d4dee60..31846d4 100755 (executable)
 
 void _update_lang(void)
 {
+       char language[32];
        char *r;
        char *lang = vconf_get_str(VCONFKEY_LANGSET);
        if (lang) {
+               snprintf(language, sizeof(language), "%s:en_US:en_GB:en", lang);
+               setenv("LANGUAGE", language, 1);
                setenv("LANG", lang, 1);
                setenv("LC_MESSAGES", lang, 1);