Skip to content

Commit 54a2028

Browse files
committed
修改: .gitignore
修改: CMakeLists.txt 修改: ChangeLog 新文件: lang/en_US.langmap 新文件: lang/zh_CN.langmap 修改: src/languagestandards.h
1 parent 86e0523 commit 54a2028

File tree

6 files changed

+192
-1
lines changed

6 files changed

+192
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Testing
3131
.#*
3232
\#*#
3333
.vscode
34+
.cache
3435

3536
# Autopull modules
3637
build-aux

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ file(READ "${srcdir}/src/platforms.h" PLATFORMS)
4343
# Genetate header
4444
configure_file("${srcdir}/include/cppp/cppp-platform.h.in" "${output_includedir}/cppp/cppp-platform.h")
4545

46+
# Generate header file for install
47+
cppp_nls_autotranslate("${output_includedir}/cppp/cppp-platform.h" "${srcdir}/lang")
48+
4649
# Install
4750
# Includes
4851
# PERMISSIONS 0644

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Add CMake buildsystem support.
44
Add submodule 'build-aux'.
5+
Add NLS Language Map.
56

67
2023-08-07 ChenPi11 <wushengwuxi-msctinoulk@outlook.com>
78

lang/en_US.langmap

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# C++ Plus NLS Util language map for cppp-platform.
2+
# en_US
3+
4+
'''
5+
/* Copyright (C) 2023 The C++ Plus Project
6+
This file is part of the cppp-platform library.
7+
8+
The cppp-platform library is free software; you can redistribute it
9+
and/or modify it under the terms of the The Unlicense as published
10+
by the unlicense.org
11+
12+
The cppp-platform library is distributed in the hope that it will be
13+
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14+
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the The
15+
Unlicense for more details.
16+
17+
You should have received a copy of the The Unlicense along with the
18+
cppp-platform library; see the file COPYING.
19+
If not, see <http://unlicense.org/>. */
20+
'''
21+
/* Copyright (C) 2023 The C++ Plus Project
22+
This file is part of the cppp-platform library.
23+
24+
The cppp-platform library is free software; you can redistribute it
25+
and/or modify it under the terms of the The Unlicense as published
26+
by the unlicense.org
27+
28+
The cppp-platform library is distributed in the hope that it will be
29+
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
30+
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the The
31+
Unlicense for more details.
32+
33+
You should have received a copy of the The Unlicense along with the
34+
cppp-platform library; see the file COPYING.
35+
If not, see <http://unlicense.org/>. */
36+
'''
37+
38+
'''
39+
/* Architectures detection. */
40+
'''
41+
/* Architectures detection. */
42+
'''
43+
44+
'''
45+
/* Fix amd64 and 8086 bug */
46+
'''
47+
/* Fix amd64 and 8086 bug */
48+
'''
49+
50+
'''
51+
/* Compilers detection. */
52+
'''
53+
/* Compilers detection. */
54+
'''
55+
56+
'''
57+
/* C/C++ standards detection. */
58+
'''
59+
/* C/C++ standards detection. */
60+
'''
61+
62+
'''
63+
/* Platforms detection. */
64+
'''
65+
/* Platforms detection. */
66+
'''
67+
68+
'''
69+
/* Unknown architectures */
70+
'''
71+
/* Unknown architectures */
72+
'''
73+
74+
'''
75+
/* Usually C17 means C18. */
76+
'''
77+
/* Usually C17 means C18. */
78+
'''
79+
80+
'''
81+
/* C++ predefines */
82+
'''
83+
/* C++ predefines */
84+
'''
85+
86+
'''
87+
/* Fix MSVC++ __cplusplus's feature. */
88+
'''
89+
/* Fix MSVC++ __cplusplus's feature. */
90+
'''
91+
92+
'''
93+
/* C++ version */
94+
'''
95+
/* C++ version */
96+
'''

lang/zh_CN.langmap

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# C++ Plus NLS Util language map for cppp-platform.
2+
# zh_CN
3+
4+
'''
5+
/* Copyright (C) 2023 The C++ Plus Project
6+
This file is part of the cppp-platform library.
7+
8+
The cppp-platform library is free software; you can redistribute it
9+
and/or modify it under the terms of the The Unlicense as published
10+
by the unlicense.org
11+
12+
The cppp-platform library is distributed in the hope that it will be
13+
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14+
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the The
15+
Unlicense for more details.
16+
17+
You should have received a copy of the The Unlicense along with the
18+
cppp-platform library; see the file COPYING.
19+
If not, see <http://unlicense.org/>. */
20+
'''
21+
/* 版权所有 (C) 2023 The C++ Plus Project
22+
本文件是 cppp-platform 库的一部分。
23+
24+
cppp-platform 库是自由软件;您可以在 unlicense.org 上发布的 The Unlicense 条款下重新分发或修改它。
25+
cppp-platform 库是基于无任何保证的;没有明示的保证,包括但不限于适销性或对特定用途的适用性。
26+
有关更多细节,请参阅 The Unlicense。
27+
28+
您应该已经收到了 The Unlicense 的副本,与 cppp-platform 库一起;请参阅 COPYING 文件。
29+
如果没有收到,请访问 <http://unlicense.org/>。 */
30+
'''
31+
32+
'''
33+
/* Architectures detection. */
34+
'''
35+
/* CPU 架构检测。 */
36+
'''
37+
38+
'''
39+
/* Fix amd64 and 8086 bug */
40+
'''
41+
/* 修复 amd64 和 8086 检测的错误 */
42+
'''
43+
44+
'''
45+
/* Compilers detection. */
46+
'''
47+
/* 编译器检测。 */
48+
'''
49+
50+
'''
51+
/* C/C++ standards detection. */
52+
'''
53+
/* C/C++ 标准检测。 */
54+
'''
55+
56+
'''
57+
/* Platforms detection. */
58+
'''
59+
/* 平台检测 */
60+
'''
61+
62+
'''
63+
/* Unknown architectures */
64+
'''
65+
/* 未知的 CPU 架构 */
66+
'''
67+
68+
'''
69+
/* Usually C17 means C18. */
70+
'''
71+
/* 通常, C17 和 C18 相同。 */
72+
'''
73+
74+
'''
75+
/* C++ predefines */
76+
'''
77+
/* C++ 预定义 */
78+
'''
79+
80+
'''
81+
/* Fix MSVC++ __cplusplus's feature. */
82+
'''
83+
/* 修复了 MSVC++ __cplusplus 宏值错误的问题 */
84+
'''
85+
86+
'''
87+
/* C++ version */
88+
'''
89+
/* C++ 标准 */
90+
'''

src/languagestandards.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define __has_c18__ 0
2020
#endif
2121

22-
/* Usually C17 means C18 */
22+
/* Usually C17 means C18. */
2323
#define __has_c17__ __has_c18__
2424

2525
/* C++98 */

0 commit comments

Comments
 (0)