void GuiRunner::setLocale()
{
char *lang = vconf_get_str(VCONFKEY_LANGSET);
- char *r = setlocale(LC_ALL, lang);
- if (!r)
- ALOGE("setlocale failed");
if (lang)
+ {
+ elm_language_set(lang);
free(lang);
- r = bindtextdomain(PROJECT_NAME, "/usr/share/locale");
- if (!r)
- ALOGE("bindtextdomain failed");
- r = textdomain(PROJECT_NAME);
- if (!r)
- ALOGE("textdomain failed");
+ }
+ else
+ ALOGE("language_set failed.");
}
NResponseType GuiRunner::popupRun(const std::string &app, const std::string &perm)
using namespace AskUser::Notification;
init_agent_log();
char *lang = vconf_get_str(VCONFKEY_LANGSET);
- char *r = setlocale(LC_ALL, lang);
- if (!r)
- ALOGE("setlocale failed");
if (lang)
+ {
+ elm_language_set(lang);
free(lang);
- r = bindtextdomain(PROJECT_NAME, "/usr/share/locale");
- if (!r)
- ALOGE("bindtextdomain failed");
- r = textdomain(PROJECT_NAME);
- if (!r)
- ALOGE("textdomain failed");
+ }
+ else
+ ALOGE("language_set failed.");
try {
AskUserTalker askUserTalker;