From: Hwankyu Jhun Date: Wed, 20 Apr 2022 12:49:04 +0000 (+0900) Subject: Fix wrong language priority setting X-Git-Tag: accepted/tizen/unified/20220421.140737~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F60%2F274060%2F1;p=platform%2Fcore%2Fappfw%2Fapp-core.git Fix wrong language priority setting The language value MUST be ":en_US:en_GB:en". Currently, the language value is "en:en_GB:en_US:". This patch adjusts the language priority. Change-Id: Id07dfd0c6ca60997c8aa599f2cfcdab41268563d Signed-off-by: Hwankyu Jhun --- diff --git a/tizen-cpp/app-core-cpp/app_core_base.cc b/tizen-cpp/app-core-cpp/app_core_base.cc index f35293a..5bceb80 100644 --- a/tizen-cpp/app-core-cpp/app_core_base.cc +++ b/tizen-cpp/app-core-cpp/app_core_base.cc @@ -977,12 +977,10 @@ std::string AppCoreBase::Impl::GetLanguage(std::string lang) { AppendDefaultLangs(lang_set); std::string ret; for (auto& i : lang_set) { - if (ret.empty()) { + if (ret.empty()) ret = i; - } else { - ret += ":"; - ret += i; - } + else + ret = i + ":" + ret; } return ret;