Skip to content

Commit 47e6db7

Browse files
mattwang44claude
andcommitted
Fill code-only, markup-only and exact-match entries from upstream sync
- Entries whose msgid already has exactly one translation elsewhere in the repo reuse it verbatim (e.g. text shared between whatsnew/3.15 and deprecations/*, or moved into library/pstats and profiling.*). - Literal blocks without comments and markup-only entries take msgstr = msgid, same as the 3.14 sync. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent b41e2b3 commit 47e6db7

82 files changed

Lines changed: 1364 additions & 1037 deletions

Some content is hidden

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

‎bugs.po‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ msgid ""
124124
msgstr "給有意成為 Python 說明文件貢獻者的綜合指南。"
125125

126126
#: ../../bugs.rst:49
127-
#, fuzzy
128127
msgid ""
129128
"`Documentation Translations <https://devguide.python.org/documentation/"
130129
"translations/translating/#translation-coordinators>`_"
131130
msgstr ""
132-
"`說明文件翻譯 <https://devguide.python.org/documentation/translating/>`_"
131+
"`Documentation Translations <https://devguide.python.org/documentation/"
132+
"translations/translating/#translation-coordinators>`_"
133133

134134
#: ../../bugs.rst:50
135135
#, fuzzy

‎builtins/exceptions.po‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,9 +666,8 @@ msgid ":meth:`Joining <threading.Thread.join>` a running daemon thread."
666666
msgstr ":meth:`Join <threading.Thread.join>` 一個執行中的常駐執行緒。"
667667

668668
#: ../../builtins/exceptions.rst:446
669-
#, fuzzy
670669
msgid ":func:`os.fork`,"
671-
msgstr ":func:`os.fork`。"
670+
msgstr ":func:`os.fork`,"
672671

673672
#: ../../builtins/exceptions.rst:447
674673
msgid ""

‎builtins/functions.po‎

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ msgstr ""
2222
"Content-Transfer-Encoding: 8bit\n"
2323

2424
#: ../../builtins/functions.rst:5
25-
#, fuzzy
2625
msgid "Built-in functions"
2726
msgstr "內建函式"
2827

@@ -166,9 +165,8 @@ msgid ":func:`format`"
166165
msgstr ":func:`format`"
167166

168167
#: ../../builtins/functions.rst:0
169-
#, fuzzy
170168
msgid "|func-frozendict|_"
171-
msgstr "|func-frozenset|_"
169+
msgstr "|func-frozendict|_"
172170

173171
#: ../../builtins/functions.rst:0
174172
msgid "|func-frozenset|_"
@@ -347,9 +345,8 @@ msgid ":func:`setattr`"
347345
msgstr ":func:`setattr`"
348346

349347
#: ../../builtins/functions.rst:0
350-
#, fuzzy
351348
msgid ":func:`sentinel`"
352-
msgstr ":func:`isinstance`"
349+
msgstr ":func:`sentinel`"
353350

354351
#: ../../builtins/functions.rst:0
355352
msgid ":func:`slice`"
@@ -962,9 +959,8 @@ msgid ""
962959
msgstr ""
963960

964961
#: ../../builtins/functions.rst:394
965-
#, fuzzy
966962
msgid "Added the *module* parameter."
967-
msgstr "增加了 *closure* 參數。"
963+
msgstr "新增 *module* 參數。"
968964

969965
#: ../../builtins/functions.rst:402
970966
msgid ""
@@ -3135,7 +3131,6 @@ msgid "This class has a custom representation that can be evaluated::"
31353131
msgstr "這個類別有一個自訂的表示,可以被求值: ::"
31363132

31373133
#: ../../builtins/functions.rst:1789
3138-
#, fuzzy
31393134
msgid ""
31403135
"class Person:\n"
31413136
" def __init__(self, name, age):\n"
@@ -3151,7 +3146,7 @@ msgstr ""
31513146
" self.age = age\n"
31523147
"\n"
31533148
" def __repr__(self):\n"
3154-
" return f\"Person('{self.name}', {self.age})\""
3149+
" return f\"Person({self.name!r}, {self.age!r})\""
31553150

31563151
#: ../../builtins/functions.rst:1800
31573152
msgid ""
@@ -3275,6 +3270,9 @@ msgid ""
32753270
">>> MISSING\n"
32763271
"MISSING"
32773272
msgstr ""
3273+
">>> MISSING = sentinel(\"MISSING\")\n"
3274+
">>> MISSING\n"
3275+
"MISSING"
32783276

32793277
#: ../../builtins/functions.rst:1877
32803278
#, fuzzy
@@ -3289,6 +3287,9 @@ msgid ""
32893287
">>> MISSING\n"
32903288
"<MISSING>"
32913289
msgstr ""
3290+
">>> MISSING = sentinel(\"MISSING\", repr=\"<MISSING>\")\n"
3291+
">>> MISSING\n"
3292+
"<MISSING>"
32923293

32933294
#: ../../builtins/functions.rst:1883
32943295
msgid ""
@@ -3317,6 +3318,10 @@ msgid ""
33173318
"def next_value(default: int | MISSING = MISSING):\n"
33183319
" ..."
33193320
msgstr ""
3321+
"MISSING = sentinel(\"MISSING\")\n"
3322+
"\n"
3323+
"def next_value(default: int | MISSING = MISSING):\n"
3324+
" ..."
33203325

33213326
#: ../../builtins/functions.rst:1898
33223327
msgid ""
@@ -3347,6 +3352,16 @@ msgid ""
33473352
"\n"
33483353
"assert pickle.loads(pickle.dumps(Cls.PICKLABLE)) is Cls.PICKLABLE"
33493354
msgstr ""
3355+
"import pickle\n"
3356+
"\n"
3357+
"PICKLABLE = sentinel(\"PICKLABLE\")\n"
3358+
"\n"
3359+
"assert pickle.loads(pickle.dumps(PICKLABLE)) is PICKLABLE\n"
3360+
"\n"
3361+
"class Cls:\n"
3362+
" PICKLABLE = sentinel(\"Cls.PICKLABLE\")\n"
3363+
"\n"
3364+
"assert pickle.loads(pickle.dumps(Cls.PICKLABLE)) is Cls.PICKLABLE"
33503365

33513366
#: ../../builtins/functions.rst:1918
33523367
msgid "Sentinel objects have the following attributes:"

‎builtins/stdtypes.po‎

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,6 +1698,11 @@ msgid ""
16981698
"... yield 2\n"
16991699
"... yield 3"
17001700
msgstr ""
1701+
">>> def count_to_three():\n"
1702+
"... yield 0\n"
1703+
"... yield 1\n"
1704+
"... yield 2\n"
1705+
"... yield 3"
17011706

17021707
#: ../../builtins/stdtypes.rst:985
17031708
msgid ""
@@ -1712,6 +1717,8 @@ msgid ""
17121717
">>> count_to_three()\n"
17131718
"<generator object count_to_three at 0x7f33a2305000>"
17141719
msgstr ""
1720+
">>> count_to_three()\n"
1721+
"<generator object count_to_three at 0x7f33a2305000>"
17151722

17161723
#: ../../builtins/stdtypes.rst:993
17171724
msgid ""
@@ -1731,6 +1738,15 @@ msgid ""
17311738
">>> list(count_to_three())\n"
17321739
"[0, 1, 2, 3]"
17331740
msgstr ""
1741+
">>> for number in count_to_three():\n"
1742+
"... print(number)\n"
1743+
"0\n"
1744+
"1\n"
1745+
"2\n"
1746+
"3\n"
1747+
"\n"
1748+
">>> list(count_to_three())\n"
1749+
"[0, 1, 2, 3]"
17341750

17351751
#: ../../builtins/stdtypes.rst:1006
17361752
msgid ""
@@ -1748,6 +1764,13 @@ msgid ""
17481764
">>> list(CardDeck())\n"
17491765
"['three of clubs', 'ace of hearts']"
17501766
msgstr ""
1767+
">>> class CardDeck:\n"
1768+
"... def __iter__(self):\n"
1769+
"... yield 'three of clubs'\n"
1770+
"... yield 'ace of hearts'\n"
1771+
"\n"
1772+
">>> list(CardDeck())\n"
1773+
"['three of clubs', 'ace of hearts']"
17511774

17521775
#: ../../builtins/stdtypes.rst:1023
17531776
#, fuzzy
@@ -8696,39 +8719,32 @@ msgid ":class:`!dict` has more methods than :class:`!frozendict`:"
86968719
msgstr ""
86978720

86988721
#: ../../builtins/stdtypes.rst:6030
8699-
#, fuzzy
87008722
msgid ":meth:`!__delitem__`"
8701-
msgstr ":meth:`bytes.split`"
8723+
msgstr ":meth:`!__delitem__`"
87028724

87038725
#: ../../builtins/stdtypes.rst:6031
8704-
#, fuzzy
87058726
msgid ":meth:`!__setitem__`"
8706-
msgstr ":meth:`str.title`"
8727+
msgstr ":meth:`!__setitem__`"
87078728

87088729
#: ../../builtins/stdtypes.rst:6032
8709-
#, fuzzy
87108730
msgid ":meth:`~dict.clear`"
8711-
msgstr ":meth:`str.lower`"
8731+
msgstr ":meth:`~dict.clear`"
87128732

87138733
#: ../../builtins/stdtypes.rst:6033
8714-
#, fuzzy
87158734
msgid ":meth:`~dict.pop`"
8716-
msgstr ":meth:`str.upper`"
8735+
msgstr ":meth:`~dict.pop`"
87178736

87188737
#: ../../builtins/stdtypes.rst:6034
8719-
#, fuzzy
87208738
msgid ":meth:`~dict.popitem`"
8721-
msgstr ":meth:`str.split`"
8739+
msgstr ":meth:`~dict.popitem`"
87228740

87238741
#: ../../builtins/stdtypes.rst:6035
8724-
#, fuzzy
87258742
msgid ":meth:`~dict.setdefault`"
8726-
msgstr ":meth:`str.isdecimal`"
8743+
msgstr ":meth:`~dict.setdefault`"
87278744

87288745
#: ../../builtins/stdtypes.rst:6036
8729-
#, fuzzy
87308746
msgid ":meth:`~dict.update`"
8731-
msgstr ":meth:`str.upper`"
8747+
msgstr ":meth:`~dict.update`"
87328748

87338749
#: ../../builtins/stdtypes.rst:6038
87348750
msgid ""
@@ -9220,9 +9236,8 @@ msgid ":class:`set`"
92209236
msgstr ":class:`set`"
92219237

92229238
#: ../../builtins/stdtypes.rst:6293
9223-
#, fuzzy
92249239
msgid ":class:`frozendict`"
9225-
msgstr ":class:`frozenset`"
9240+
msgstr ":class:`frozendict`"
92269241

92279242
#: ../../builtins/stdtypes.rst:6294
92289243
msgid ":class:`frozenset`"
@@ -10799,34 +10814,29 @@ msgid "iteration over"
1079910814
msgstr "iteration over(疊代於)"
1080010815

1080110816
#: ../../builtins/stdtypes.rst:1019
10802-
#, fuzzy
1080310817
msgid "generator"
10804-
msgstr "operator(運算子)"
10818+
msgstr "generator(產生器)"
1080510819

1080610820
#: ../../builtins/stdtypes.rst:1029 ../../builtins/stdtypes.rst:1098
1080710821
#: ../../builtins/stdtypes.rst:1139 ../../builtins/stdtypes.rst:1216
10808-
#, fuzzy
1080910822
msgid "exception"
10810-
msgstr "描述"
10823+
msgstr "exception(例外)"
1081110824

1081210825
#: ../../builtins/stdtypes.rst:1029
10813-
#, fuzzy
1081410826
msgid "StopIteration"
10815-
msgstr "operation(操作)"
10827+
msgstr "StopIteration"
1081610828

1081710829
#: ../../builtins/stdtypes.rst:1098 ../../builtins/stdtypes.rst:1216
10818-
#, fuzzy
1081910830
msgid "GeneratorExit"
10820-
msgstr "Generic(泛型)"
10831+
msgstr "GeneratorExit"
1082110832

1082210833
#: ../../builtins/stdtypes.rst:1129
1082310834
msgid "asynchronous-generator"
10824-
msgstr ""
10835+
msgstr "asynchronous-generator(非同步產生器)"
1082510836

1082610837
#: ../../builtins/stdtypes.rst:1139
10827-
#, fuzzy
1082810838
msgid "StopAsyncIteration"
10829-
msgstr "operation(操作)"
10839+
msgstr "StopAsyncIteration"
1083010840

1083110841
#: ../../builtins/stdtypes.rst:1276 ../../builtins/stdtypes.rst:5613
1083210842
msgid "len"

‎builtins/time-complexity.po‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,8 @@ msgid "Get length (``len(t)``) [5]_"
273273
msgstr ""
274274

275275
#: ../../builtins/time-complexity.rst:108
276-
#, fuzzy
277276
msgid ":class:`!dict`, :class:`!frozendict`"
278-
msgstr ":class:`!set`, :class:`!frozenset`"
277+
msgstr ":class:`!dict`, :class:`!frozendict`"
279278

280279
#: ../../builtins/time-complexity.rst:110
281280
msgid ""

0 commit comments

Comments
 (0)