Skip to content

Commit

Permalink
Merge remote-tracking branch 'chinese/master' into chinese
Browse files Browse the repository at this point in the history
  • Loading branch information
Readon committed Jan 29, 2024
2 parents 499b761 + ad68064 commit 2dbac6b
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 246 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: SpinalHDL \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-01-02 16:09+0000\n"
"POT-Creation-Date: 2024-01-27 15:39+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -41,7 +41,7 @@ msgid "`Scala 2 <https://www.scala-lang.org/>`_, compiler and library"
msgstr ""

#: ../../SpinalHDL/Getting Started/Install and setup.rst:20
msgid "`SBT <https://www.scala-sbt.org/download.html>`_, a Scala build tool"
msgid "`SBT <https://www.scala-sbt.org/download/>`_, a Scala build tool"
msgstr ""

#: ../../SpinalHDL/Getting Started/Install and setup.rst:22
Expand Down
14 changes: 9 additions & 5 deletions source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/AFix.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"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"
"PO-Revision-Date: 2024-01-23 07:01+0000\n"
"PO-Revision-Date: 2024-01-27 15:40+0000\n"
"Last-Translator: Readon <[email protected]>\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
"spinaldoc-rtd/spinalhdldata-typesafix/zh_Hans/>\n"
Expand Down Expand Up @@ -84,8 +84,10 @@ msgid ""
"The ``maxValue`` and ``minValue`` stores what backing integer values are "
"representable. These values represent the true fixed-point value after "
"multiplying by ``2^exp``."
msgstr "``maxValue`` 和 ``minValue`` 保存可表示的整数值。这些值表示乘以 ``2^exp`` "
"后的真实定点值。"
msgstr ""
"在定点数表示法中, ``maxValue`` 和 ``minValue`` "
"变量用于存储可表示的最大和最小整数值。这些数值是在进行 "
"``2^exp``(即2的exp次方)的乘法运算后得到的定点数的实际值。"

#: ../../SpinalHDL/Data types/AFix.rst:61
msgid ""
Expand Down Expand Up @@ -153,7 +155,8 @@ msgstr "``AFix`` 支持无范围扩展的操作。它通过从每个输入中选

#: ../../SpinalHDL/Data types/AFix.rst:106
msgid "``+|`` Add without expansion. ``-|`` Subtract without expansion."
msgstr "``+|`` 用于不带扩展的加法。 ``-|`` 进行不带扩展的减法。"
msgstr "``+|`` 和 ``-|`` "
"分别代表加法和减法操作,这两种操作在执行时不会对数值进行扩展。"

#: ../../SpinalHDL/Data types/AFix.rst:111
msgid "Inequality Operations"
Expand Down Expand Up @@ -251,7 +254,8 @@ msgstr "``RoundType``:"
msgid ""
"The ``saturation`` flag will add logic to saturate to the assigned datatype "
"range."
msgstr "``saturation`` 标志将指定的数据值饱和化,设置为数据类型的边界值。"
msgstr "当设置 ``saturation`` 标志时,系统会在数值超出指定数据类型的界限时,自动将其"
"调整至该类型的有效范围,以防止溢出。"

#: ../../SpinalHDL/Data types/AFix.rst:209
msgid ""
Expand Down
12 changes: 6 additions & 6 deletions source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/Floating.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"<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"
"PO-Revision-Date: 2024-01-13 05:06+0000\n"
"Last-Translator: tsy0123 <675526215@qq.com>\n"
"PO-Revision-Date: 2024-01-27 15:40+0000\n"
"Last-Translator: Readon <xydarcher@qq.com>\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
"spinaldoc-rtd/spinalhdldata-typesfloating/zh_Hans/>\n"
"Language: zh_CN\n"
Expand Down Expand Up @@ -123,9 +123,9 @@ msgid ""
"exponent is encoded as 107 (decimal) plus the index of the highest bit set "
"to 1."
msgstr ""
"非规范化值的编码方式与普通浮点小数相同。不同的是,尾数发生了位移,以便第一个"
"尾数变成隐式的。指数编码为 107(十进制)加上一个索引,这个索引是最高位设置为 "
"1 的值。"
"在浮点数表示中,非规范化数值的编码方式与规范化数值相同。尾数部分会进行位移,"
"使得最左边的1位成为隐含的,而指数部分则由107(十进制)加上最左边1位的位置索引"
"来计算。这样的编码确保了非规范化数值能够正确表示。"

#: ../../source/SpinalHDL/Data types/Floating.rst:52
msgid "Normalized values"
Expand All @@ -141,7 +141,7 @@ msgstr "标准化值的重新编码尾数与原始 IEEE-754 尾数完全相同

#: ../../source/SpinalHDL/Data types/Floating.rst:57
msgid "Infinity"
msgstr "无穷"
msgstr "无穷大"

#: ../../source/SpinalHDL/Data types/Floating.rst:59
msgid ""
Expand Down
Loading

0 comments on commit 2dbac6b

Please sign in to comment.