Skip to content

Commit 4cdfdf7

Browse files
committed
update .pot files
1 parent 8d2a651 commit 4cdfdf7

2 files changed

Lines changed: 93 additions & 14 deletions

File tree

  • source/locale
    • gettext/SpinalHDL/Other language features
    • zh_CN/LC_MESSAGES/SpinalHDL/Other language features

source/locale/gettext/SpinalHDL/Other language features/report.pot

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: SpinalHDL \n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-01-06 12:16+0000\n"
11+
"POT-Creation-Date: 2025-05-29 08:51+0000\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"
@@ -33,9 +33,41 @@ msgid "Since SpinalHDL 1.4.4, the following syntax is also supported:"
3333
msgstr ""
3434

3535
#: ../../SpinalHDL/Other language features/report.rst:33
36-
msgid "You can display the current simulation time using the REPORT_TIME object"
36+
msgid "You can display the current simulation time using the `REPORT_TIME` object:"
3737
msgstr ""
3838

3939
#: ../../SpinalHDL/Other language features/report.rst:39
4040
msgid "will result in:"
4141
msgstr ""
42+
43+
#: ../../SpinalHDL/Other language features/report.rst:45
44+
msgid "**Automatic Handling of Scala Primitive Types (SpinalHDL ^1.12.2)**"
45+
msgstr ""
46+
47+
#: ../../SpinalHDL/Other language features/report.rst:47
48+
msgid "You can embed Scala primitive types (e.g., `Int`, `Boolean`, `Float`, `BigInt`, `BigDecimal`, `Char`, `Byte`, `Short`, `Long`) within `L\"\"` interpolated strings without explicit `.toString()` calls."
49+
msgstr ""
50+
51+
#: ../../SpinalHDL/Other language features/report.rst:63
52+
msgid "**Structured Reporting for Complex Data Types (like Bundles) (SpinalHDL ^1.12.2)**"
53+
msgstr ""
54+
55+
#: ../../SpinalHDL/Other language features/report.rst:65
56+
msgid "For `Bundle`s or other complex data structures, you can define a `Formattable` trait and implement a `format()` method returning `Seq[Any]` to define a structured, nested representation. This allows for clean, one-line reporting of entire complex objects."
57+
msgstr ""
58+
59+
#: ../../SpinalHDL/Other language features/report.rst:67
60+
msgid "First, define a `Formattable` trait and implement it in your Bundles:"
61+
msgstr ""
62+
63+
#: ../../SpinalHDL/Other language features/report.rst:94
64+
msgid "Then, you can report the entire structure:"
65+
msgstr ""
66+
67+
#: ../../SpinalHDL/Other language features/report.rst:104
68+
msgid "This will produce a compact, readable output like:"
69+
msgstr ""
70+
71+
#: ../../SpinalHDL/Other language features/report.rst:107
72+
msgid "PacketHeader(packetLength=0x0c, packetType=0x1, payload=DataPayload(value=0x5678, checksum=0x78))"
73+
msgstr ""
Lines changed: 59 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1+
12
msgid ""
23
msgstr ""
3-
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-Date:2023-12-"
4-
"01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME "
5-
"<EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN <LL@li.org>Plural-"
6-
"Forms:nplurals=1; plural=0;MIME-Version:1.0Content-Type:text/plain; "
7-
"charset=UTF-8\n"
4+
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-"
5+
"Date:2023-12-01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-"
6+
"Translator:FULL NAME <EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN "
7+
"<LL@li.org>Plural-Forms:nplurals=1; plural=0;MIME-Version:1.0Content-"
8+
"Type:text/plain; charset=UTF-8\n"
89
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
9-
"POT-Creation-Date: 2024-01-26 16:21+0000\n"
10+
"POT-Creation-Date: 2025-05-29 08:51+0000\n"
1011
"PO-Revision-Date: 2024-01-26 17:04+0000\n"
1112
"Last-Translator: Readon <xydarcher@qq.com>\n"
12-
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
13-
"spinaldoc-rtd/spinalhdlother-language-featuresreport/zh_Hans/>\n"
1413
"Language: zh_CN\n"
14+
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
15+
"/spinaldoc-rtd/spinalhdlother-language-featuresreport/zh_Hans/>\n"
16+
"Plural-Forms: nplurals=1; plural=0;\n"
1517
"MIME-Version: 1.0\n"
1618
"Content-Type: text/plain; charset=utf-8\n"
1719
"Content-Transfer-Encoding: 8bit\n"
18-
"Plural-Forms: nplurals=1; plural=0;\n"
19-
"X-Generator: Weblate 5.4-dev\n"
20-
"Generated-By: Babel 2.14.0\n"
20+
"Generated-By: Babel 2.17.0\n"
2121

2222
#: ../../SpinalHDL/Other features/report.rst:3 language
2323
msgid "Report"
@@ -36,9 +36,56 @@ msgid "Since SpinalHDL 1.4.4, the following syntax is also supported:"
3636
msgstr "从 SpinalHDL 1.4.4 开始,还支持以下语法:"
3737

3838
#: ../../SpinalHDL/Other features/report.rst:33 language
39-
msgid "You can display the current simulation time using the REPORT_TIME object"
39+
#, fuzzy
40+
msgid ""
41+
"You can display the current simulation time using the `REPORT_TIME` "
42+
"object:"
4043
msgstr "可以使用 REPORT_TIME 对象显示当前仿真时间"
4144

4245
#: ../../SpinalHDL/Other features/report.rst:39 language
4346
msgid "will result in:"
4447
msgstr "会导致:"
48+
49+
#: ../../SpinalHDL/Other features/report.rst:45 language
50+
msgid "**Automatic Handling of Scala Primitive Types (SpinalHDL ^1.12.2)**"
51+
msgstr ""
52+
53+
#: ../../SpinalHDL/Other features/report.rst:47 language
54+
msgid ""
55+
"You can embed Scala primitive types (e.g., `Int`, `Boolean`, `Float`, "
56+
"`BigInt`, `BigDecimal`, `Char`, `Byte`, `Short`, `Long`) within `L\"\"` "
57+
"interpolated strings without explicit `.toString()` calls."
58+
msgstr ""
59+
60+
#: ../../SpinalHDL/Other features/report.rst:63 language
61+
msgid ""
62+
"**Structured Reporting for Complex Data Types (like Bundles) (SpinalHDL "
63+
"^1.12.2)**"
64+
msgstr ""
65+
66+
#: ../../SpinalHDL/Other features/report.rst:65 language
67+
msgid ""
68+
"For `Bundle`s or other complex data structures, you can define a "
69+
"`Formattable` trait and implement a `format()` method returning "
70+
"`Seq[Any]` to define a structured, nested representation. This allows for"
71+
" clean, one-line reporting of entire complex objects."
72+
msgstr ""
73+
74+
#: ../../SpinalHDL/Other features/report.rst:67 language
75+
msgid "First, define a `Formattable` trait and implement it in your Bundles:"
76+
msgstr ""
77+
78+
#: ../../SpinalHDL/Other features/report.rst:94 language
79+
msgid "Then, you can report the entire structure:"
80+
msgstr ""
81+
82+
#: ../../SpinalHDL/Other features/report.rst:104 language
83+
msgid "This will produce a compact, readable output like:"
84+
msgstr ""
85+
86+
#: ../../SpinalHDL/Other features/report.rst:107 language
87+
msgid ""
88+
"PacketHeader(packetLength=0x0c, packetType=0x1, "
89+
"payload=DataPayload(value=0x5678, checksum=0x78))"
90+
msgstr ""
91+

0 commit comments

Comments
 (0)