From d0e9d2cc67e565a0b2b775d1c4255a68c52d096a Mon Sep 17 00:00:00 2001 From: zhangdd_ewan Date: Mon, 18 Nov 2024 08:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=8F=E6=84=9F=E5=9C=B0=E5=8C=BA=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangdd_ewan --- frameworks/intl/BUILD.gn | 16 ----------- frameworks/intl/etc/region/en-Latn-US.xml | 28 ------------------- .../intl/etc/region/supported_regions.xml | 2 -- frameworks/intl/etc/region/zh-Hans.xml | 28 ------------------- .../intl/test/unittest/locale_config_test.cpp | 2 +- 5 files changed, 1 insertion(+), 75 deletions(-) delete mode 100644 frameworks/intl/etc/region/en-Latn-US.xml delete mode 100644 frameworks/intl/etc/region/zh-Hans.xml diff --git a/frameworks/intl/BUILD.gn b/frameworks/intl/BUILD.gn index d3760730..76c5eb24 100644 --- a/frameworks/intl/BUILD.gn +++ b/frameworks/intl/BUILD.gn @@ -141,7 +141,6 @@ ohos_shared_library("intl_util") { ":config_locales_xml", ":dialect_languages_xml", ":en_Latn_lang_xml", - ":en_Latn_region_xml", ":en_datetime_xml", ":i18n.para", ":i18n.para.dac", @@ -152,7 +151,6 @@ ohos_shared_library("intl_util") { ":timezones_xml", ":ug_lang_xml", ":zh_Hans_lang_xml", - ":zh_Hans_region_xml", ":zh_Hans_timezone_xml", ":zh_Hant_HK_lang_xml", ":zh_Hant_lang_xml", @@ -344,20 +342,6 @@ ohos_prebuilt_etc("region_supported_locales_xml") { subsystem_name = "global" } -ohos_prebuilt_etc("zh_Hans_region_xml") { - source = "//base/global/i18n/frameworks/intl/etc/region/zh-Hans.xml" - module_install_dir = "usr/ohos_locale_config/region/" - part_name = "i18n" - subsystem_name = "global" -} - -ohos_prebuilt_etc("en_Latn_region_xml") { - source = "//base/global/i18n/frameworks/intl/etc/region/en-Latn-US.xml" - module_install_dir = "usr/ohos_locale_config/region/" - part_name = "i18n" - subsystem_name = "global" -} - ohos_prebuilt_etc("dialect_languages_xml") { source = "//base/global/i18n/frameworks/intl/etc/dialect_languages.xml" module_install_dir = "usr/ohos_locale_config/" diff --git a/frameworks/intl/etc/region/en-Latn-US.xml b/frameworks/intl/etc/region/en-Latn-US.xml deleted file mode 100644 index b7c06fb8..00000000 --- a/frameworks/intl/etc/region/en-Latn-US.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - HK - Hong Kong, China - - - MO - Macao, China - - - TW - Taiwan, China - - \ No newline at end of file diff --git a/frameworks/intl/etc/region/supported_regions.xml b/frameworks/intl/etc/region/supported_regions.xml index c261d4a1..9d1fffca 100644 --- a/frameworks/intl/etc/region/supported_regions.xml +++ b/frameworks/intl/etc/region/supported_regions.xml @@ -13,6 +13,4 @@ limitations under the License. --> - en-Latn-US - zh-Hans \ No newline at end of file diff --git a/frameworks/intl/etc/region/zh-Hans.xml b/frameworks/intl/etc/region/zh-Hans.xml deleted file mode 100644 index 42baf866..00000000 --- a/frameworks/intl/etc/region/zh-Hans.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - HK - 中国香港 - - - MO - 中国澳门 - - - TW - 中国台湾 - - \ No newline at end of file diff --git a/frameworks/intl/test/unittest/locale_config_test.cpp b/frameworks/intl/test/unittest/locale_config_test.cpp index 9ef95679..e7c20e46 100644 --- a/frameworks/intl/test/unittest/locale_config_test.cpp +++ b/frameworks/intl/test/unittest/locale_config_test.cpp @@ -251,7 +251,7 @@ HWTEST_F(LocaleConfigTest, LocaleConfigFuncTest009, TestSize.Level1) regionTag = "HK"; displayName = LocaleConfig::GetDisplayRegion(regionTag, localeTag, false); - EXPECT_EQ(displayName, "Hong Kong, China"); + EXPECT_EQ(displayName, "Hong Kong (China)"); } /**