namespace {
-const char kVconfLanguageKey[] = "db/menu_widget/language";
+const char kVconfLanguageKey[] = VCONFKEY_LANGSET;
const char kManifestFileName[] = "tizen-manifest.xml";
const char kSharedResDir[] = "shared/res";
LOG(WARNING) << "Failed to get privilege info";
char* locale = vconf_get_str(kVconfLanguageKey);
+ if (!locale)
+ locale = strdup("");
LOG(INFO) << "Current locale: " << locale;
if (!GetLabelInfo(parser, locale, info))
LOG(WARNING) << "Failed to get label info";
if (!GetDescriptionInfo(parser, locale, info))
LOG(WARNING) << "Failed to get description info";
std::string icon = GetIconInfo(parser, locale);
+ free(locale);
if (!icon.empty()) {
bf::path icon_path = bf::path(kSharedResDir) / icon;
if (!ExtractPackageArchive(
}
}
- free(locale);
ci::RemoveAll(tmp_dir);
return true;