Skip to content

Commit 321f2a1

Browse files
authored
Merge pull request #287 from CatalpaEel/fix_zh_cn
Fix zh_CN translation
2 parents e15946d + 4806ea5 commit 321f2a1

68 files changed

Lines changed: 355 additions & 623 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

source/SpinalHDL/Data types/Int.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ About Rounding: https://en.wikipedia.org/wiki/Rounding
587587
The **RoundToEven** and **RoundToOdd** modes are very special, and are used in some big data statistical fields
588588
with high accuracy concerns, SpinalHDL doesn't support them yet.
589589

590-
You will find ``ROUNDUP``, ``ROUNDDOWN``, ``ROUNDTOZERO``, ``ROUNDTOINF``, ``ROUNDTOEVEN``, ``ROUNTOODD`` are very close in behavior,
590+
You will find ``ROUNDUP``, ``ROUNDDOWN``, ``ROUNDTOZERO``, ``ROUNDTOINF``, ``ROUNDTOEVEN``, ``ROUNDTOODD`` are very close in behavior,
591591
``ROUNDTOINF`` is the most common. The behavior of rounding in different programming languages may be different.
592592

593593
============= =================== ================================================= ====================

source/SpinalHDL/Libraries/regIf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Automatic address allocation
3636
3737
.. image:: /asset/image/regif/reg-auto-allocate.gif
3838

39-
Automatic filed allocation
39+
Automatic field allocation
4040

4141
.. code:: scala
4242

source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/AFix.po

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ msgstr ""
1111
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <LL@li.org>MIME-Version:1.0Content-"
1212
"Type:text/plain; charset=UTF-8\n"
1313
"POT-Creation-Date: 2026-02-11 09:50+0000\n"
14-
"PO-Revision-Date: 2024-01-27 15:40+0000\n"
15-
"Last-Translator: Readon <xydarcher@qq.com>\n"
14+
"PO-Revision-Date: 2026-02-11 20:37+0800\n"
15+
"Last-Translator: CatalpaEel\n"
1616
"Language: zh_CN\n"
1717
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
1818
"/spinaldoc-rtd/spinalhdldata-typesafix/zh_Hans/>\n"
@@ -68,16 +68,14 @@ msgid "``AFix.U(12 bits)`` will have a range of 0 to 4095."
6868
msgstr "``AFix.U(12 bits)`` 可表示的范围是 0 to 4095。"
6969

7070
#: ../../SpinalHDL/Data types/AFix.rst:46
71-
#, fuzzy
7271
msgid ""
7372
"``AFix.SQ(8 bits, 4 bits)`` will have a range of -256 (internally "
7473
"-4096*2^-4) to 255.9375 (internally 4095*2^-4)"
75-
msgstr "``AFix.SQ(8 bits, 4 bits)`` 的范围为 -4096 (-256)4095 (255.9375)"
74+
msgstr "``AFix.SQ(8 bits, 4 bits)`` 的范围为 -256 (内部值为-4096*2^-4) 到 255.9375(内部值为4095*2^-4)"
7675

7776
#: ../../SpinalHDL/Data types/AFix.rst:48
78-
#, fuzzy
7977
msgid "``AFix.U(8 exp, 4 exp)`` will have a range of 0 to 240 (internally 15*2^4)"
80-
msgstr "``AFix.U(8 exp, 4 exp)`` 的范围为 0 到 256"
78+
msgstr "``AFix.U(8 exp, 4 exp)`` 的范围为 0 到 240 (内部值为 15*2^4)"
8179

8280
#: ../../SpinalHDL/Data types/AFix.rst:51
8381
msgid ""

source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/Fix.po

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ msgstr ""
1111
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <LL@li.org>MIME-Version:1.0Content-"
1212
"Type:text/plain; charset=UTF-8\n"
1313
"POT-Creation-Date: 2026-02-11 09:50+0000\n"
14-
"PO-Revision-Date: 2023-12-14 06:03+0000\n"
15-
"Last-Translator: Readon <xydarcher@qq.com>\n"
14+
"PO-Revision-Date: 2026-02-11 20:49+0800\n"
15+
"Last-Translator: CatalpaEel\n"
1616
"Language: zh_CN\n"
1717
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
1818
"/spinaldoc-rtd/spinalhdldata-typesfix/zh_Hans/>\n"
@@ -508,27 +508,24 @@ msgid "Name"
508508
msgstr "名称"
509509

510510
#: ../../SpinalHDL/Data types/Fix.rst:274
511-
#, fuzzy
512511
msgid "x.minExp"
513-
msgstr "x.minValue"
512+
msgstr "x.minExp"
514513

515514
#: ../../SpinalHDL/Data types/Fix.rst:275
516515
msgid "Return a negative number of bits used for the fractional part"
517516
msgstr ""
518517

519518
#: ../../SpinalHDL/Data types/Fix.rst:276
520-
#, fuzzy
521519
msgid "Int"
522-
msgstr "UInt"
520+
msgstr "Int"
523521

524522
#: ../../SpinalHDL/Data types/Fix.rst:277
525523
msgid "x.maxValue"
526524
msgstr "x.maxValue"
527525

528526
#: ../../SpinalHDL/Data types/Fix.rst:278
529-
#, fuzzy
530527
msgid "Return the largest positive real number storable"
531-
msgstr "返回可存储的最小值"
528+
msgstr "返回可存储的最大正实数"
532529

533530
#: ../../SpinalHDL/Data types/Fix.rst:279 types/Fix.rst:282 types/Fix.rst:285
534531
msgid "BigDecimal"
@@ -539,14 +536,12 @@ msgid "x.minValue"
539536
msgstr "x.minValue"
540537

541538
#: ../../SpinalHDL/Data types/Fix.rst:281
542-
#, fuzzy
543539
msgid "Return the largest negative real number storable"
544-
msgstr "返回可存储的最小值"
540+
msgstr "返回可存储的最大负实数"
545541

546542
#: ../../SpinalHDL/Data types/Fix.rst:284
547-
#, fuzzy
548543
msgid "Return the smallest positive real number storable"
549-
msgstr "返回可存储的最小值"
544+
msgstr "返回可存储的最小正实数"
550545

551546
#~ msgid "Return the maximum value storable"
552547
#~ msgstr "返回可存储的最大值"

source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/Int.po

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ msgstr ""
1111
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <LL@li.org>MIME-Version:1.0Content-"
1212
"Type:text/plain; charset=UTF-8\n"
1313
"POT-Creation-Date: 2025-05-01 09:36+0000\n"
14-
"PO-Revision-Date: 2024-01-13 05:06+0000\n"
15-
"Last-Translator: tsy0123 <675526215@qq.com>\n"
14+
"PO-Revision-Date: 2026-02-11 21:00+0800\n"
15+
"Last-Translator: CatalpaEel\n"
1616
"Language: zh_CN\n"
1717
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
1818
"/spinaldoc-rtd/spinalhdldata-typesint/zh_Hans/>\n"
@@ -330,13 +330,12 @@ msgid "Set all bits to the given Bool value"
330330
msgstr "将所有位设置为给定的布尔值(Spinal Bool)"
331331

332332
#: ../../SpinalHDL/Data types/Int.rst:142
333-
#, fuzzy
334333
msgid ""
335334
"Notice the difference in behavior between ``x >> 2`` (result 2 bit "
336335
"narrower than x) and ``x >> U(2)`` (keeping width) due to the Scala type "
337336
"of :code:`y`."
338337
msgstr ""
339-
"请注意由于 :code:`y` 的 Scala 类型原因, ``x >> 2`` (结果比 x 窄 2 位)和 ``x >> "
338+
"请注意由于 :code:`y` 的 Scala 类型不同, ``x >> 2`` (结果比 x 窄 2 位)和 ``x >> "
340339
"U(2)``(保持宽度)之间的行为有差异。"
341340

342341
#: ../../SpinalHDL/Data types/Int.rst:145
@@ -696,9 +695,8 @@ msgid "Static bit access of y-th bit"
696695
msgstr "静态访问第 y 位"
697696

698697
#: ../../SpinalHDL/Data types/Int.rst:383
699-
#, fuzzy
700698
msgid "x(y: UInt)"
701-
msgstr "x(y: Int)"
699+
msgstr "x(y: UInt)"
702700

703701
#: ../../SpinalHDL/Data types/Int.rst:384
704702
msgid "Variable bit access of y-th bit"
@@ -1014,16 +1012,14 @@ msgid "About Rounding: https://en.wikipedia.org/wiki/Rounding"
10141012
msgstr "关于舍入运算: https://en.wikipedia.org/wiki/Rounding"
10151013

10161014
#: ../../SpinalHDL/Data types/Int.rst
1017-
#, fuzzy
10181015
msgid "Spinal HDL"
1019-
msgstr "SpinalHDL"
1016+
msgstr "Spinal HDL"
10201017

10211018
#: ../../SpinalHDL/Data types/Int.rst
10221019
msgid "name"
10231020
msgstr ""
10241021

10251022
#: ../../SpinalHDL/Data types/Int.rst
1026-
#, fuzzy
10271023
msgid "Wikipedia"
10281024
msgstr "维基百科中的名称"
10291025

@@ -1032,24 +1028,20 @@ msgid "API"
10321028
msgstr "API"
10331029

10341030
#: ../../SpinalHDL/Data types/Int.rst
1035-
#, fuzzy
10361031
msgid "Mathematic"
1037-
msgstr "算术运算"
1032+
msgstr "数学运算"
10381033

10391034
#: ../../SpinalHDL/Data types/Int.rst
1040-
#, fuzzy
10411035
msgid "Algorithm"
1042-
msgstr "算术运算"
1036+
msgstr "算法"
10431037

10441038
#: ../../SpinalHDL/Data types/Int.rst
1045-
#, fuzzy
10461039
msgid "return"
10471040
msgstr "返回类型"
10481041

10491042
#: ../../SpinalHDL/Data types/Int.rst
1050-
#, fuzzy
10511043
msgid "(align=false)"
1052-
msgstr "返回类型(align=false)"
1044+
msgstr "(align=false)"
10531045

10541046
#: ../../SpinalHDL/Data types/Int.rst
10551047
msgid "Sup-"
@@ -1252,20 +1244,18 @@ msgid ""
12521244
"different programming languages may be different."
12531245
msgstr ""
12541246
"你会发现 "
1255-
"`ROUNDUP`、`ROUNDDOWN`、`ROUNDTOZERO`、`ROUNDTOINF`、`ROUNDTOEVEN`、`ROUNTOODD`"
1247+
"`ROUNDUP`、`ROUNDDOWN`、`ROUNDTOZERO`、`ROUNDTOINF`、`ROUNDTOEVEN`、`ROUNDTOODD`"
12561248
" 在行为上非常接近,`ROUNDTOINF` 是最常见的。不同编程语言中的舍入行为可能不同。"
12571249

12581250
#: ../../SpinalHDL/Data types/Int.rst:594
1259-
#, fuzzy
12601251
msgid "language"
1261-
msgstr "范围"
1252+
msgstr "语言"
12621253

12631254
#: ../../SpinalHDL/Data types/Int.rst:594
12641255
msgid "default-RoundType"
12651256
msgstr "默认舍入类型"
12661257

12671258
#: ../../SpinalHDL/Data types/Int.rst:594
1268-
#, fuzzy
12691259
msgid "example"
12701260
msgstr "示例"
12711261

@@ -1295,7 +1285,7 @@ msgstr "python2"
12951285

12961286
#: ../../SpinalHDL/Data types/Int.rst:600
12971287
msgid "python3"
1298-
msgstr "蟒蛇3"
1288+
msgstr "python3"
12991289

13001290
#: ../../SpinalHDL/Data types/Int.rst
13011291
msgid "``round(1.5) == round(2.5) == 2``"

source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/Vec.po

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ msgid "This constructor supports mixed element width."
7070
msgstr "此构造函数支持混合宽度的元素。"
7171

7272
#: ../../SpinalHDL/Data types/Vec.rst:31
73-
#, fuzzy
7473
msgid "Vec.fill(n1, n2, ...)(type: Data)"
75-
msgstr "Vec.fill(size: Int)(type: Data)"
74+
msgstr "Vec.fill(n1, n2, ...)(type: Data)"
7675

7776
#: ../../SpinalHDL/Data types/Vec.rst:32
7877
msgid "Create a multi-dimensional vector. Supports up to 5 dimensions"
@@ -175,7 +174,6 @@ msgid "x.sCount(condition: T => Bool)"
175174
msgstr "x.sCount(condition: T => Bool)"
176175

177176
#: ../../SpinalHDL/Data types/Vec.rst:166
178-
#, fuzzy
179177
msgid "Count the number of occurrence matching a given condition in the Vec."
180178
msgstr "计算 Vec 中与给定条件匹配的次数。"
181179

@@ -188,7 +186,6 @@ msgid "x.sCount(value: T)"
188186
msgstr "x.sCount(value: T)"
189187

190188
#: ../../SpinalHDL/Data types/Vec.rst:169
191-
#, fuzzy
192189
msgid "Count the number of occurrence of a value in the Vec."
193190
msgstr "计算 Vec 中某个值出现的次数。"
194191

source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/bool.po

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ msgstr ""
1111
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <LL@li.org>MIME-Version:1.0Content-"
1212
"Type:text/plain; charset=UTF-8\n"
1313
"POT-Creation-Date: 2025-02-12 09:08+0000\n"
14-
"PO-Revision-Date: 2024-01-13 05:06+0000\n"
15-
"Last-Translator: tsy0123 <675526215@qq.com>\n"
14+
"PO-Revision-Date: 2026-02-11 20:47+0800\n"
15+
"Last-Translator: CatalpaEel\n"
1616
"Language: zh_CN\n"
1717
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
1818
"/spinaldoc-rtd/spinalhdldata-typesbool/zh_Hans/>\n"
@@ -37,27 +37,25 @@ msgid "Description"
3737
msgstr "描述"
3838

3939
#: ../../SpinalHDL/Data types/bool.rst:9
40-
#, fuzzy
4140
msgid ""
4241
"The ``Bool`` type corresponds to a boolean value (True or False) or a "
4342
"single bit/signal used in a hardware design. While named similarly it "
4443
"should not be confused with Scala `Boolean` type which does not describe "
4544
"hardware but truth values in the Scala generator code."
4645
msgstr ""
47-
"``Bool`` 类型对应于硬件设计中使用的布尔值(True 或 False)或单个位/线。虽然名称类似,但不应与 Scala `Boolean`"
46+
"``Bool`` 类型对应于硬件设计中使用的布尔值(True 或 False)或单个比特/信号。虽然名称类似,但不应与 Scala `Boolean`"
4847
" 类型混淆,后者不描述硬件,而是描述 Scala 生成器代码中的真值。"
4948

5049
#: ../../SpinalHDL/Data types/bool.rst:14
51-
#, fuzzy
5250
msgid ""
5351
"An important concept and rule-of-thumb to understand is that the Scala "
5452
"`Boolean` type is used in places where elaboration-time HDL code-"
5553
"generation decision making is occurring in Scala code. Like any regular "
5654
"program it affects execution of the Scala program that is SpinalHDL at "
5755
"the time the program is being run to perform HDL code generation."
5856
msgstr ""
59-
"需要理解的一个重要概念和经验是,Scala `Boolean` 类型用于在实例细化时决定如何生成 HDL 代码。与任何常规程序一样,在运行 "
60-
"SpinalHDL 程序以执行 HDL 代码生成时,它会影响 Scala 程序的执行。"
57+
"需要理解的一个重要概念和经验是,Scala `Boolean` 类型用于在实例细化时决定如何生成 HDL 代码。与任何常规程序一样,"
58+
"它会影响 SpinalHDL 这一 Scala 程序在运行以执行 HDL 代码生成时的执行过程。"
6159

6260
#: ../../SpinalHDL/Data types/bool.rst:20
6361
msgid ""
@@ -99,7 +97,6 @@ msgstr ""
9997
"实例指示它是给定赋值的源(提供状态)还是接收器(捕获状态)。"
10098

10199
#: ../../SpinalHDL/Data types/bool.rst:37
102-
#, fuzzy
103100
msgid ""
104101
"Multiple uses of the assignment operator are allowed, such that it is "
105102
"normal for a signal to act as a source (provides a value to drive HDL "
@@ -315,15 +312,14 @@ msgid ""
315312
msgstr "所有边缘检测函数都将通过 :ref:`RegNext <regnext>` 实例化一个附加寄存器,以获取相关 ``Bool`` 的延迟值(一拍)。"
316313

317314
#: ../../SpinalHDL/Data types/bool.rst:178
318-
#, fuzzy
319315
msgid ""
320316
"This feature does not reconfigure a D-type flip-flop to use an "
321317
"alternative CLK source, it uses two D-type flip-flop in series chain "
322318
"(with both CLK pins inheriting the default ClockDomain). It has "
323319
"combinational logic to perform edge detection based on the output Q "
324320
"states."
325321
msgstr ""
326-
"此功能不会重新配置 D 型触发器以使用其他 CLK 时钟,它使用串联链中的两个 D 型触发器(两个 CLK 引脚都继承默认的 "
322+
"此功能不会重新配置 D 型触发器以使用其他 CLK 时钟,而是采用两个 D 型触发器串联(两者 CLK 引脚都继承默认的 "
327323
"ClockDomain)。它具有组合逻辑,可根据输出 Q 状态进行边缘检测。"
328324

329325
#: ../../SpinalHDL/Data types/bool.rst:190

source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/index.po

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ msgid ":ref:`Floating-point <Floating>` numbers (experimental support)"
6262
msgstr ":ref:`Floating-point <Floating>` 浮点小数(实验性支持)"
6363

6464
#: ../../SpinalHDL/Data types/index.rst:22
65-
#, fuzzy
6665
msgid ""
6766
"Additionally, if you want to assign a don't care value to some hardware, "
6867
"for instance, to provide a default value, you can use the assignDontCare "

0 commit comments

Comments
 (0)