Skip to content

Commit 41a5e7b

Browse files
B10112-officialweblate
authored andcommitted
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 27.1% (1233 of 4540 strings) Co-authored-by: B10112 <B10112@outlook.com> Translate-URL: https://hosted.weblate.org/projects/pypa/packaging-python-org/zh_Hans/ Translation: pypa/packaging.python.org
1 parent f296497 commit 41a5e7b

1 file changed

Lines changed: 29 additions & 4 deletions

File tree

‎locales/zh_Hans/LC_MESSAGES/messages.po‎

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@
3939
# monios <xiaotbl114514@outlook.com>, 2025.
4040
# reducedradius <137701630+flytothehighest@users.noreply.github.com>, 2026.
4141
# Haozhe Xu <xuhaozhepy@outlook.com>, 2026.
42+
# B10112 <B10112@outlook.com>, 2026.
4243
msgid ""
4344
msgstr ""
4445
"Project-Id-Version: Python Packaging User Guide\n"
4546
"Report-Msgid-Bugs-To: \n"
4647
"POT-Creation-Date: 2026-08-11 10:39+0000\n"
47-
"PO-Revision-Date: 2026-08-14 01:51+0000\n"
48-
"Last-Translator: Haozhe Xu <xuhaozhepy@outlook.com>\n"
48+
"PO-Revision-Date: 2026-08-17 03:52+0000\n"
49+
"Last-Translator: B10112 <B10112@outlook.com>\n"
4950
"Language-Team: Chinese (Simplified Han script) <https://hosted.weblate.org/"
5051
"projects/pypa/packaging-python-org/zh_Hans/>\n"
5152
"Language: zh_Hans\n"
@@ -1526,13 +1527,15 @@ msgstr "在未被上游测试所覆盖的第三方平台上进行的测试。"
15261527
msgid ""
15271528
"Finding subtle bugs that can only be reproduced with particular hardware, "
15281529
"system package versions, and so on."
1529-
msgstr ""
1530+
msgstr "找出那些只在特定硬件、系统包版本等环境下才能重现的隐蔽漏洞。"
15301531

15311532
#: ../source/discussions/downstream-packaging.rst:317
15321533
msgid ""
15331534
"Testing the released package against newer (or older) dependency versions "
15341535
"than the ones present during upstream release testing."
15351536
msgstr ""
1537+
"对已发布的软件包进行测试时,使用比上游发布测试时所采用的依赖版本更新(或更旧"
1538+
")的版本。"
15361539

15371540
#: ../source/discussions/downstream-packaging.rst:320
15381541
msgid ""
@@ -1541,12 +1544,16 @@ msgid ""
15411544
"different installed packages, including packages that are not dependencies "
15421545
"of your package, but nevertheless can cause issues."
15431546
msgstr ""
1547+
"在尽可能接近生产环境的环境中测试该软件包。这可以检测出由不同已安装包之间复杂"
1548+
"交互所导致的问题,包括那些并非你软件包依赖项、但仍然可能引发问题的包。"
15441549

15451550
#: ../source/discussions/downstream-packaging.rst:325
15461551
msgid ""
15471552
"Testing the released package against newer Python versions (including newer "
15481553
"point releases), or less tested Python implementations such as PyPy."
15491554
msgstr ""
1555+
"针对较新版本的 Python(包括新的次要/补丁版本),或测试覆盖较少的 Python 实现"
1556+
"(如 PyPy),对已发布的软件包进行测试。"
15501557

15511558
#: ../source/discussions/downstream-packaging.rst:328
15521559
msgid ""
@@ -1558,6 +1565,10 @@ msgid ""
15581565
"downstream packagers are doing their best to double-check their results, and "
15591566
"help upstream maintainers triage and fix the bugs that they reported."
15601567
msgstr ""
1568+
"诚然,下游测试有时可能会产生误报,或者报告一些上游项目无意支持的场景。然而,"
1569+
"更多时候它确实能提前预警问题,或发现那些否则会给上游项目用户带来麻烦的隐蔽缺"
1570+
"陷。尽管错误确实难免,但绝大多数下游打包者都在尽力反复核验自己的结果,并帮助"
1571+
"上游维护者对报告的问题进行诊断和修复。"
15611572

15621573
#: ../source/discussions/downstream-packaging.rst:339
15631574
msgid ""
@@ -1568,12 +1579,15 @@ msgid ""
15681579
"use for everyone, not just downstream packagers. Some specific suggestions "
15691580
"are:"
15701581
msgstr ""
1582+
"上游项目可以做许多事情来帮助下游重新打包者高效、有效地测试他们的软件包,其中"
1583+
"就包括上文提到的一些建议。这些改进通常能让测试套件对所有人来说都更可靠、更易"
1584+
"用,而不仅仅是对下游打包者。以下是一些具体建议:"
15711585

15721586
#: ../source/discussions/downstream-packaging.rst:345
15731587
msgid ""
15741588
"Include the test files and fixtures in the source distribution, or make it "
15751589
"possible to easily download them separately."
1576-
msgstr ""
1590+
msgstr "在源代码分发包中包含测试文件及测试夹具,或者使其能够单独轻松下载。"
15771591

15781592
#: ../source/discussions/downstream-packaging.rst:348
15791593
msgid ""
@@ -1582,6 +1596,9 @@ msgid ""
15821596
"modifications performed during testing and temporary test files may end up "
15831597
"being part of the installed package!"
15841598
msgstr ""
1599+
"测试期间不要向包目录中写入任何内容。下游测试环境有时会在已安装的包之上直接运"
1600+
"行测试,而测试过程中所做的修改以及临时测试文件最终可能会被误纳入已安装的包中"
1601+
"!"
15851602

15861603
#: ../source/discussions/downstream-packaging.rst:353
15871604
msgid ""
@@ -1591,6 +1608,10 @@ msgid ""
15911608
"Use pytest-socket_ to verify that your tests work offline. This often makes "
15921609
"your own test workflows faster and more reliable as well."
15931610
msgstr ""
1611+
"使测试套件能够在离线状态下工作。使用诸如 responses_ 或 vcrpy_ 之类的包来模拟"
1612+
"网络交互。如果无法做到,则应提供便捷的方式禁用需要互联网访问的测试,例如通过 "
1613+
"pytest_ 标记。可使用 pytest-socket_ 来验证你的测试确实在离线状态下运行。这样"
1614+
"做通常也能让你的测试工作流更快、更可靠。"
15941615

15951616
#: ../source/discussions/downstream-packaging.rst:359
15961617
msgid ""
@@ -1599,13 +1620,17 @@ msgid ""
15991620
"system services such as databases — in an extreme case, you could crash a "
16001621
"production service!"
16011622
msgstr ""
1623+
"让测试无需专门配置即可运行,或将必要配置作为测试固件的一部分来执行。切勿假设"
1624+
"你可以连接到数据库等系统服务——在极端情况下,这可能导致生产服务崩溃!"
16021625

16031626
#: ../source/discussions/downstream-packaging.rst:364
16041627
msgid ""
16051628
"If your package has optional dependencies, make their tests optional as "
16061629
"well. Either skip them if the needed packages are not installed, or add "
16071630
"markers to make deselecting easy."
16081631
msgstr ""
1632+
"如果你的软件包有可选依赖,那么这些依赖对应的测试也应当是可选的。如果所需的包"
1633+
"未安装,则跳过这些测试;或者添加标记,以便于轻松取消选择它们。"
16091634

16101635
#: ../source/discussions/downstream-packaging.rst:368
16111636
msgid ""

0 commit comments

Comments
 (0)