Skip to content

Commit 0fa68f7

Browse files
[po] auto sync
1 parent 52b2614 commit 0fa68f7

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "99.90%", "updated_at": "2026-02-07T16:00:40Z"}
1+
{"translation": "99.91%", "updated_at": "2026-02-08T17:03:29Z"}

library/urllib.parse.po

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# python-doc bot, 2025
8+
# 99 <wh2099@pm.me>, 2026
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2026-02-07 15:03+0000\n"
1516
"PO-Revision-Date: 2025-09-15 01:05+0000\n"
16-
"Last-Translator: python-doc bot, 2025\n"
17+
"Last-Translator: 99 <wh2099@pm.me>, 2026\n"
1718
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -105,6 +106,11 @@ msgid ""
105106
"of the result, except for a leading slash in the *path* component, which is "
106107
"retained if present. For example:"
107108
msgstr ""
109+
"将一个 URL 解析为五个组成部分,返回一个包含 5 个条目的 :term:`named tuple` :class:`SplitResult` 或 "
110+
":class:`SplitResultBytes`。 这对应于一个 URL "
111+
"的一般结构:``scheme://netloc/path?query#fragment``。 每个元组条目均为字符串,可能为空。 "
112+
"各组成部分不会再被拆分为更小的部分 (例如,网络位置是一个单独的字符串),并且 % 转义也不会被展开。 如上所示的分隔符不是结果的一部分,但 "
113+
"*path* 组成部分中的前导斜杠除外,如果存在则会被保留。 例如:"
108114

109115
#: ../../library/urllib.parse.rst:65
110116
msgid ""
@@ -137,6 +143,8 @@ msgid ""
137143
"the input is presumed to be a relative URL and thus to start with a path "
138144
"component."
139145
msgstr ""
146+
"根据 :rfc:`1808` 中的语法规范,:func:`!urlsplit` 仅在 netloc 由 '//' 正确引入时才会识别它。 "
147+
"否则输入将被视为相对 URL,并因此以路径部分为开头。"
140148

141149
#: ../../library/urllib.parse.rst:94
142150
msgid ""
@@ -332,6 +340,8 @@ msgid ""
332340
"control and space characters are stripped from the URL. ``\\n``, ``\\r`` and"
333341
" tab ``\\t`` characters are removed from the URL at any position."
334342
msgstr ""
343+
"遵循更新了 :rfc:`3986` 的部分 `WHATWG spec`_,打头的 C0 控制字符和空格字符会从 URL 中被去除。 "
344+
"``\\n``、``\\r`` 和制表符 ``\\t`` 会在 URL 中的任意位置被移除。"
335345

336346
#: ../../library/urllib.parse.rst:160
337347
msgid ""
@@ -340,6 +350,8 @@ msgid ""
340350
":meth:`_replace`. The :meth:`_replace` method will return a new "
341351
":class:`SplitResult` object replacing specified fields with new values."
342352
msgstr ""
353+
"和所有命名元组一样,该子类有一些特别有用的额外方法和属性。 其中一个方法是 :meth:`_replace`。 :meth:`_replace` "
354+
"方法将返回一个新的 :class:`SplitResult` 对象,用新值替换指定的字段。"
343355

344356
#: ../../library/urllib.parse.rst:165
345357
msgid ""
@@ -497,6 +509,8 @@ msgid ""
497509
"unnecessary delimiters (for example, a ``?`` with an empty query; the RFC "
498510
"states that these are equivalent)."
499511
msgstr ""
512+
"从 ``urlsplit()`` 返回的元组中构造一个 URL。 *parts* 参数可以是任何包含五个条目的可迭代对象。 如果最初解析的 URL "
513+
"具有不必要的分隔符(例如,带有空查询的 ``?``;RFC 声明这些是等价的),则结果可能是一个略有不同但等价的 URL。"
500514

501515
#: ../../library/urllib.parse.rst:307
502516
msgid ""
@@ -506,6 +520,9 @@ msgid ""
506520
"items are the same as for the :func:`!urlsplit` result, except that *params*"
507521
" is inserted at index 3, between *path* and *query*."
508522
msgstr ""
523+
"类似于 :func:`urlsplit`,但还会将 *path* 组成部分拆分为 *path* 和 *params*。 该函数返回一个包含 6 个条目的"
524+
" :term:`named tuple` :class:`ParseResult` 或 :class:`ParseResultBytes`。 其条目与 "
525+
":func:`!urlsplit` 的结果相同,区别在于 *params* 被插入到索引 3 的位置,即 *path* 和 *query* 之间。"
509526

510527
#: ../../library/urllib.parse.rst:314
511528
msgid ""
@@ -516,6 +533,9 @@ msgid ""
516533
":func:`urlparse`. A separate function is needed to separate the path "
517534
"segments and parameters."
518535
msgstr ""
536+
"该函数基于已过时的 :rfc:`1738` 和 :rfc:`1808`,它们将 *params* 列为主要的 URL 组成部分。 较新的 URL "
537+
"语法允许将参数应用到 URL 的 *path* 部分的每个分段上(参见 :rfc:`3986`)。 通常应当使用 :func:`urlsplit` 而非"
538+
" :func:`urlparse`。 需要一个单独的函数来分隔路径分段和参数。"
519539

520540
#: ../../library/urllib.parse.rst:323
521541
msgid ""
@@ -525,6 +545,8 @@ msgid ""
525545
"that was parsed originally had unnecessary delimiters (for example, a ? with"
526546
" an empty query; the RFC states that these are equivalent)."
527547
msgstr ""
548+
"将 :func:`urlparse` 所返回的元组中的元素合并为一个完整 URL 字符串。 *parts* 参数可以是任何包含六个条目的可迭代对象。 "
549+
"如果最初解析的 URL 具有不必要的分隔符(例如,带有空查询的 ?;RFC 声明这些是等价的),则结果可能是一个略有不同但等价的 URL。"
528550

529551
#: ../../library/urllib.parse.rst:332
530552
msgid ""
@@ -540,7 +562,7 @@ msgstr ""
540562
msgid ""
541563
"The *allow_fragments* argument has the same meaning and default as for "
542564
":func:`urlsplit`."
543-
msgstr ""
565+
msgstr "*allow_fragments* 参数的含义和默认值与 :func:`urlsplit` 中的相同。"
544566

545567
#: ../../library/urllib.parse.rst:346
546568
msgid ""
@@ -765,6 +787,8 @@ msgid ""
765787
"functions, the encoding and decoding support described in the previous "
766788
"section, as well as an additional method:"
767789
msgstr ""
790+
"来自 :func:`urlsplit`、:func:`urlparse` 和 :func:`urldefrag` 函数的结果对象是 "
791+
":class:`tuple` 类型的子类。 这些子类添加了各函数文档中列出的属性、在前一节中描述的编解码支持,以及一个额外的方法:"
768792

769793
#: ../../library/urllib.parse.rst:490
770794
msgid ""

0 commit comments

Comments
 (0)