!657 支持国内语言的本地语言及地区名称

Merge pull request !657 from zhangdd_ewan/cherry-240403-02
This commit is contained in:
openharmony_ci 2024-04-08 12:35:22 +00:00 committed by Gitee
commit b889b15520
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
11 changed files with 303 additions and 1 deletions

View File

@ -129,6 +129,8 @@ ohos_shared_library("intl_util") {
deps = [
":CN_phonenumber_xml",
":GB_phonenumber_xml",
":bo_lang_xml",
":bo_region_xml",
":common_datetime_xml",
":common_phonenumber_xml",
":config_locales_xml",
@ -144,9 +146,13 @@ ohos_shared_library("intl_util") {
":root_timezone_xml",
":timezones_xml",
":tz_pixel_dat",
":ug_lang_xml",
":ug_region_xml",
":zh_Hans_lang_xml",
":zh_Hans_region_xml",
":zh_Hans_timezone_xml",
":zh_Hant_lang_xml",
":zh_Hant_region_xml",
":zh_datetime_xml",
]
use_exceptions = true
@ -270,6 +276,27 @@ ohos_prebuilt_etc("zh_Hans_lang_xml") {
subsystem_name = "global"
}
ohos_prebuilt_etc("zh_Hant_lang_xml") {
source = "//base/global/i18n/frameworks/intl/etc/lang/zh-Hant.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/"
part_name = "i18n"
subsystem_name = "global"
}
ohos_prebuilt_etc("ug_lang_xml") {
source = "//base/global/i18n/frameworks/intl/etc/lang/ug.xml"
module_install_dir = "etc/ohos_lang_config/"
part_name = "i18n"
subsystem_name = "global"
}
ohos_prebuilt_etc("zh_Hans_timezone_xml") {
source = "//base/global/i18n/frameworks/intl/etc/timezone/zh_Hans.xml"
module_install_dir = "usr/ohos_timezone/ohos_city_dispname/"
@ -327,6 +354,27 @@ ohos_prebuilt_etc("en_Latn_region_xml") {
subsystem_name = "global"
}
ohos_prebuilt_etc("zh_Hant_region_xml") {
source = "//base/global/i18n/frameworks/intl/etc/region/zh-Hant.xml"
module_install_dir = "usr/ohos_locale_config/region/"
part_name = "i18n"
subsystem_name = "global"
}
ohos_prebuilt_etc("bo_region_xml") {
source = "//base/global/i18n/frameworks/intl/etc/region/bo.xml"
module_install_dir = "usr/ohos_locale_config/region/"
part_name = "i18n"
subsystem_name = "global"
}
ohos_prebuilt_etc("ug_region_xml") {
source = "//base/global/i18n/frameworks/intl/etc/region/ug.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/"

View File

@ -0,0 +1,48 @@
<?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>en</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>ro</id>
<display_name>རོ་མ་ཉི་ཡའི་སྐད།</display_name>
</lang>
<lang>
<id>fa</id>
<display_name>པོ་སིའི་སྐད།</display_name>
</lang>
<lang>
<id>bo</id>
<display_name>བོད་སྐད་</display_name>
</lang>
<lang>
<id>ug</id>
<display_name>ཡུ་གུར་སྐད།</display_name>
</lang>
</languages>

View File

@ -41,4 +41,12 @@
<id>fa-AF</id>
<display_name>Dari</display_name>
</lang>
<lang>
<id>bo</id>
<display_name>Tibetan</display_name>
</lang>
<lang>
<id>ug</id>
<display_name>Uyghur</display_name>
</lang>
</languages>

View File

@ -15,4 +15,7 @@
<supported_locales>
<item>en-Latn</item>
<item>zh-Hans</item>
<item>zh-Hant</item>
<item>bo</item>
<item>ug</item>
</supported_locales>

View File

@ -0,0 +1,48 @@
<?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>en</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>ro</id>
<display_name>رومىنچە</display_name>
</lang>
<lang>
<id>fa</id>
<display_name>پارسچە</display_name>
</lang>
<lang>
<id>bo</id>
<display_name>تىبەتچە</display_name>
</lang>
<lang>
<id>ug</id>
<display_name>ئۇيغۇرچە</display_name>
</lang>
</languages>

View File

@ -35,10 +35,18 @@
</lang>
<lang>
<id>fa</id>
<display_name>波斯</display_name>
<display_name>波斯</display_name>
</lang>
<lang>
<id>fa-AF</id>
<display_name>达里语</display_name>
</lang>
<lang>
<id>bo</id>
<display_name>藏文</display_name>
</lang>
<lang>
<id>ug</id>
<display_name>维吾尔文</display_name>
</lang>
</languages>

View File

@ -0,0 +1,52 @@
<?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>ro</id>
<display_name>羅馬尼亞文</display_name>
</lang>
<lang>
<id>ro-MD</id>
<display_name>摩爾多瓦文</display_name>
</lang>
<lang>
<id>fa</id>
<display_name>波斯文</display_name>
</lang>
<lang>
<id>fa-AF</id>
<display_name>達里语</display_name>
</lang>
<lang>
<id>bo</id>
<display_name>藏文</display_name>
</lang>
<lang>
<id>ug</id>
<display_name>維吾爾文</display_name>
</lang>
</languages>

View File

@ -0,0 +1,28 @@
<?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.
-->
<regions>
<region>
<id>HK</id>
<display_name>ཀྲུང་གོའི་ཞང་ཀང་།</display_name>
</region>
<region>
<id>MO</id>
<display_name>ཀྲུང་གོའི་ཨའོ་མོན།</display_name>
</region>
<region>
<id>TW</id>
<display_name>ཀྲུང་གོའི་ཐའེ་ཝན།</display_name>
</region>
</regions>

View File

@ -15,4 +15,7 @@
<supported_regions>
<item>en-Latn-US</item>
<item>zh-Hans</item>
<item>zh-Hant</item>
<item>bo</item>
<item>ug</item>
</supported_regions>

View File

@ -0,0 +1,28 @@
<?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.
-->
<regions>
<region>
<id>HK</id>
<display_name>جۇڭگو شياڭگاڭ</display_name>
</region>
<region>
<id>MO</id>
<display_name>جۇڭگو ئاۋمېن</display_name>
</region>
<region>
<id>TW</id>
<display_name>جۇڭگو تەيۋەن</display_name>
</region>
</regions>

View File

@ -0,0 +1,28 @@
<?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.
-->
<regions>
<region>
<id>HK</id>
<display_name>中國香港</display_name>
</region>
<region>
<id>MO</id>
<display_name>中國澳門</display_name>
</region>
<region>
<id>TW</id>
<display_name>中國台灣</display_name>
</region>
</regions>