!832 修改敏感地区名称

Merge pull request !832 from zhangdd_ewan/cherry-240924
This commit is contained in:
openharmony_ci 2024-10-09 02:59:26 +00:00 committed by Gitee
commit 8a2f28f41f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
10 changed files with 7 additions and 76 deletions

View File

@ -149,7 +149,6 @@ ohos_shared_library("intl_util") {
":zh_Hans_lang_xml",
":zh_Hans_region_xml",
":zh_Hans_timezone_xml",
":zh_Hant_HK_lang_xml",
":zh_Hant_lang_xml",
":zh_datetime_xml",
]
@ -292,13 +291,6 @@ ohos_prebuilt_etc("zh_Hant_lang_xml") {
subsystem_name = "global"
}
ohos_prebuilt_etc("zh_Hant_HK_lang_xml") {
source = "//base/global/i18n/frameworks/intl/etc/lang/zh-Hant-HK.xml"
module_install_dir = "etc/ohos_lang_config/"
part_name = "i18n"
subsystem_name = "global"
}
ohos_prebuilt_etc("bo_lang_xml") {
source = "//base/global/i18n/frameworks/intl/etc/lang/bo.xml"
module_install_dir = "etc/ohos_lang_config/"

View File

@ -25,10 +25,6 @@
<id>zh-Hant</id>
<display_name>བརྡ་རྙིང་རྒྱ་ཡིག</display_name>
</lang>
<lang>
<id>zh-Hant-HK</id>
<display_name>བརྡ་རྙིང་རྒྱ་ཡིག(ཀྲུང་གོའི་ཞང་ཀང་།)</display_name>
</lang>
<lang>
<id>ro</id>
<display_name>རོ་མ་ནི་ཡའི་སྐད།</display_name>

View File

@ -25,10 +25,6 @@
<id>zh-Hant</id>
<display_name>Traditional Chinese</display_name>
</lang>
<lang>
<id>zh-Hant-HK</id>
<display_name>Traditional Chinese(Hong Kong, China)</display_name>
</lang>
<lang>
<id>ro</id>
<display_name>Romanian</display_name>

View File

@ -16,7 +16,6 @@
<item>en-Latn</item>
<item>zh-Hans</item>
<item>zh-Hant</item>
<item>zh-Hant-HK</item>
<item>bo</item>
<item>ug</item>
</supported_locales>

View File

@ -17,10 +17,6 @@
<id>zh-Hant</id>
<display_name>ئەنئەنىۋىي خەنزۇچە</display_name>
</lang>
<lang>
<id>zh-Hant-HK</id>
<display_name>ئەنئەنىۋىي خەنزۇچە (جۇڭگو شياڭگاڭ)</display_name>
</lang>
<lang>
<id>ro</id>
<display_name>رومىنچە</display_name>

View File

@ -25,10 +25,6 @@
<id>zh-Hant</id>
<display_name>繁体中文</display_name>
</lang>
<lang>
<id>zh-Hant-HK</id>
<display_name>繁体中文(中国香港)</display_name>
</lang>
<lang>
<id>ro</id>
<display_name>罗马尼亚文</display_name>

View File

@ -1,40 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2022 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
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.
-->
<languages>
<lang>
<id>zh</id>
<display_name>中文</display_name>
</lang>
<lang>
<id>zh-Hans</id>
<display_name>簡體中文</display_name>
</lang>
<lang>
<id>zh-Hant</id>
<display_name>繁體中文</display_name>
</lang>
<lang>
<id>zh-Hant-HK</id>
<display_name>繁體中文(中國香港)</display_name>
</lang>
<lang>
<id>ro</id>
<display_name>羅馬尼亞文</display_name>
</lang>
<lang>
<id>fa</id>
<display_name>波斯文</display_name>
</lang>
</languages>

View File

@ -25,10 +25,6 @@
<id>zh-Hant</id>
<display_name>繁體中文</display_name>
</lang>
<lang>
<id>zh-Hant-HK</id>
<display_name>繁體中文(中國香港)</display_name>
</lang>
<lang>
<id>ro</id>
<display_name>羅馬尼亞文</display_name>

View File

@ -15,14 +15,14 @@
<regions>
<region>
<id>HK</id>
<display_name>Hong Kong, China</display_name>
<display_name>Hong Kong (China)</display_name>
</region>
<region>
<id>MO</id>
<display_name>Macao, China</display_name>
<display_name>Macao (China)</display_name>
</region>
<region>
<id>TW</id>
<display_name>Taiwan, China</display_name>
<display_name>Taiwan (China)</display_name>
</region>
</regions>

View File

@ -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)");
}
/**
@ -264,17 +264,17 @@ HWTEST_F(LocaleConfigTest, LocaleConfigFuncTest010, TestSize.Level1)
std::string languageTag = "zh-Hant-HK";
std::string localeTag = "zh-Hant";
std::string displayName = LocaleConfig::GetDisplayLanguage(languageTag, localeTag, true);
EXPECT_EQ(displayName, "繁體中文(中國香港)");
EXPECT_EQ(displayName, "繁體中文");
languageTag = "zh-Hant-HK";
localeTag = "zh-Hans";
displayName = LocaleConfig::GetDisplayLanguage(languageTag, localeTag, true);
EXPECT_EQ(displayName, "繁体中文(中国香港)");
EXPECT_EQ(displayName, "繁体中文");
languageTag = "zh-Hant-HK";
localeTag = "en-US";
displayName = LocaleConfig::GetDisplayLanguage(languageTag, localeTag, true);
EXPECT_EQ(displayName, "Traditional Chinese(Hong Kong, China)");
EXPECT_EQ(displayName, "Traditional Chinese");
}
/**