mirror of
https://gitee.com/openharmony/global_i18n
synced 2024-11-27 17:21:23 +00:00
change default 24hourclock and resource path
Signed-off-by: sunyaozu <sunyaozu@huawei.com>
This commit is contained in:
parent
e8711517cf
commit
394a46545c
@ -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)
|
||||
|
@ -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" };
|
||||
|
Loading…
Reference in New Issue
Block a user