Skip to content

Commit

Permalink
update zh message
Browse files Browse the repository at this point in the history
  • Loading branch information
hh committed Oct 9, 2021
1 parent 366458f commit 04ff25b
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 26 deletions.
Binary file modified docs/locale/zh_CN/LC_MESSAGES/asm.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/locale/zh_CN/LC_MESSAGES/asm.po
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ msgid ""
msgstr ""
"脚本是一种低级语言,可以看作是 `比特币虚拟机 <https://medium.com/@xiaohuiliu/introduction-to-"
"bitcoin-smart-contracts-9c0ea37dc757>`_ "
"的汇编语言。通常,开发人员不用直接使用它,而是用像sCrypt这样的高级语言。但有些情况下用脚本语言更合适。例如,直接写出更优化的脚本,比用sCrypt生成的更高效。或者脚本是用外部工具(如`MiniForth"
" "
"的汇编语言。通常,开发人员不用直接使用它,而是用像sCrypt这样的高级语言。但有些情况下用脚本语言更合适。例如,直接写出更优化的脚本,比用sCrypt生成的更高效。或者脚本是用外部工具(如"
" `MiniForth "
"<https://powping.com/posts/95e53a7305ad9d333d072575946d0cfd0d6321f40af40f9c66c70955ada94e58>`_)生成的,需要集成到sCrypt中。"

#: ../../asm.rst:9 ccbc29af4fa54a85a87ccf41eadd9e3c
Expand Down
Binary file modified docs/locale/zh_CN/LC_MESSAGES/ctc.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/locale/zh_CN/LC_MESSAGES/ctc.po
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ msgid ""
"``size`` in ``reverseBytes(bytes b, static const int size)`` and ``repeat(T "
"e, static const int size)``"
msgstr ""
"声明为 ``static const`` [#]_ 的函数参数,例如``reverseBytes(bytes b, static const int "
"声明为 ``static const`` [#]_ 的函数参数,例如 ``reverseBytes(bytes b, static const int "
"size)`` 和 ``repeat(T e, static const int size)`` 中的 ``size``"

#: ../../ctc.rst:57 65b892ce81d24dababcc4487a2ab8eb0
Expand Down
Binary file modified docs/locale/zh_CN/LC_MESSAGES/functions.mo
Binary file not shown.
14 changes: 7 additions & 7 deletions docs/locale/zh_CN/LC_MESSAGES/functions.po
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ msgstr ""

#: ../../functions.rst:68 0a2c7977c0764e79aa523909df84c296
msgid "``return``"
msgstr "``return``"
msgstr "``return`` 语句"

#: ../../functions.rst:69 3e1efc037760406b8ed3efc6e7f83c91
msgid ""
Expand Down Expand Up @@ -188,9 +188,9 @@ msgid ""
"sign (``0`` for positive, ``1`` for negative). ``int`` can be converted to "
"``bytes`` with ``pack``."
msgstr ""
"``bytes`` 可以使用函数 ``unpack`` 转换为``int`` 。使用采用小端格式的 `符号-值 表示法 "
"<https://www.tutorialspoint.com/sign-magnitude-notation> "
"`_,其中最高有效位表示符号(``0``表示正,``1``表示负)。 ``int`` 可以使用 ``pack`` 转换为``bytes``。"
"``bytes`` 可以使用函数 ``unpack`` 转换为 ``int`` 。使用采用小端格式的 `符号-值 表示法 "
"<https://www.tutorialspoint.com/sign-magnitude-notation>`_,其中最高有效位表示符号( "
"``0`` 表示正, ``1`` 表示负)。 ``int`` 可以使用 ``pack`` 转换为 ``bytes``。"

#: ../../functions.rst:148 faabf0ccebdf4aa6bf760dcc1e2d7f2f
msgid "``bytes num2bin(int num, int size)``"
Expand All @@ -212,12 +212,12 @@ msgid ""
" ``start`` (inclusive) to ``end`` (exclusive). ``start`` is ``0`` if "
"omitted, ``end`` is length of array if omitted."
msgstr ""
"**切片操作符** - ``b[start:end]`` 返回 ``b`` 的子数组,从索引 ``start``(包含)到 ``end``(不包含)。 "
"``start`` 如果省略则为 ``0`` , ``end`` 如果省略则为数组的长度。"
"**切片操作符** - ``b[start:end]`` 返回 ``b`` 的子数组,从索引 ``start`` (包含)到 ``end`` "
"(不包含)。 ``start`` 如果省略则为 ``0`` , ``end`` 如果省略则为数组的长度。"

#: ../../functions.rst:169 c3c44a55274c4528ab69b283a18baf7b
msgid "**Concatenation**"
msgstr "**串联**"
msgstr "**拼接**"

#: ../../functions.rst:175 e0a07f5a4b564b548969810852fe5b37
msgid "``reverseBytes(bytes b, static const int size)``"
Expand Down
Binary file modified docs/locale/zh_CN/LC_MESSAGES/ide.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/locale/zh_CN/LC_MESSAGES/ide.po
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ msgid ""
msgstr ""
"桌面版本是一个 Visual Studio Code 插件 `Visual Studio Code Extension "
"<https://marketplace.visualstudio.com/items?itemName=bsv-"
"scrypt.sCrypt>`_。通过在扩展市场中搜索``sCrypt`` 可以很容易地找到它。此 IDE 具有高级语言功能,适用于专业开发。你可以以 "
"`样板项目 <https://github.com/scrypt-sv/boilerplate>`_ 为基础开始构建你自己的sCrypt项目。"
"scrypt.sCrypt>`_。通过在扩展市场中搜索 ``sCrypt`` 可以很容易地找到它。此 IDE 具有高级语言功能,适用于专业开发。你可以以"
" `样板项目 <https://github.com/scrypt-sv/boilerplate>`_ 为基础开始构建你自己的sCrypt项目。"

#: ../../ide.rst:14 23ea08233293479886f800d4d6ca1867
msgid "Web IDE"
Expand Down
Binary file modified docs/locale/zh_CN/LC_MESSAGES/loop.mo
Binary file not shown.
24 changes: 12 additions & 12 deletions docs/locale/zh_CN/LC_MESSAGES/loop.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: sCrypt\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-07 22:30+0800\n"
"POT-Creation-Date: 2021-10-08 12:13+0800\n"
"PO-Revision-Date: 2021-10-07 06:10+0000\n"
"Last-Translator: qtom zheng <zhfnjust@qq.com>, 2021\n"
"Language-Team: Chinese (China) (https://www.transifex.com/scrypt-1/teams/121283/zh_CN/)\n"
Expand All @@ -21,31 +21,31 @@ msgstr ""
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"

#: ../../loop.rst:3 986685fcfc1749ff84f3d2ebb75b6bb4
#: ../../loop.rst:3 c60c6c86379e486e85010a898cdd8f4c
msgid "Loop"
msgstr "循环"

#: ../../loop.rst:10 1ee647ebadaf4287b823960da120c9d7
#: ../../loop.rst:10 be86973054c4442d89ed4342b448d00d
msgid ""
"Bitcoin script does not provide looping constructs natively for security "
"reasons. sCrypt achieves looping by repeating the loop body ``maxLoopCount``"
" times. For example, the loop"
msgstr "出于安全原因,比特币脚本本身不提供循环结构。 sCrypt 通过重复循环体 ``maxLoopCount`` 次来实现循环。例如,循环"

#: ../../loop.rst:20 11a6cdfa329d4ba695223e26fbea24c0
#: ../../loop.rst:20 3f1f3ebf4e3e46a09ee6a9e8e27bfe0f
msgid "is equivalently unrolled to"
msgstr "等效地展开为"

#: ../../loop.rst:36 443ea9186a8743058abf984b4f5dad8f
#: ../../loop.rst:36 eee6576194694bcda3444f16bbe5b706
msgid ""
"Because `loop unrolling <https://en.wikipedia.org/wiki/Loop_unrolling>`_ is "
"done at compile time, the compiler must know ``maxLoopCount``. That is, it "
"must be a :ref:`compile time constant<ctc-label>`."
msgstr ""
"因为`循环展开 <https://en.wikipedia.org/wiki/Loop_unrolling>`_ "
"是在编译时完成的,编译器必须知道``maxLoopCount``。也就是说,它必须是一个 :ref:`编译时常量 <ctc-label>`。"
"因为 `循环展开 <https://en.wikipedia.org/wiki/Loop_unrolling>`_ 是在编译时完成的,编译器必须知道 "
"``maxLoopCount``。也就是说,它必须是一个 :ref:`编译时常量 <ctc-label>`。"

#: ../../loop.rst:39 3793e55162674f2082792ea8aa64a1ef
#: ../../loop.rst:39 14e5014941fc41e58f2f2ae53b1e64b4
msgid ""
"If ``maxLoopCount`` is set too small, the contract may not work correctly. "
"If ``maxLoopCount`` is set too large, the resulting script is bloated "
Expand All @@ -60,21 +60,21 @@ msgstr ""
"``maxLoopCount``。一种方法是模拟链下合约并找到循环次数。另一种方法是利用循环本身的特性。例如,如果循环遍历``sha256`` "
"散列的每一位,``maxLoopCount`` 就是 ``256``。"

#: ../../loop.rst:46 5c82b1ca19744676a87305cba0b9874c
#: ../../loop.rst:46 951a7dec60db452da13e83b1932f7fbc
msgid "Induction variable"
msgstr "归纳变量 (Induction Variable)"

#: ../../loop.rst:47 057fdc9e1942419cb56dc64a601daddc
#: ../../loop.rst:47 3ed59c66d5224b31a8b11c228567d312
msgid ""
"`Induction variable <https://en.wikipedia.org/wiki/Induction_variable>`_ can"
" be defined when loop index is needed."
msgstr ""
"`归纳变量 <https://en.wikipedia.org/wiki/Induction_variable>`_ 可以在需要循环索引时定义。"

#: ../../loop.rst:62 87e0cdd9a0cd4bcfb7a441288e621f04
#: ../../loop.rst:62 79240b139d37449896d81ac40a52a309
msgid "Conditional loop"
msgstr "条件循环"

#: ../../loop.rst:73 b8554f420278429cb186f6e75cf540b7
#: ../../loop.rst:73 06d7a9d40d40408794564856b56665e4
msgid "break"
msgstr "跳出循环"
Binary file modified docs/locale/zh_CN/LC_MESSAGES/syntax.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/locale/zh_CN/LC_MESSAGES/syntax.po
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ msgid ""
"signature. Note there is no ``;`` at the end."
msgstr ""
"一行中三个或更多 ``*`` 表示插入一个 `OP_CODESEPARATOR "
"<https://en.bitcoin.it/wiki/OP_CHECKSIG#How_it_works> "
"`_。它用于将其之前的内容(包括其自身)排除在签名的一部分之外。注意末尾没有 ``;``。"
"<https://en.bitcoin.it/wiki/OP_CHECKSIG#How_it_works>`_。它用于将其之前的内容(包括其自身)排除在签名的一部分之外。注意末尾没有"
" ``;``。"

#: ../../syntax.rst:325 c4448f96c24342faa5d354f591d70eda
msgid "Access Modifiers"
Expand Down

0 comments on commit 04ff25b

Please sign in to comment.