Skip to content

Commit a5d677d

Browse files
Hosted Weblate user 162400weblate
authored andcommitted
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 27.4% (1248 of 4540 strings) Co-authored-by: Hosted Weblate user 162400 <nathan-peng@users.noreply.hosted.weblate.org> Translate-URL: https://hosted.weblate.org/projects/pypa/packaging-python-org/zh_Hans/ Translation: pypa/packaging.python.org
1 parent 143a2e0 commit a5d677d

1 file changed

Lines changed: 47 additions & 9 deletions

File tree

‎locales/zh_Hans/LC_MESSAGES/messages.po‎

Lines changed: 47 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@
4040
# reducedradius <137701630+flytothehighest@users.noreply.github.com>, 2026.
4141
# Haozhe Xu <xuhaozhepy@outlook.com>, 2026.
4242
# B10112 <B10112@outlook.com>, 2026.
43+
# Hosted Weblate user 162400 <nathan-peng@users.noreply.hosted.weblate.org>, 2026.
4344
msgid ""
4445
msgstr ""
4546
"Project-Id-Version: Python Packaging User Guide\n"
4647
"Report-Msgid-Bugs-To: \n"
4748
"POT-Creation-Date: 2026-08-11 10:39+0000\n"
48-
"PO-Revision-Date: 2026-08-17 03:52+0000\n"
49-
"Last-Translator: B10112 <B10112@outlook.com>\n"
49+
"PO-Revision-Date: 2026-08-18 21:41+0000\n"
50+
"Last-Translator: Hosted Weblate user 162400 <nathan-"
51+
"peng@users.noreply.hosted.weblate.org>\n"
5052
"Language-Team: Chinese (Simplified Han script) <https://hosted.weblate.org/"
5153
"projects/pypa/packaging-python-org/zh_Hans/>\n"
5254
"Language: zh_Hans\n"
@@ -1096,9 +1098,9 @@ msgid ""
10961098
"time. For example, automatically generated Git archives do not guarantee "
10971099
"this, as the compressed data may change if gzip is upgraded on the server."
10981100
msgstr ""
1099-
"下游经常使用哈希来验证后续构建中源文件的真实性,而这需要文件长期保持二进制相"
1100-
"同。举个例子,自动生成的 Git 存档就不保证这一点,因为如果服务器上的 gzip 升级"
1101-
"了,那么压缩的数据可能会改变。"
1101+
"下游项目经常使用哈希值,在后续构建过程中校验源码文件的真实性,这就要求源码文"
1102+
"件随时间推移必须保持按比特完全一致。例如,自动生成的 Git 归档文件无法保证这一"
1103+
"点:如果服务端的 gzip 版本升级,压缩得到的数据就可能发生变化。"
11021104

11031105
#: ../source/discussions/downstream-packaging.rst:88
11041106
msgid ""
@@ -1638,6 +1640,8 @@ msgid ""
16381640
"include e.g. significant space usage, significant memory usage, long "
16391641
"runtime, incompatibility with parallel testing."
16401642
msgstr ""
1643+
"更一般地说,为有特殊要求的测试添加标记。例如,这类测试可能会占用大量磁盘空间"
1644+
"、消耗大量内存、运行耗时较长,或是与并行测试不兼容。"
16411645

16421646
#: ../source/discussions/downstream-packaging.rst:372
16431647
msgid ""
@@ -1646,6 +1650,9 @@ msgid ""
16461650
"dependency versions. Assert for warnings using ``pytest.warns()`` rather "
16471651
"than ``pytest.raises()``!"
16481652
msgstr ""
1653+
"不要假定测试套件会使用 ``-Werror`` 运行。下游项目往往需要禁用该选项,因为它会"
1654+
"产生误报,例如依赖库版本更新就可能导致该问题。请使用 ``pytest.warns()`` 对警"
1655+
"告进行断言,而不要使用 ``pytest.raises()`` !"
16491656

16501657
#: ../source/discussions/downstream-packaging.rst:377
16511658
msgid ""
@@ -1655,6 +1662,9 @@ msgid ""
16551662
"its advantages, but you want to have static test cases for completeness as "
16561663
"well."
16571664
msgstr ""
1665+
"请力求让你的测试套件可靠且可复现。避免不稳定测试。不要依赖特定平台细节,不要"
1666+
"依赖浮点计算的精确结果、操作执行时序等内容。模糊测试固然有其优势,但为保证完"
1667+
"备性,你同样应当编写静态测试用例。"
16581668

16591669
#: ../source/discussions/downstream-packaging.rst:383
16601670
msgid ""
@@ -1666,6 +1676,10 @@ msgid ""
16661676
"upgraded or the system is under load, without actually affecting the package "
16671677
"itself."
16681678
msgstr ""
1679+
"请按照用途拆分测试,并让无关或存在问题的测试类别可以方便地跳过。下游测试的主"
1680+
"要目的是确保软件包本身能够正常工作,因此下游项目通常并不关心代码覆盖率检查、"
1681+
"代码格式化、类型检查或是运行基准测试这类任务。当依赖升级或者系统处于高负载时"
1682+
",这类测试可能会失败,但并不会真正影响软件包本身的功能。"
16691683

16701684
#: ../source/discussions/downstream-packaging.rst:390
16711685
msgid ""
@@ -1674,6 +1688,8 @@ msgid ""
16741688
"them all takes a lot of time. Using pytest-xdist_ can help them avoid "
16751689
"bottlenecks."
16761690
msgstr ""
1691+
"如果你的测试套件运行耗时较长,请支持并行测试。下游项目通常要维护大量软件包,"
1692+
"全部测试会消耗大量时间。使用 pytest‑xdist_ 可以帮助他们消除测试瓶颈。"
16771693

16781694
#: ../source/discussions/downstream-packaging.rst:395
16791695
msgid ""
@@ -1686,6 +1702,12 @@ msgid ""
16861702
"``pytest``: ``pytest`` is able to find and execute almost all test cases "
16871703
"that are compatible with the standard library's ``unittest`` test discovery."
16881704
msgstr ""
1705+
"在理想情况下,请支持通过 ``pytest`` 运行你的测试套件。``pytest``_ 拥有大量对"
1706+
"下游项目十分实用的命令行参数,例如可以便捷地剔除指定测试、重跑不稳定测试(借"
1707+
"助 ``pytest‑rerunfailures``_)、设置超时防止测试挂起(借助 ``pytest‑"
1708+
"timeout``_),或是并行执行测试(借助 ``pytest‑xdist``_)。请注意:测试套件无"
1709+
"需用 ``pytest`` *written*,也能够用 ``pytest`` *executed*;``pytest`` 几乎能"
1710+
"够发现并运行所有兼容标准库 ``unittest`` 测试发现机制的测试用例。"
16891711

16901712
#: ../source/discussions/downstream-packaging.rst:409
16911713
msgid "Aim for stable releases"
@@ -1698,6 +1720,9 @@ msgid ""
16981720
"upgrades to users with higher stability needs. These users often prefer to "
16991721
"trade having the newest features available for lower risk of issues."
17001722
msgstr ""
1723+
"许多下游项目除主软件包源之外还提供稳定发布渠道。设置这些渠道的目的,是为对稳"
1724+
"定性要求较高的用户提供更保守的版本升级。这类用户往往宁愿放弃最新功能,换取更"
1725+
"低的故障风险。"
17011726

17021727
#: ../source/discussions/downstream-packaging.rst:419
17031728
msgid ""
@@ -1708,6 +1733,10 @@ msgid ""
17081733
"available in testing for a month, and being tested against the versions of "
17091734
"its dependencies that are marked stable at the time."
17101735
msgstr ""
1736+
"尽管具体策略各有差异,但将软件包新版本纳入稳定发布渠道的一项重要标准是:该版"
1737+
"本已经在测试渠道中发布一段时间,且不存在已知的严重功能退化问题。例如,在 "
1738+
"Gentoo Linux 中,软件包通常需要在测试渠道中发布满一个月,并且针对当时标记为稳"
1739+
"定版本的依赖项完成测试后,才会被标记为稳定。"
17111740

17121741
#: ../source/discussions/downstream-packaging.rst:426
17131742
msgid ""
@@ -1717,38 +1746,47 @@ msgid ""
17171746
"a need to resolve it. In this case, they need to consider various options, "
17181747
"such as:"
17191748
msgstr ""
1749+
"但也存在需要更快速处理的情形。例如,如果稳定渠道当前提供的版本中发现安全漏洞"
1750+
"或重大缺陷,下游项目就需要着手解决该问题。此时他们需要权衡多种可选方案,例如"
1751+
":"
17201752

17211753
#: ../source/discussions/downstream-packaging.rst:431
17221754
msgid "putting a new version in the stable channel early,"
1723-
msgstr ""
1755+
msgstr "提前将新版本纳入稳定渠道,"
17241756

17251757
#: ../source/discussions/downstream-packaging.rst:433
17261758
msgid "adding patches to the version currently published,"
1727-
msgstr ""
1759+
msgstr "为当前已发布的版本应用补丁,"
17281760

17291761
#: ../source/discussions/downstream-packaging.rst:435
17301762
msgid "or even downgrading the stable channel to an earlier release."
1731-
msgstr ""
1763+
msgstr "甚至将稳定渠道降级至更早的发行版本。"
17321764

17331765
#: ../source/discussions/downstream-packaging.rst:437
17341766
msgid ""
17351767
"Each of these options involves certain risks and a certain amount of work, "
17361768
"and packagers needs to weigh them to determine the course of action."
17371769
msgstr ""
1770+
"上述每一种方案都伴随着相应的风险与工作量,打包维护者需要权衡利弊来确定处理方"
1771+
"案。"
17381772

17391773
#: ../source/discussions/downstream-packaging.rst:443
17401774
msgid ""
17411775
"There are some things that upstreams can do to tailor their workflow to "
17421776
"stable release channels. These actions often are beneficial to the package's "
17431777
"users as well. Some specific suggestions are:"
17441778
msgstr ""
1779+
"上游项目可以采取一些措施,让自身工作流适配稳定发布渠道。这些做法通常也会对软"
1780+
"件包的用户带来益处。部分具体建议如下:"
17451781

17461782
#: ../source/discussions/downstream-packaging.rst:447
17471783
msgid ""
17481784
"Adjust the release frequency to the rate of code changes. Packages that are "
17491785
"released rarely often bring significant changes with every release, and a "
17501786
"higher risk of accidental regressions."
17511787
msgstr ""
1788+
"根据代码变更的幅度调整版本发布频率。低频发布的软件包往往每次更新都会引入大量"
1789+
"改动,出现意外功能退化的风险也会更高。"
17521790

17531791
#: ../source/discussions/downstream-packaging.rst:451
17541792
msgid ""
@@ -16486,7 +16524,7 @@ msgstr ""
1648616524

1648716525
#: ../source/specifications/core-metadata.rst:1093
1648816526
msgid "reStructuredText markup: https://docutils.sourceforge.io/"
16489-
msgstr "reStructuredText 标记:https://docutils.sourceforge.io/"
16527+
msgstr "`reStructuredText 标记 <https://docutils.sourceforge.io/>`_"
1649016528

1649116529
#: ../source/specifications/core-metadata.rst:1098
1649216530
msgid "RFC 822 Long Header Fields: :rfc:`822#section-3.1.1`"

0 commit comments

Comments
 (0)