Skip to content

Commit

Permalink
Merge pull request #244 from SpinalHDL-CN/master
Browse files Browse the repository at this point in the history
update chinese version.
  • Loading branch information
Readon authored Feb 19, 2024
2 parents 3f885df + 2f1a3a3 commit d59d0fc
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 81 deletions.
34 changes: 16 additions & 18 deletions source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/Vec.po
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

msgid ""
msgstr ""
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-"
"Date:2023-12-01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-"
"Translator:FULL NAME <EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN "
"<[email protected]>Plural-Forms:nplurals=1; plural=0;MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESSPOT-Creation-Date:2023-12-02 00:23"
"+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME "
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <[email protected]>MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-Date:2023-12-"
"01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME "
"<EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN <[email protected]>Plural-"
"Forms:nplurals=1; plural=0;MIME-Version:1.0Content-Type:text/plain; "
"charset=UTF-8\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESSPOT-Creation-Date:2023-12-02 00:23+0800PO-"
"Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME <EMAIL@ADDRESS"
">Language-Team:LANGUAGE <[email protected]>MIME-Version:1.0Content-Type:text/plain; "
"charset=UTF-8\n"
"POT-Creation-Date: 2024-02-13 17:23+0000\n"
"PO-Revision-Date: 2023-12-14 06:03+0000\n"
"PO-Revision-Date: 2024-02-18 15:28+0000\n"
"Last-Translator: Readon <[email protected]>\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
"spinaldoc-rtd/spinalhdldata-typesvec/zh_Hans/>\n"
"Language: zh_CN\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
"/spinaldoc-rtd/spinalhdldata-typesvec/zh_Hans/>\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.4\n"
"Generated-By: Babel 2.14.0\n"

#: ../../SpinalHDL/Data types/Vec.rst:7
Expand Down Expand Up @@ -202,15 +202,14 @@ msgid "x.sFindFirst(condition: T => Bool)"
msgstr "x.sFindFirst(condition: T => Bool)"

#: ../../SpinalHDL/Data types/Vec.rst:162
#, fuzzy
msgid ""
"Find the first element matching the given condition in the Vec, return if"
" any index was successfully found and the index of that element."
msgstr "查找 Vec 中与给定条件匹配的第一个元素,返回该元素的索引。"
msgstr "查找 Vec 中符合给定条件的第一个元素,如果成功找到,则返回该元素的索引。"

#: ../../SpinalHDL/Data types/Vec.rst:163
msgid "(Bool, UInt)"
msgstr ""
msgstr "(Bool, UInt)"

#: ../../SpinalHDL/Data types/Vec.rst:164
msgid "x.reduceBalancedTree(op: (T, T) => T)"
Expand Down Expand Up @@ -246,4 +245,3 @@ msgstr "sXXX 前缀用于消除使用 lambda 函数作为参数的同名 Scala

#~ msgid "Vec(type: Data, size: Int)"
#~ msgstr "Vec(类型:数据,大小:Int)"

36 changes: 17 additions & 19 deletions source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/regIf.po
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

msgid ""
msgstr ""
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-"
"Date:2023-12-01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-"
"Translator:FULL NAME <EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN "
"<[email protected]>Plural-Forms:nplurals=1; plural=0;MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESSPOT-Creation-Date:2023-12-02 00:23"
"+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME "
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <[email protected]>MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-Date:2023-12-"
"01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME "
"<EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN <[email protected]>Plural-"
"Forms:nplurals=1; plural=0;MIME-Version:1.0Content-Type:text/plain; "
"charset=UTF-8\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESSPOT-Creation-Date:2023-12-02 00:23+0800PO-"
"Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME <EMAIL@ADDRESS"
">Language-Team:LANGUAGE <[email protected]>MIME-Version:1.0Content-Type:text/plain; "
"charset=UTF-8\n"
"POT-Creation-Date: 2024-02-04 07:37+0000\n"
"PO-Revision-Date: 2024-01-25 03:01+0000\n"
"Last-Translator: tsy0123 <[email protected]>\n"
"PO-Revision-Date: 2024-02-18 15:28+0000\n"
"Last-Translator: Readon <[email protected]>\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
"spinaldoc-rtd/spinalhdllibrariesregif/zh_Hans/>\n"
"Language: zh_CN\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
"/spinaldoc-rtd/spinalhdllibrariesregif/zh_Hans/>\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.4\n"
"Generated-By: Babel 2.14.0\n"

#: ../../SpinalHDL/Libraries/regIf.rst:3
Expand Down Expand Up @@ -547,15 +547,14 @@ msgid "example2: interrupt raw reg with foce interface for software"
msgstr "示例2:使用软件的带强制(force)接口的中断原始(raw)状态寄存器"

#: ../../SpinalHDL/Libraries/regIf.rst:272
#, fuzzy
msgid "**CASE6:** ``SpinalEnum``"
msgstr "**案例5:** ``parasiteField``"
msgstr "**案例6:** ``SpinalEnum``"

#: ../../SpinalHDL/Libraries/regIf.rst:274
msgid ""
"When the field type is SpinalEnum, the resetValue specifies the index of "
"the enum elements."
msgstr ""
msgstr "当字段类型为 SpinalEnum 时,resetValue 指定枚举元素的索引。"

#: ../../SpinalHDL/Libraries/regIf.rst:286
msgid "Byte Mask"
Expand Down Expand Up @@ -743,4 +742,3 @@ msgstr "BusIfVistor给予访问BusIf.RegInsts的权限来执行您想要的操

#~ msgid "Interrupt Design Spec"
#~ msgstr "中断设计规范"

48 changes: 25 additions & 23 deletions source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Simulation/bootstraps.po
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

msgid ""
msgstr ""
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-"
"Date:2023-12-01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-"
"Translator:FULL NAME <EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN "
"<[email protected]>Plural-Forms:nplurals=1; plural=0;MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESSPOT-Creation-Date:2023-12-02 00:23"
"+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME "
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <[email protected]>MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"POT-Creation-Date: 2024-02-01 10:15+0000\n"
"PO-Revision-Date: 2023-12-30 08:06+0000\n"
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-Date:2023-12-"
"01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME "
"<EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN <[email protected]>Plural-"
"Forms:nplurals=1; plural=0;MIME-Version:1.0Content-Type:text/plain; "
"charset=UTF-8\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESSPOT-Creation-Date:2023-12-02 00:23+0800PO-"
"Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME <EMAIL@ADDRESS"
">Language-Team:LANGUAGE <[email protected]>MIME-Version:1.0Content-Type:text/plain; "
"charset=UTF-8\n"
"POT-Creation-Date: 2024-01-31 16:22+0000\n"
"PO-Revision-Date: 2024-02-01 09:13+0000\n"
"Last-Translator: Readon <[email protected]>\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
"spinaldoc-rtd/spinalhdlsimulationbootstraps/zh_Hans/>\n"
"Language: zh_CN\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
"/spinaldoc-rtd/spinalhdlsimulationbootstraps/zh_Hans/>\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.4-dev\n"
"Generated-By: Babel 2.14.0\n"

#: ../../SpinalHDL/Simulation/bootstraps.rst:3
Expand Down Expand Up @@ -204,38 +204,41 @@ msgstr "注意它是否等同于:"
msgid ""
"The location where the simulation files will be placed is defined by "
"default in $WORKSPACE/$COMPILED."
msgstr ""
msgstr "默认情况下,仿真文件应存放在 $WORKSPACE/$COMPILED 指定的目录中。"

#: ../../SpinalHDL/Simulation/bootstraps.rst:161
#, fuzzy
msgid ""
"$WORKSPACE being by default ``simWorkspace``, you can override it with "
"the ``SPINALSIM_WORKSPACE`` environnement variable."
msgstr ""
"请注意,默认情况下,仿真文件将放置在 ``simWorkspace/xxx`` 文件夹中。您可以通过设置 "
"``SPINALSIM_WORKSPACE`` 环境变量来覆盖 simWorkspace 位置。"
"$WORKSPACE 的默认值是 ``simWorkspace``,但你可以利用 ``SPINALSIM_WORKSPACE`` "
"环境变量来指定一个不同的工作空间路径。"

#: ../../SpinalHDL/Simulation/bootstraps.rst:162
msgid "$COMPILED being the name of the toplevel being simulated."
msgstr ""
msgstr "$COMPILED 变量代表的是当前进行仿真的顶层模块的名称。"

#: ../../SpinalHDL/Simulation/bootstraps.rst:163
msgid ""
"The location of the wave file depend the backend used. For verilator it "
"will be in the folder (``$WORKSPACE/$COMPILED/$TEST`` by default)."
msgstr ""
"波形文件的存放路径会根据所选用的后端工具有所变化。在 Verilator 的情况下,"
"它通常会被保存在默认的路径 ``$WORKSPACE/$COMPILED/$TEST`` 下。"

#: ../../SpinalHDL/Simulation/bootstraps.rst:164
msgid ""
"For the verilator backend, you can override the location of the test "
"folder via the ``SimConfig.setTestPath(path)`` function."
msgstr ""
msgstr "对于 Verilator 后端,可以使用 ``SimConfig.setTestPath(path)`` "
"函数设置测试文件夹位置。"

#: ../../SpinalHDL/Simulation/bootstraps.rst:165
msgid ""
"You can retrieve the location of the test path durring simulation by "
"calling the currentTestPath() function."
msgstr ""
msgstr "在进行仿真时,要确定测试文件夹的当前路径,可以调用 currentTestPath() "
"方法来获取。"

#: ../../SpinalHDL/Simulation/bootstraps.rst:169
msgid "Running multiple tests on the same hardware"
Expand Down Expand Up @@ -331,4 +334,3 @@ msgstr "simWorkspace/Toplevel/tracer.fst : Waveform of the failure"
#: ../../SpinalHDL/Simulation/bootstraps.rst:225
msgid "The scala terminal will show the explorer simulation stdout."
msgstr "scala 终端将显示仿真结果到标准输出。"

38 changes: 17 additions & 21 deletions source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Simulation/index.po
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

msgid ""
msgstr ""
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-"
"Date:2023-12-01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-"
"Translator:FULL NAME <EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN "
"<[email protected]>Plural-Forms:nplurals=1; plural=0;MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESSPOT-Creation-Date:2023-12-02 00:23"
"+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME "
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <[email protected]>MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"POT-Creation-Date: 2024-02-01 10:15+0000\n"
"PO-Revision-Date: 2023-12-30 08:06+0000\n"
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-Date:2023-12-"
"01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME "
"<EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN <[email protected]>Plural-"
"Forms:nplurals=1; plural=0;MIME-Version:1.0Content-Type:text/plain; "
"charset=UTF-8\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESSPOT-Creation-Date:2023-12-02 00:23+0800PO-"
"Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME <EMAIL@ADDRESS"
">Language-Team:LANGUAGE <[email protected]>MIME-Version:1.0Content-Type:text/plain; "
"charset=UTF-8\n"
"POT-Creation-Date: 2024-01-31 16:22+0000\n"
"PO-Revision-Date: 2024-02-01 09:13+0000\n"
"Last-Translator: Readon <[email protected]>\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
"spinaldoc-rtd/spinalhdlsimulationindex/zh_Hans/>\n"
"Language: zh_CN\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
"/spinaldoc-rtd/spinalhdlsimulationindex/zh_Hans/>\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.4-dev\n"
"Generated-By: Babel 2.14.0\n"

#: ../../SpinalHDL/Simulation/index.rst:3
Expand Down Expand Up @@ -54,14 +54,11 @@ msgstr "`Verilator <https://www.veripool.org/verilator/>`_"

#: ../../SpinalHDL/Simulation/index.rst:14
msgid "`GHDL <http://ghdl.free.fr/>`_"
msgstr ""
msgstr "`GHDL <http://ghdl.free.fr/>`_"

#: ../../SpinalHDL/Simulation/index.rst:15
#, fuzzy
msgid "`Icarus Verilog <https://steveicarus.github.io/iverilog/>`_"
msgstr ""
"`Icarus Verilog <https://steveicarus.github.io/iverilog/>`_ **(实验性,自 "
"SpinalHDL 1.4.1 起)**"
msgstr "`Icarus Verilog <https://steveicarus.github.io/iverilog/>`_"

#: ../../SpinalHDL/Simulation/index.rst:16
msgid ""
Expand Down Expand Up @@ -265,4 +262,3 @@ msgstr "使用外部 HDL 仿真器,可以直接测试生成的 HDL 源文件
#~ "`GHDL <http://ghdl.free.fr/>`_ **(experimental, "
#~ "since SpinalHDL 1.4.1)**"
#~ msgstr "`GHDL <http://ghdl.free.fr/>`_ **(实验性,自 SpinalHDL 1.4.1 起)**"

0 comments on commit d59d0fc

Please sign in to comment.