Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Global I18n Standard
提交
efe14bf4
G
Global I18n Standard
项目概览
OpenHarmony
/
Global I18n Standard
大约 1 年 前同步成功
通知
0
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Global I18n Standard
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
efe14bf4
编写于
4月 12, 2022
作者:
T
the-minions-of-cplu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改i18n部件名
Signed-off-by:
N
the-minions-of-cplu
<
jinqi2@huawei.com
>
上级
1bbfdaa1
变更
12
显示空白变更内容
内联
并排
Showing
12 changed file
with
62 addition
and
65 deletion
+62
-65
README.md
README.md
+1
-1
README_zh.md
README_zh.md
+1
-1
bundle.json
bundle.json
+15
-15
frameworks/intl/BUILD.gn
frameworks/intl/BUILD.gn
+20
-23
frameworks/intl/include/character.h
frameworks/intl/include/character.h
+2
-2
frameworks/intl/include/collator.h
frameworks/intl/include/collator.h
+2
-2
frameworks/intl/include/index_util.h
frameworks/intl/include/index_util.h
+2
-2
frameworks/intl/include/plural_rules.h
frameworks/intl/include/plural_rules.h
+2
-2
frameworks/intl/test/BUILD.gn
frameworks/intl/test/BUILD.gn
+3
-3
frameworks/zone/BUILD.gn
frameworks/zone/BUILD.gn
+2
-2
frameworks/zone/test/BUILD.gn
frameworks/zone/test/BUILD.gn
+3
-3
interfaces/js/kits/BUILD.gn
interfaces/js/kits/BUILD.gn
+9
-9
未找到文件。
README.md
浏览文件 @
efe14bf4
...
...
@@ -16,7 +16,7 @@ The directory structure for the i18n module is as follows:
```
/base/global/
├── i18n
_standard
# Code repository for the i18n framework
├── i18n
# Code repository for the i18n framework
│ ├── frameworks # Core code of the i18n framework
│ ├── interfaces # APIs
│ │ ├── js # JavaScript APIs
...
...
README_zh.md
浏览文件 @
efe14bf4
...
...
@@ -16,7 +16,7 @@
```
/base/global/
├── i18n
_standard
# 国际化框架代码仓
├── i18n
# 国际化框架代码仓
│ ├── frameworks # 国际化框架核心代码
│ ├── interfaces # 国际化框架接口
│ │ ├── js # 国际化框架JavaScript接口
...
...
bundle.json
浏览文件 @
efe14bf4
{
"name"
:
"@ohos/global_i18n
_standard
"
,
"name"
:
"@ohos/global_i18n"
,
"version"
:
"1.0.0"
,
"description"
:
"Provides internationalization APIS for implementing functions such date and time formatting."
,
"homePage"
:
"https://gitee.com/openharmony/"
,
"license"
:
"Apache V2"
,
"repository"
:
"https://gitee.com/openharmony/global_i18n
_standard
"
,
"repository"
:
"https://gitee.com/openharmony/global_i18n"
,
"domain"
:
"os"
,
"language"
:
""
,
"publishAs"
:
"code-segment"
,
...
...
@@ -32,10 +32,10 @@
}
],
"segment"
:
{
"destPath"
:
"base/global/i18n
_standard
"
"destPath"
:
"base/global/i18n"
},
"component"
:
{
"name"
:
"i18n
_standard
"
,
"name"
:
"i18n"
,
"subsystem"
:
"global"
,
"syscap"
:
[
"SystemCapability.Global.I18n"
...
...
@@ -66,43 +66,43 @@
},
"build"
:
{
"sub_component"
:
[
"//base/global/i18n
_standard
/frameworks/zone:zone_util"
,
"//base/global/i18n
_standard
/frameworks/intl:build_module"
,
"//base/global/i18n
_standard
/interfaces/js/kits:build_module"
"//base/global/i18n/frameworks/zone:zone_util"
,
"//base/global/i18n/frameworks/intl:build_module"
,
"//base/global/i18n/interfaces/js/kits:build_module"
],
"inner_kits"
:
[
{
"name"
:
"//base/global/i18n
_standard
/frameworks/zone:zone_util"
,
"name"
:
"//base/global/i18n/frameworks/zone:zone_util"
,
"header"
:
{
"header_files"
:
[
"zone_util.h"
],
"header_base"
:
"//base/global/i18n
_standard
/interfaces/native/innerkits/zone/include"
"header_base"
:
"//base/global/i18n/interfaces/native/innerkits/zone/include"
}
},
{
"name"
:
"//base/global/i18n
_standard
/frameworks/intl:intl_util"
,
"name"
:
"//base/global/i18n/frameworks/intl:intl_util"
,
"header"
:
{
"header_files"
:
[
"locale_config.h"
,
"locale_info.h"
],
"header_base"
:
"//base/global/i18n
_standard
/frameworks/intl/include"
"header_base"
:
"//base/global/i18n/frameworks/intl/include"
}
},
{
"name"
:
"//base/global/i18n
_standard
/frameworks/intl:preferred_language"
,
"name"
:
"//base/global/i18n/frameworks/intl:preferred_language"
,
"header"
:
{
"header_files"
:
[
"preferred_language.h"
],
"header_base"
:
"//base/global/i18n
_standard
/interfaces/native/innerkits/preferred_language/include"
"header_base"
:
"//base/global/i18n/interfaces/native/innerkits/preferred_language/include"
}
}
],
"test"
:
[
"//base/global/i18n
_standard
/frameworks/intl/test:intl_test"
,
"//base/global/i18n
_standard
/frameworks/zone/test:zone_util_test"
"//base/global/i18n/frameworks/intl/test:intl_test"
,
"//base/global/i18n/frameworks/zone/test:zone_util_test"
]
}
}
...
...
frameworks/intl/BUILD.gn
浏览文件 @
efe14bf4
...
...
@@ -21,7 +21,9 @@ group("build_module") {
}
config("preferred_language_config") {
include_dirs = [ "//base/global/i18n_standard/interfaces/native/innerkits/preferred_language/include" ]
include_dirs = [
"//base/global/i18n/interfaces/native/innerkits/preferred_language/include",
]
}
ohos_shared_library("preferred_language") {
public_configs = [ ":preferred_language_config" ]
...
...
@@ -31,13 +33,13 @@ ohos_shared_library("preferred_language") {
"-Wall",
"-fPIC",
]
deps = [ "//base/global/i18n
_standard
/frameworks/intl:intl_util" ]
deps = [ "//base/global/i18n/frameworks/intl:intl_util" ]
external_deps = [
"hiviewdfx_hilog_native:libhilog",
"startup_l2:syspara",
]
subsystem_name = "global"
part_name = "i18n
_standard
"
part_name = "i18n"
}
config("intl_util_config") {
...
...
@@ -46,8 +48,8 @@ config("intl_util_config") {
"//third_party/icu/icu4c/source/common",
"//third_party/icu/icu4c/source/i18n",
"//third_party/icu/icu4c/source/common/unicode",
"//base/global/i18n
_standard
/frameworks/intl/include",
"//base/global/i18n
_standard
/interfaces/native/innerkits/i18n/include",
"//base/global/i18n/frameworks/intl/include",
"//base/global/i18n/interfaces/native/innerkits/i18n/include",
]
}
ohos_shared_library("intl_util") {
...
...
@@ -106,51 +108,46 @@ ohos_shared_library("intl_util") {
cflags_cc += [ "-DTEL_CORE_SERVICE_EXISTS" ]
}
subsystem_name = "global"
part_name = "i18n
_standard
"
part_name = "i18n"
}
ohos_prebuilt_etc("language_config.para") {
source =
"//base/global/i18n_standard/frameworks/intl/etc/language_config.para"
part_name = "i18n_standard"
source = "//base/global/i18n/frameworks/intl/etc/language_config.para"
part_name = "i18n"
module_install_dir = "etc/param"
}
ohos_prebuilt_etc("config_locales_xml") {
source =
"//base/global/i18n_standard/frameworks/intl/etc/supported_locales.xml"
source = "//base/global/i18n/frameworks/intl/etc/supported_locales.xml"
module_install_dir = "usr/ohos_locale_config/"
part_name = "i18n
_standard
"
part_name = "i18n"
subsystem_name = "global"
}
ohos_prebuilt_etc("config_regions_xml") {
source =
"//base/global/i18n_standard/frameworks/intl/etc/supported_regions.xml"
source = "//base/global/i18n/frameworks/intl/etc/supported_regions.xml"
module_install_dir = "usr/ohos_locale_config/"
part_name = "i18n
_standard
"
part_name = "i18n"
subsystem_name = "global"
}
ohos_prebuilt_etc("white_languages_xml") {
source = "//base/global/i18n
_standard
/frameworks/intl/etc/white_languages.xml"
source = "//base/global/i18n/frameworks/intl/etc/white_languages.xml"
module_install_dir = "usr/ohos_locale_config/"
part_name = "i18n
_standard
"
part_name = "i18n"
subsystem_name = "global"
}
ohos_prebuilt_etc("forbidden_languages_xml") {
source =
"//base/global/i18n_standard/frameworks/intl/etc/forbidden_languages.xml"
source = "//base/global/i18n/frameworks/intl/etc/forbidden_languages.xml"
module_install_dir = "usr/ohos_locale_config/"
part_name = "i18n
_standard
"
part_name = "i18n"
subsystem_name = "global"
}
ohos_prebuilt_etc("forbidden_regions_xml") {
source =
"//base/global/i18n_standard/frameworks/intl/etc/forbidden_regions.xml"
source = "//base/global/i18n/frameworks/intl/etc/forbidden_regions.xml"
module_install_dir = "usr/ohos_locale_config/"
part_name = "i18n
_standard
"
part_name = "i18n"
subsystem_name = "global"
}
frameworks/intl/include/character.h
浏览文件 @
efe14bf4
...
...
@@ -12,8 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef GLOBAL_I18N_
STANDARD_
CHARACTER_H
#define GLOBAL_I18N_
STANDARD_
CHARACTER_H
#ifndef GLOBAL_I18N_CHARACTER_H
#define GLOBAL_I18N_CHARACTER_H
#include <string>
#include <map>
#include "unicode/uchar.h"
...
...
frameworks/intl/include/collator.h
浏览文件 @
efe14bf4
...
...
@@ -12,8 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef GLOBAL_
I18N_STANDARD
_COLLATOR_H
#define GLOBAL_
I18N_STANDARD
_COLLATOR_H
#ifndef GLOBAL_
i18n
_COLLATOR_H
#define GLOBAL_
i18n
_COLLATOR_H
#include <string>
#include <map>
...
...
frameworks/intl/include/index_util.h
浏览文件 @
efe14bf4
...
...
@@ -12,8 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef GLOBAL_I18N_
STANDARD_
INDEX_UTIL_H
#define GLOBAL_I18N_
STANDARD_
INDEX_UTIL_H
#ifndef GLOBAL_I18N_INDEX_UTIL_H
#define GLOBAL_I18N_INDEX_UTIL_H
#include <string>
#include <vector>
...
...
frameworks/intl/include/plural_rules.h
浏览文件 @
efe14bf4
...
...
@@ -12,8 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef GLOBAL_I18N_
STANDARD_
PLURAL_RULES_H
#define GLOBAL_I18N_
STANDARD_
PLURAL_RULES_H
#ifndef GLOBAL_I18N_PLURAL_RULES_H
#define GLOBAL_I18N_PLURAL_RULES_H
#include <vector>
#include <string>
...
...
frameworks/intl/test/BUILD.gn
浏览文件 @
efe14bf4
...
...
@@ -13,7 +13,7 @@
import("//build/test.gni")
module_output_path = "i18n
_standard
/intl_test"
module_output_path = "i18n/intl_test"
ohos_unittest("intl_test") {
module_out_path = module_output_path
...
...
@@ -23,12 +23,12 @@ ohos_unittest("intl_test") {
"unittest/locale_config_test.cpp",
]
include_dirs = [
"//base/global/i18n
_standard
/frameworks/intl/include",
"//base/global/i18n/frameworks/intl/include",
"//third_party/icu/icu4c/source/common",
"//third_party/icu/icu4c/source/i18n",
]
deps = [
"//base/global/i18n
_standard
/frameworks/intl:intl_util",
"//base/global/i18n/frameworks/intl:intl_util",
"//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara",
"//third_party/googletest:gtest_main",
"//third_party/icu/icu4c:shared_icui18n",
...
...
frameworks/zone/BUILD.gn
浏览文件 @
efe14bf4
...
...
@@ -19,7 +19,7 @@ config("zone_util_public_configs") {
"//third_party/icu/icu4c/source/common",
"//third_party/icu/icu4c/source/common/unicode",
"//third_party/icu/icu4c/source/i18n",
"//base/global/i18n
_standard
/interfaces/native/innerkits/zone/include",
"//base/global/i18n/interfaces/native/innerkits/zone/include",
"//third_party/libphonenumber/cpp/src",
"//third_party/protobuf/src",
"//third_party/protobuf/src/google",
...
...
@@ -43,5 +43,5 @@ ohos_shared_library("zone_util") {
"//third_party/libphonenumber/cpp:phonenumber_standard",
]
subsystem_name = "global"
part_name = "i18n
_standard
"
part_name = "i18n"
}
frameworks/zone/test/BUILD.gn
浏览文件 @
efe14bf4
...
...
@@ -13,7 +13,7 @@
import("//build/test.gni")
module_output_path = "i18n
_standard
/zone_util_test"
module_output_path = "i18n/zone_util_test"
ohos_unittest("zone_util_test") {
module_out_path = module_output_path
...
...
@@ -38,7 +38,7 @@ ohos_unittest("zone_util_test") {
include_dirs = [
"//third_party/googletest/googletest/include",
"//third_party/googletest/googletest",
"//base/global/i18n
_standard
/interfaces/native/innerkits/zone/include",
"//base/global/i18n/interfaces/native/innerkits/zone/include",
"//third_party/icu/icu4c/source/common/unicode",
"//third_party/icu/icu4c/source/common",
"//third_party/libphonenumber/cpp/src",
...
...
@@ -47,7 +47,7 @@ ohos_unittest("zone_util_test") {
"//third_party/protobuf/src/google/protobuf",
]
deps = [
"//base/global/i18n
_standard
/frameworks/zone:zone_util",
"//base/global/i18n/frameworks/zone:zone_util",
"//third_party/libphonenumber/cpp:phonenumber_standard",
"//utils/native/base:utils",
]
...
...
interfaces/js/kits/BUILD.gn
浏览文件 @
efe14bf4
...
...
@@ -22,8 +22,8 @@ group("build_module") {
ohos_shared_library("intl") {
include_dirs = [
"//base/global/i18n
_standard
/frameworks/intl/include",
"//base/global/i18n
_standard
/interfaces/js/kits/include",
"//base/global/i18n/frameworks/intl/include",
"//base/global/i18n/interfaces/js/kits/include",
"//base/hiviewdfx/interfaces/native/innerkits/include",
"//foundation/ace/napi/native_engine",
"//foundation/ace/napi/interfaces/kits",
...
...
@@ -39,7 +39,7 @@ ohos_shared_library("intl") {
sources = [ "src/intl_addon.cpp" ]
deps = [
"//base/global/i18n
_standard
/frameworks/intl:intl_util",
"//base/global/i18n/frameworks/intl:intl_util",
"//foundation/ace/napi:ace_napi",
"//third_party/icu/icu4c:shared_icui18n",
"//third_party/icu/icu4c:shared_icuuc",
...
...
@@ -48,13 +48,13 @@ ohos_shared_library("intl") {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
relative_install_dir = "module"
subsystem_name = "global"
part_name = "i18n
_standard
"
part_name = "i18n"
}
ohos_shared_library("i18n") {
include_dirs = [
"//base/global/i18n
_standard
/frameworks/intl/include",
"//base/global/i18n
_standard
/interfaces/js/kits/include",
"//base/global/i18n/frameworks/intl/include",
"//base/global/i18n/interfaces/js/kits/include",
"//base/hiviewdfx/interfaces/native/innerkits/include",
"//foundation/ace/napi/native_engine",
"//foundation/ace/napi/interfaces/kits",
...
...
@@ -70,8 +70,8 @@ ohos_shared_library("i18n") {
sources = [ "src/i18n_addon.cpp" ]
deps = [
"//base/global/i18n
_standard
/frameworks/intl:intl_util",
"//base/global/i18n
_standard
/frameworks/intl:preferred_language",
"//base/global/i18n/frameworks/intl:intl_util",
"//base/global/i18n/frameworks/intl:preferred_language",
"//third_party/icu/icu4c:shared_icui18n",
"//third_party/icu/icu4c:shared_icuuc",
"//third_party/libphonenumber/cpp:phonenumber_standard",
...
...
@@ -82,5 +82,5 @@ ohos_shared_library("i18n") {
]
relative_install_dir = "module"
subsystem_name = "global"
part_name = "i18n
_standard
"
part_name = "i18n"
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录