Skip to content

Commit 51d35c5

Browse files
committed
Update docs translation
1 parent 0ae2c35 commit 51d35c5

File tree

3 files changed

+174
-155
lines changed

3 files changed

+174
-155
lines changed

docs/locales/zh/LC_MESSAGES/changelog.po

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,46 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: bitproto 0.4.0\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-02-02 22:59+0800\n"
11+
"POT-Creation-Date: 2021-07-31 14:53+0800\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=utf-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"
18-
"Generated-By: Babel 2.9.0\n"
18+
"Generated-By: Babel 2.9.1\n"
1919

20-
#: ../../changelog.rst:2 5d138e1e428f40c5bfffede35509f84f
20+
#: ../../changelog.rst:2 c3aafa1b86fb4406b8ad619f3bedb8d3
2121
msgid "Changelog"
2222
msgstr "版本历史"
2323

24-
#: ../../../changes.rst:6 ed162cca74704e9ca7e17ed2957f3d00
24+
#: ../../../changes.rst:6 0d36e7c261c74f93925a9d1cac8e349c
25+
msgid "Version 0.4.2"
26+
msgstr ""
27+
28+
#: ../../../changes.rst:8 45ad5c975eee4893a337aa1148e9f843
29+
msgid "Allow using ``type`` as message field name, fixes issue #39."
30+
msgstr ""
31+
32+
#: ../../../changes.rst:13 0d36e7c261c74f93925a9d1cac8e349c
2533
msgid "Version 0.4.0"
2634
msgstr ""
2735

28-
#: ../../../changes.rst:8 b8d2f6ccf525422aa1b31e1eb8be3ef3
36+
#: ../../../changes.rst:15 1f9f362e8f19439e80853d2c8e0be167
2937
msgid ""
3038
"Add support for ``message`` and ``enum`` extensiblity for protocol "
3139
"backward compatibility."
3240
msgstr ""
3341

34-
#: ../../../changes.rst:9 1d3c22b4b6014e75b9e45f416a0cf622
42+
#: ../../../changes.rst:16 fd9a84c95ed546a59f5268431d877be9
3543
msgid "Cut down the code size of generated language-specific files."
3644
msgstr ""
3745

38-
#: ../../../changes.rst:10 b79e2f9d10194a9ab2fb6a2685e64bd5
46+
#: ../../../changes.rst:17 ccade2fb15534d4bb0569dc800abb83f
3947
msgid "Refactor the bitproto compiler."
4048
msgstr ""
4149

42-
#: ../../../changes.rst:11 5dfb026b331f477ab8f37e04c7ec931c
50+
#: ../../../changes.rst:18 2f3010514fd244ef99981b9cbc69e934
4351
msgid ""
4452
"Refactor the bitproto serialization mechanism, using language-specific "
4553
"libraries instead of pure compiler-generated files."

docs/locales/zh/LC_MESSAGES/compiler.po

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,88 +8,98 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: bitproto 0.4.0\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-02-02 22:59+0800\n"
11+
"POT-Creation-Date: 2021-07-31 14:53+0800\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=utf-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"
18-
"Generated-By: Babel 2.9.0\n"
18+
"Generated-By: Babel 2.9.1\n"
1919

20-
#: ../../compiler.rst:4 37f87d891a9c41acb10217f25b989466
20+
#: ../../compiler.rst:4 18430fedb15b4d3293f76aaa45209f7c
2121
msgid "Compiler"
2222
msgstr "编译器"
2323

24-
#: ../../compiler.rst:6 fd2928cde6e340dba5097ddc13e9eb8f
24+
#: ../../compiler.rst:6 9e286ee7758449789059175f86faa807
2525
msgid ""
2626
"The bitproto compiler generates language-specific code, which provides "
2727
"the encode and decode api functions."
2828
msgstr "bitproto 的编译器用来解析 bitproto 的源文件,然后生成目标语言的代码。"
2929

30-
#: ../../compiler.rst:12 28cf28a6e2364974a57675ecfe87902d
30+
#: ../../compiler.rst:12 b938ad80b944441c8c87b486f9e0f4ea
3131
msgid "Installing the compiler"
3232
msgstr "安装编译器"
3333

34-
#: ../../compiler.rst:14 d32480f115944933ad54c6199135094a
34+
#: ../../compiler.rst:14 a3bc78797a7a4ff482d2e84b40903627
3535
msgid ""
3636
"The bitproto compiler is written in Python, and requires `Python3.7+ "
3737
"<https://www.python.org/downloads/>`_ to work, it's best to be installed "
3838
"via `pip <http://pip-installer.org/>`_:"
39-
msgstr "bitproto 的编译器使用 Python 编写,依赖 "
40-
"`Python3.7+ <https://www.python.org/downloads/>`_ ,"
41-
"最佳的安装方式是通过 `pip <http://pip-installer.org/>`_ :"
39+
msgstr ""
40+
"bitproto 的编译器使用 Python 编写,依赖 `Python3.7+ "
41+
"<https://www.python.org/downloads/>`_ ,最佳的安装方式是通过 `pip <http://pip-"
42+
"installer.org/>`_ :"
4243

43-
#: ../../compiler.rst:21 148d28a2688140bbba6898e354491ac6
44+
#: ../../compiler.rst:21 5bedfeb9579741369085ec9e5205f84b
4445
msgid ""
4546
"This will install a command named ``bitproto`` to your system, you can "
4647
"check it's version after the installation:"
4748
msgstr "上面的命令会安装一个叫做 ``bitproto`` 的命令行工具,你可以在安装后查看下它的版本信息:"
4849

49-
#: ../../compiler.rst:28 b131be7327c04d6e8f52b74302641b0b
50+
#: ../../compiler.rst:28 7a5f262f8bcb411da41e661aaea34714
5051
msgid ""
5152
"If you're new to Python, or wish to skip a Python installation, you can "
5253
"download the compiler from `this download link "
5354
"<https://github.com/hit9/bitproto/releases>`_ directly, there provides "
5455
"the prebuilt one-file executables for Mac OS, Windows and Linux, which "
5556
"works without having to install a Python3.7+."
56-
msgstr "如果你对 Python 不熟悉,或者希望跳过 Python 安装,可以直接进 "
57-
"`这个下载链接 <https://github.com/hit9/bitproto/releases>`_ "
58-
"提供了预先打包好的单文件可执行程序,包含 Mac OS, Windows 和 Linux 的三个版本,"
59-
"这些打包好的程序无需安装 Python3.7+ 就可以使用。"
57+
msgstr ""
58+
"如果你对 Python 不熟悉,或者希望跳过 Python 安装,可以直接进 `这个下载链接 "
59+
"<https://github.com/hit9/bitproto/releases>`_ 提供了预先打包好的单文件可执行程序,包含 Mac "
60+
"OS, Windows 和 Linux 的三个版本,这些打包好的程序无需安装 Python3.7+ 就可以使用。"
61+
62+
#: ../../compiler.rst:34 1d3a8dd1b86245558740171ef5223154
63+
#, fuzzy
64+
msgid "Upgrade the compiler"
65+
msgstr "升级编译器"
66+
67+
#: ../../compiler.rst:36 1faec5148a96460abe43432787bee0bd
68+
msgid "To upgrade bitproto via ``pip``:"
69+
msgstr "要通过 ``pip`` 升级 bitproto 的编译器"
6070

61-
#: ../../compiler.rst:34 a9b3325d451f41589f4bac48039474a7
71+
#: ../../compiler.rst:43 a7454cdbca2746a2b91ec35990ed5d90
6272
msgid "Command line usage"
6373
msgstr "命令行使用"
6474

65-
#: ../../compiler.rst:36 691bd9150983482b8738e966d98db43e
75+
#: ../../compiler.rst:45 1517ffb46cff4411a5dc33ad9aff1462
6676
msgid "Generates code for given language:"
6777
msgstr "给目标语言生成代码:"
6878

69-
#: ../../compiler.rst:44 29125a4f5f0f4350a3feb11a27885c86
79+
#: ../../compiler.rst:53 9d3996501f7a4d8fa7ec689ca842829a
7080
msgid ""
7181
"It generates language-specific codes to current directory by default, to "
7282
"specify a output directory:"
7383
msgstr "默认地,它会把代码生成到当前目录,如果想指定一个生成目录:"
7484

75-
#: ../../compiler.rst:51 b56183844def4a09b23ddd68d14b4f91
85+
#: ../../compiler.rst:60 13643cb35666433086796cf4b0e145c9
7686
msgid ""
7787
"Validates bitproto source file syntax, exits with a non-zero code if any "
7888
"syntax wrongs:"
7989
msgstr "仅仅检查 bitproto 的语法是否正确,如果语法错误,编译器会以一个非零的码退出:"
8090

81-
#: ../../compiler.rst:57 8a1fe76a34fe42aaa132b9e047ef9ab4
91+
#: ../../compiler.rst:66 4114f3fa739b4df6a18a1e2b04d2000b
8292
msgid ""
8393
"The compiler won't generate files but only run a protocol syntax checking"
8494
" if `-c` option is given."
8595
msgstr "如果 ``-c`` 选项传入,编译器只做语法检查,而不会进行代码生成。"
8696

87-
#: ../../compiler.rst:61 8c4f9d30ddce4391a5447af63d612483
97+
#: ../../compiler.rst:70 18227812bc6941dda8cd7ac54766f9e5
8898
msgid ""
8999
"By default, the compiler runs a simple protocol linter, which gives "
90100
"warnings if the given bitproto file doesn't meet the :ref:`style-guide`, "
91101
"to disable the linter:"
92-
msgstr "默认地,编译器会执行一个简单的协议风格检查器,"
93-
"以检查是否符合 bitproto 推荐的 :ref:`语法风格 <style-guide>`。"
94-
"如果需要禁用它:"
102+
msgstr ""
103+
"默认地,编译器会执行一个简单的协议风格检查器,以检查是否符合 bitproto 推荐的 :ref:`语法风格 <style-"
104+
"guide>`。如果需要禁用它:"
95105

0 commit comments

Comments
 (0)