diff --git a/frameworks/intl/etc/language_config.para b/frameworks/intl/etc/language_config.para index f1685582466a9c549f1de13e8ec41d7d4efe499e..672765df94eee217c72d44afad95ddb0f76b85cc 100644 --- a/frameworks/intl/etc/language_config.para +++ b/frameworks/intl/etc/language_config.para @@ -10,8 +10,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -persist.sys.language=zh-Hans -persist.sys.locale=zh-Hans-CN -const.sys.language=zh-Hans -const.sys.locale=zh-Hans-CN -const.sys.region=CN \ No newline at end of file +persist.global.language=zh-Hans +persist.global.locale=zh-Hans-CN +const.global.language=zh-Hans +const.global.locale=zh-Hans-CN +const.global.region=CN \ No newline at end of file diff --git a/frameworks/intl/src/locale_config.cpp b/frameworks/intl/src/locale_config.cpp index 7b569d4d83d89b83deea00810cc46977990728fe..66990ef7c5ce9a80e6ca10920bb502b3f11c5c51 100644 --- a/frameworks/intl/src/locale_config.cpp +++ b/frameworks/intl/src/locale_config.cpp @@ -42,12 +42,12 @@ using namespace std; using namespace OHOS::HiviewDFX; static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, 0xD001E00, "LocaleConfig" }; -const char *LocaleConfig::LANGUAGE_KEY = "persist.sys.language"; -const char *LocaleConfig::LOCALE_KEY = "persist.sys.locale"; -const char *LocaleConfig::HOUR_KEY = "persist.sys.is24Hour"; -const char *LocaleConfig::DEFAULT_LOCALE_KEY = "const.sys.locale"; -const char *LocaleConfig::DEFAULT_LANGUAGE_KEY = "const.sys.language"; -const char *LocaleConfig::DEFAULT_REGION_KEY = "const.sys.region"; +const char *LocaleConfig::LANGUAGE_KEY = "persist.global.language"; +const char *LocaleConfig::LOCALE_KEY = "persist.global.locale"; +const char *LocaleConfig::HOUR_KEY = "persist.global.is24Hour"; +const char *LocaleConfig::DEFAULT_LOCALE_KEY = "const.global.locale"; +const char *LocaleConfig::DEFAULT_LANGUAGE_KEY = "const.global.language"; +const char *LocaleConfig::DEFAULT_REGION_KEY = "const.global.region"; const char *LocaleConfig::SUPPORTED_LOCALES_NAME = "supported_locales"; const char *LocaleConfig::SUPPORTED_REGIONS_NAME = "supported_regions"; const char *LocaleConfig::WHITE_LANGUAGES_NAME = "white_languages";