change default 24hourclock and resource path

Signed-off-by: sunyaozu <sunyaozu@huawei.com>
This commit is contained in:
sunyaozu 2022-01-18 16:21:43 +08:00
parent e8711517cf
commit 394a46545c
2 changed files with 5 additions and 5 deletions

View File

@ -848,12 +848,12 @@ bool LocaleConfig::Is24HourClock()
char value[CONFIG_LEN];
int code = GetParameter(HOUR_KEY, "", value, CONFIG_LEN);
if (code <= 0) {
return true;
}
if (strcmp(value, "false") == 0) {
return false;
}
return true;
if (strcmp(value, "true") == 0) {
return true;
}
return false;
}
bool LocaleConfig::Set24HourClock(bool option)

View File

@ -26,7 +26,7 @@ namespace OHOS {
namespace Global {
namespace I18n {
const char *PreferredLanguage::RESOURCE_PATH_HEAD = "/data/accounts/account_0/applications/";
const char *PreferredLanguage::RESOURCE_PATH_TAILOR = "/assets/entry/resources.index";
const char *PreferredLanguage::RESOURCE_PATH_TAILOR = "/resources.index";
const char *PreferredLanguage::RESOURCE_PATH_SPLITOR = "/";
const char *PreferredLanguage::PREFERRED_LANGUAGES = "persist.sys.preferredLanguages";
static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, 0xD001E00, "LocaleConfig" };