Skip to content

Commit 85059c5

Browse files
sync with cpython 906f1a4a
1 parent d0fcd4d commit 85059c5

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

library/textwrap.po

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
10+
"POT-Creation-Date: 2022-03-20 00:13+0000\n"
1111
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
1212
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -35,50 +35,50 @@ msgid ""
3535
"`TextWrapper` for efficiency."
3636
msgstr ""
3737

38-
#: ../../library/textwrap.rst:26
38+
#: ../../library/textwrap.rst:27
3939
msgid ""
4040
"Wraps the single paragraph in *text* (a string) so every line is at most "
4141
"*width* characters long. Returns a list of output lines, without final "
4242
"newlines."
4343
msgstr ""
4444

45-
#: ../../library/textwrap.rst:30
45+
#: ../../library/textwrap.rst:31
4646
msgid ""
4747
"Optional keyword arguments correspond to the instance attributes of :class:"
4848
"`TextWrapper`, documented below."
4949
msgstr ""
5050

51-
#: ../../library/textwrap.rst:33
51+
#: ../../library/textwrap.rst:34
5252
msgid ""
5353
"See the :meth:`TextWrapper.wrap` method for additional details on how :func:"
5454
"`wrap` behaves."
5555
msgstr ""
5656

57-
#: ../../library/textwrap.rst:44
57+
#: ../../library/textwrap.rst:45
5858
msgid ""
5959
"Wraps the single paragraph in *text*, and returns a single string containing "
6060
"the wrapped paragraph. :func:`fill` is shorthand for ::"
6161
msgstr ""
6262

63-
#: ../../library/textwrap.rst:49
63+
#: ../../library/textwrap.rst:50
6464
msgid ""
6565
"In particular, :func:`fill` accepts exactly the same keyword arguments as :"
6666
"func:`wrap`."
6767
msgstr ""
6868

69-
#: ../../library/textwrap.rst:57
69+
#: ../../library/textwrap.rst:58
7070
msgid "Collapse and truncate the given *text* to fit in the given *width*."
7171
msgstr ""
7272

73-
#: ../../library/textwrap.rst:59
73+
#: ../../library/textwrap.rst:60
7474
msgid ""
7575
"First the whitespace in *text* is collapsed (all whitespace is replaced by "
7676
"single spaces). If the result fits in the *width*, it is returned. "
7777
"Otherwise, enough words are dropped from the end so that the remaining words "
7878
"plus the :attr:`placeholder` fit within :attr:`width`::"
7979
msgstr ""
8080

81-
#: ../../library/textwrap.rst:71
81+
#: ../../library/textwrap.rst:72
8282
msgid ""
8383
"Optional keyword arguments correspond to the instance attributes of :class:"
8484
"`TextWrapper`, documented below. Note that the whitespace is collapsed "
@@ -87,58 +87,58 @@ msgid ""
8787
"drop_whitespace`, and :attr:`.replace_whitespace` will have no effect."
8888
msgstr ""
8989

90-
#: ../../library/textwrap.rst:81
90+
#: ../../library/textwrap.rst:82
9191
msgid "Remove any common leading whitespace from every line in *text*."
9292
msgstr ""
9393

94-
#: ../../library/textwrap.rst:83
94+
#: ../../library/textwrap.rst:84
9595
msgid ""
9696
"This can be used to make triple-quoted strings line up with the left edge of "
9797
"the display, while still presenting them in the source code in indented form."
9898
msgstr ""
9999

100-
#: ../../library/textwrap.rst:86
100+
#: ../../library/textwrap.rst:87
101101
msgid ""
102102
"Note that tabs and spaces are both treated as whitespace, but they are not "
103103
"equal: the lines ``\" hello\"`` and ``\"\\thello\"`` are considered to have "
104104
"no common leading whitespace."
105105
msgstr ""
106106

107-
#: ../../library/textwrap.rst:90
107+
#: ../../library/textwrap.rst:91
108108
msgid ""
109109
"Lines containing only whitespace are ignored in the input and normalized to "
110110
"a single newline character in the output."
111111
msgstr ""
112112

113-
#: ../../library/textwrap.rst:93 ../../library/textwrap.rst:114
113+
#: ../../library/textwrap.rst:94 ../../library/textwrap.rst:115
114114
msgid "For example::"
115115
msgstr ""
116116
"舉例來說:\n"
117117
"\n"
118118
"::"
119119

120-
#: ../../library/textwrap.rst:107
120+
#: ../../library/textwrap.rst:108
121121
msgid "Add *prefix* to the beginning of selected lines in *text*."
122122
msgstr ""
123123

124-
#: ../../library/textwrap.rst:109
124+
#: ../../library/textwrap.rst:110
125125
msgid "Lines are separated by calling ``text.splitlines(True)``."
126126
msgstr ""
127127

128-
#: ../../library/textwrap.rst:111
128+
#: ../../library/textwrap.rst:112
129129
msgid ""
130130
"By default, *prefix* is added to all lines that do not consist solely of "
131131
"whitespace (including any line endings)."
132132
msgstr ""
133133

134-
#: ../../library/textwrap.rst:120
134+
#: ../../library/textwrap.rst:121
135135
msgid ""
136136
"The optional *predicate* argument can be used to control which lines are "
137137
"indented. For example, it is easy to add *prefix* to even empty and "
138138
"whitespace-only lines::"
139139
msgstr ""
140140

141-
#: ../../library/textwrap.rst:133
141+
#: ../../library/textwrap.rst:134
142142
msgid ""
143143
":func:`wrap`, :func:`fill` and :func:`shorten` work by creating a :class:"
144144
"`TextWrapper` instance and calling a single method on it. That instance is "
@@ -147,82 +147,82 @@ msgid ""
147147
"class:`TextWrapper` object."
148148
msgstr ""
149149

150-
#: ../../library/textwrap.rst:139
150+
#: ../../library/textwrap.rst:140
151151
msgid ""
152152
"Text is preferably wrapped on whitespaces and right after the hyphens in "
153153
"hyphenated words; only then will long words be broken if necessary, unless :"
154154
"attr:`TextWrapper.break_long_words` is set to false."
155155
msgstr ""
156156

157-
#: ../../library/textwrap.rst:145
157+
#: ../../library/textwrap.rst:146
158158
msgid ""
159159
"The :class:`TextWrapper` constructor accepts a number of optional keyword "
160160
"arguments. Each keyword argument corresponds to an instance attribute, so "
161161
"for example ::"
162162
msgstr ""
163163

164-
#: ../../library/textwrap.rst:151
164+
#: ../../library/textwrap.rst:152
165165
msgid "is the same as ::"
166166
msgstr ""
167167

168-
#: ../../library/textwrap.rst:156
168+
#: ../../library/textwrap.rst:157
169169
msgid ""
170170
"You can re-use the same :class:`TextWrapper` object many times, and you can "
171171
"change any of its options through direct assignment to instance attributes "
172172
"between uses."
173173
msgstr ""
174174

175-
#: ../../library/textwrap.rst:160
175+
#: ../../library/textwrap.rst:161
176176
msgid ""
177177
"The :class:`TextWrapper` instance attributes (and keyword arguments to the "
178178
"constructor) are as follows:"
179179
msgstr ""
180180

181-
#: ../../library/textwrap.rst:166
181+
#: ../../library/textwrap.rst:167
182182
msgid ""
183183
"(default: ``70``) The maximum length of wrapped lines. As long as there are "
184184
"no individual words in the input text longer than :attr:`width`, :class:"
185185
"`TextWrapper` guarantees that no output line will be longer than :attr:"
186186
"`width` characters."
187187
msgstr ""
188188

189-
#: ../../library/textwrap.rst:174
189+
#: ../../library/textwrap.rst:175
190190
msgid ""
191191
"(default: ``True``) If true, then all tab characters in *text* will be "
192192
"expanded to spaces using the :meth:`expandtabs` method of *text*."
193193
msgstr ""
194194

195-
#: ../../library/textwrap.rst:180
195+
#: ../../library/textwrap.rst:181
196196
msgid ""
197197
"(default: ``8``) If :attr:`expand_tabs` is true, then all tab characters in "
198198
"*text* will be expanded to zero or more spaces, depending on the current "
199199
"column and the given tab size."
200200
msgstr ""
201201

202-
#: ../../library/textwrap.rst:189
202+
#: ../../library/textwrap.rst:190
203203
msgid ""
204204
"(default: ``True``) If true, after tab expansion but before wrapping, the :"
205205
"meth:`wrap` method will replace each whitespace character with a single "
206206
"space. The whitespace characters replaced are as follows: tab, newline, "
207207
"vertical tab, formfeed, and carriage return (``'\\t\\n\\v\\f\\r'``)."
208208
msgstr ""
209209

210-
#: ../../library/textwrap.rst:197
210+
#: ../../library/textwrap.rst:198
211211
msgid ""
212212
"If :attr:`expand_tabs` is false and :attr:`replace_whitespace` is true, each "
213213
"tab character will be replaced by a single space, which is *not* the same as "
214214
"tab expansion."
215215
msgstr ""
216216

217-
#: ../../library/textwrap.rst:203
217+
#: ../../library/textwrap.rst:204
218218
msgid ""
219219
"If :attr:`replace_whitespace` is false, newlines may appear in the middle of "
220220
"a line and cause strange output. For this reason, text should be split into "
221221
"paragraphs (using :meth:`str.splitlines` or similar) which are wrapped "
222222
"separately."
223223
msgstr ""
224224

225-
#: ../../library/textwrap.rst:211
225+
#: ../../library/textwrap.rst:212
226226
msgid ""
227227
"(default: ``True``) If true, whitespace at the beginning and ending of every "
228228
"line (after wrapping but before indenting) is dropped. Whitespace at the "
@@ -231,21 +231,21 @@ msgid ""
231231
"line is dropped."
232232
msgstr ""
233233

234-
#: ../../library/textwrap.rst:220
234+
#: ../../library/textwrap.rst:221
235235
msgid ""
236236
"(default: ``''``) String that will be prepended to the first line of wrapped "
237237
"output. Counts towards the length of the first line. The empty string is "
238238
"not indented."
239239
msgstr ""
240240

241-
#: ../../library/textwrap.rst:227
241+
#: ../../library/textwrap.rst:228
242242
msgid ""
243243
"(default: ``''``) String that will be prepended to all lines of wrapped "
244244
"output except the first. Counts towards the length of each line except the "
245245
"first."
246246
msgstr ""
247247

248-
#: ../../library/textwrap.rst:234
248+
#: ../../library/textwrap.rst:235
249249
msgid ""
250250
"(default: ``False``) If true, :class:`TextWrapper` attempts to detect "
251251
"sentence endings and ensure that sentences are always separated by exactly "
@@ -257,23 +257,23 @@ msgid ""
257257
"unable to detect the difference between \"Dr.\" in ::"
258258
msgstr ""
259259

260-
#: ../../library/textwrap.rst:245
260+
#: ../../library/textwrap.rst:246
261261
msgid "and \"Spot.\" in ::"
262262
msgstr ""
263263

264-
#: ../../library/textwrap.rst:249
264+
#: ../../library/textwrap.rst:250
265265
msgid ":attr:`fix_sentence_endings` is false by default."
266266
msgstr ""
267267

268-
#: ../../library/textwrap.rst:251
268+
#: ../../library/textwrap.rst:252
269269
msgid ""
270270
"Since the sentence detection algorithm relies on ``string.lowercase`` for "
271271
"the definition of \"lowercase letter\", and a convention of using two spaces "
272272
"after a period to separate sentences on the same line, it is specific to "
273273
"English-language texts."
274274
msgstr ""
275275

276-
#: ../../library/textwrap.rst:259
276+
#: ../../library/textwrap.rst:260
277277
msgid ""
278278
"(default: ``True``) If true, then words longer than :attr:`width` will be "
279279
"broken in order to ensure that no lines are longer than :attr:`width`. If "
@@ -282,7 +282,7 @@ msgid ""
282282
"order to minimize the amount by which :attr:`width` is exceeded.)"
283283
msgstr ""
284284

285-
#: ../../library/textwrap.rst:268
285+
#: ../../library/textwrap.rst:269
286286
msgid ""
287287
"(default: ``True``) If true, wrapping will occur preferably on whitespaces "
288288
"and right after hyphens in compound words, as it is customary in English. If "
@@ -292,25 +292,25 @@ msgid ""
292292
"always allow breaking hyphenated words."
293293
msgstr ""
294294

295-
#: ../../library/textwrap.rst:278
295+
#: ../../library/textwrap.rst:279
296296
msgid ""
297297
"(default: ``None``) If not ``None``, then the output will contain at most "
298298
"*max_lines* lines, with *placeholder* appearing at the end of the output."
299299
msgstr ""
300300

301-
#: ../../library/textwrap.rst:288
301+
#: ../../library/textwrap.rst:289
302302
msgid ""
303303
"(default: ``' [...]'``) String that will appear at the end of the output "
304304
"text if it has been truncated."
305305
msgstr ""
306306

307-
#: ../../library/textwrap.rst:294
307+
#: ../../library/textwrap.rst:295
308308
msgid ""
309309
":class:`TextWrapper` also provides some public methods, analogous to the "
310310
"module-level convenience functions:"
311311
msgstr ""
312312

313-
#: ../../library/textwrap.rst:299
313+
#: ../../library/textwrap.rst:300
314314
msgid ""
315315
"Wraps the single paragraph in *text* (a string) so every line is at most :"
316316
"attr:`width` characters long. All wrapping options are taken from instance "
@@ -319,7 +319,7 @@ msgid ""
319319
"returned list is empty."
320320
msgstr ""
321321

322-
#: ../../library/textwrap.rst:308
322+
#: ../../library/textwrap.rst:309
323323
msgid ""
324324
"Wraps the single paragraph in *text*, and returns a single string containing "
325325
"the wrapped paragraph."

0 commit comments

Comments
 (0)