Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit465278c

Browse files
committed
chore: resolve fuzzy entries and add simple translations
1 parent03c998f commit465278c

33 files changed

+3265
-2978
lines changed

‎c-api/function.po

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ msgstr "用於函式的 C 結構。"
3737
#:../../c-api/function.rst:22
3838
msgid""
3939
"This is an instance of :c:type:`PyTypeObject` and represents the Python "
40-
"function type. It is exposed to Python programmers as``types."
41-
"FunctionType``."
40+
"function type. It is exposed to Python programmers as "
41+
"``types.FunctionType``."
4242
msgstr""
4343
"這是個 :c:type:`PyTypeObject` 的實例,且代表了 Python 函式型別,Python 程式設"
4444
"計者可透過 ``types.FunctionType`` 使用它。"
4545

4646
#:../../c-api/function.rst:28
4747
msgid""
48-
"Return true if *o* is a function object (hastype :c:data:"
49-
"`PyFunction_Type`). The parameter must not be ``NULL``. This function "
50-
"always succeeds."
48+
"Return true if *o* is a function object (has "
49+
"type :c:data:`PyFunction_Type`). The parameter must not be ``NULL``. This "
50+
"functionalways succeeds."
5151
msgstr""
5252
"如果 *o* 是個函式物件(擁有 :c:data:`PyFunction_Type` 的型別)則回傳 true。參"
5353
"數必須不為 ``NULL``。此函式必能成功執行。"
@@ -63,28 +63,30 @@ msgstr ""
6363

6464
#:../../c-api/function.rst:37
6565
msgid""
66-
"The function's docstring and name are retrieved from the codeobject. :attr:"
67-
"`~function.__module__` is retrieved from *globals*. The argument defaults, "
68-
"annotations and closure are set to ``NULL``. :attr:`~function.__qualname__` "
69-
"is set to the same value as thecode object's :attr:`~codeobject."
70-
"co_qualname` field."
66+
"The function's docstring and name are retrieved from the code "
67+
"object. :attr:`~function.__module__` is retrieved from *globals*. The "
68+
"argument defaults,annotations and closure are set to "
69+
"``NULL``. :attr:`~function.__qualname__`is set to the same value as the "
70+
"code object's :attr:`~codeobject.co_qualname` field."
7171
msgstr""
72-
"函式的文件字串 (docstring) 和名稱是從程式碼物件所取得,:attr:`~function."
73-
"__module__` 是自 *globals* 所取得。引數預設值、標註 (annotation) 和閉包 "
74-
"(closure) 被設為 ``NULL``,:attr:`~function.__qualname__` 被設為和程式碼物"
72+
"函式的文件字串 (docstring) 和名稱是從程式碼物件所取"
73+
"得,:attr:`~function.__module__` 是自 *globals* 所取得。引數預設值、標註 "
74+
"(annotation) 和閉包 (closure) 被設為 "
75+
"``NULL``,:attr:`~function.__qualname__` 被設為和程式碼物"
7576
"件 :attr:`~codeobject.co_qualname` 欄位相同的值。"
7677

7778
#:../../c-api/function.rst:46
7879
msgid""
79-
"As :c:func:`PyFunction_New`, but also allows setting the function object's :"
80-
"attr:`~function.__qualname__` attribute. *qualname* should be a unicode "
81-
"object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute is set "
82-
"to the same value as the code object's :attr:`~codeobject.co_qualname` field."
80+
"As :c:func:`PyFunction_New`, but also allows setting the function "
81+
"object's :attr:`~function.__qualname__` attribute. *qualname* should be a "
82+
"unicode object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute "
83+
"is set to the same value as the code "
84+
"object's :attr:`~codeobject.co_qualname` field."
8385
msgstr""
84-
"和 :c:func:`PyFunction_New` 相似,但也允許函式物件 :attr:`~function."
85-
"__qualname__` 屬性的設定,*qualname* 應為一個 unicode物件或是 ``NULL``;如"
86-
" ``NULL``,:attr:`!__qualname__`屬性會被設為與程式碼物件 :attr:"
87-
"`~codeobject.co_qualname` 欄位相同的值。"
86+
"和 :c:func:`PyFunction_New` 相似,但也允許函式物"
87+
"件 :attr:`~function.__qualname__` 屬性的設定,*qualname* 應為一個 unicode"
88+
"件或是 ``NULL``;如為 ``NULL``,:attr:`!__qualname__`屬性會被設為與程式碼物"
89+
"件 :attr:`~codeobject.co_qualname` 欄位相同的值。"
8890

8991
#:../../c-api/function.rst:57
9092
msgid"Return the code object associated with the function object *op*."
@@ -100,8 +102,9 @@ msgid ""
100102
"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
101103
"*NULL*."
102104
msgstr""
103-
"回傳一個\\ :ref:`函式物件 <user-defined-funcs>` *op* 之 :attr:`~function."
104-
"__module__` 屬性的 :term:`borrowed reference`,它可以是 *NULL*。"
105+
"回傳一個\\ :ref:`函式物件 <user-defined-funcs>` *op* "
106+
"之 :attr:`~function.__module__` 屬性的 :term:`borrowed reference`,它可以是 "
107+
"*NULL*。"
105108

106109
#:../../c-api/function.rst:71
107110
msgid""
@@ -180,10 +183,10 @@ msgstr ""
180183

181184
#:../../c-api/function.rst:138
182185
msgid""
183-
"Clear watcher identified by *watcher_id* previously returnedfrom :c:func:"
184-
"`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
185-
"success, or ``-1`` and set an exception on error (e.g. if the given "
186-
"*watcher_id* was never registered.)"
186+
"Clear watcher identified by *watcher_id* previously returned "
187+
"from :c:func:`PyFunction_AddWatcher` for the current interpreter. Return "
188+
"``0`` onsuccess, or ``-1`` and set an exception on error (e.g. if the "
189+
"given*watcher_id* was never registered.)"
187190
msgstr""
188191

189192
#:../../c-api/function.rst:148
@@ -192,23 +195,23 @@ msgstr ""
192195

193196
#:../../c-api/function.rst:150
194197
msgid"``PyFunction_EVENT_CREATE``"
195-
msgstr""
198+
msgstr"``PyFunction_EVENT_CREATE``"
196199

197200
#:../../c-api/function.rst:151
198201
msgid"``PyFunction_EVENT_DESTROY``"
199-
msgstr""
202+
msgstr"``PyFunction_EVENT_DESTROY``"
200203

201204
#:../../c-api/function.rst:152
202205
msgid"``PyFunction_EVENT_MODIFY_CODE``"
203-
msgstr""
206+
msgstr"``PyFunction_EVENT_MODIFY_CODE``"
204207

205208
#:../../c-api/function.rst:153
206209
msgid"``PyFunction_EVENT_MODIFY_DEFAULTS``"
207-
msgstr""
210+
msgstr"``PyFunction_EVENT_MODIFY_DEFAULTS``"
208211

209212
#:../../c-api/function.rst:154
210213
msgid"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
211-
msgstr""
214+
msgstr"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
212215

213216
#:../../c-api/function.rst:161
214217
msgid"Type of a function watcher callback function."
@@ -217,9 +220,9 @@ msgstr ""
217220
#:../../c-api/function.rst:163
218221
msgid""
219222
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
220-
"then *new_value* will be ``NULL``. Otherwise, *new_value* will holda :term:"
221-
"`borrowed reference` to the new value that is about to be stored in *func* "
222-
"for the attribute that is being modified."
223+
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold "
224+
"a :term:`borrowed reference` to the new value that is about to be stored in "
225+
"*func*for the attribute that is being modified."
223226
msgstr""
224227

225228
#:../../c-api/function.rst:168
@@ -251,8 +254,8 @@ msgstr ""
251254
#:../../c-api/function.rst:185
252255
msgid""
253256
"If the callback sets an exception, it must return ``-1``; this exception "
254-
"will be printed as an unraisable exceptionusing :c:func:"
255-
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
257+
"will be printed as an unraisable exception "
258+
"using :c:func:`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
256259
msgstr""
257260

258261
#:../../c-api/function.rst:189

‎deprecations/pending-removal-in-3.15.po

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,22 @@ msgstr "引入系統 (import system):"
2525

2626
#:../../deprecations/pending-removal-in-3.15.rst:6
2727
msgid""
28-
"Setting :attr:`~module.__cached__` on a module while failing toset :attr:"
29-
"`__spec__.cached <importlib.machinery.ModuleSpec.cached>` is deprecated. In "
30-
"Python 3.15, :attr:`!__cached__` will cease to be set or take into "
31-
"consideration by the import system or standard library. (:gh:`97879`)"
28+
"Setting :attr:`~module.__cached__` on a module while failing to "
29+
"set :attr:`__spec__.cached <importlib.machinery.ModuleSpec.cached>` is "
30+
"deprecated. InPython 3.15, :attr:`!__cached__` will cease to be set or take "
31+
"intoconsideration by the import system or standard library. (:gh:`97879`)"
3232
msgstr""
3333
"在模組上設定 :attr:`~module.__cached__` 而沒有設定 :attr:`__spec__.cached "
3434
"<importlib.machinery.ModuleSpec.cached>` 的做法已被棄用。在 Python 3.15 中,"
3535
"引入系統或標準函式庫將不再設定或考慮 :attr:`!__cached__`。(:gh:`97879`)"
3636

3737
#:../../deprecations/pending-removal-in-3.15.rst:11
3838
msgid""
39-
"Setting :attr:`~module.__package__` on a module while failing to set :attr:"
40-
"`__spec__.parent <importlib.machinery.ModuleSpec.parent>` is deprecated. In "
41-
"Python 3.15, :attr:`!__package__` will cease to be set or take into "
42-
"consideration by the import system or standard library. (:gh:`97879`)"
39+
"Setting :attr:`~module.__package__` on a module while failing to "
40+
"set :attr:`__spec__.parent <importlib.machinery.ModuleSpec.parent>` is "
41+
"deprecated. In Python 3.15, :attr:`!__package__` will cease to be set or "
42+
"take into consideration by the import system or standard library. "
43+
"(:gh:`97879`)"
4344
msgstr""
4445
"在模組上設定 :attr:`~module.__package__` 而沒有設定 :attr:`__spec__.parent "
4546
"<importlib.machinery.ModuleSpec.parent>` 的做法已被棄用。在 Python 3.15 中,"
@@ -79,13 +80,12 @@ msgstr ""
7980
"cgi` 旗標已被棄用。"
8081

8182
#:../../deprecations/pending-removal-in-3.15.rst:32
82-
#,fuzzy
8383
msgid":mod:`importlib`:"
84-
msgstr":mod:`pathlib`:"
84+
msgstr":mod:`importlib`:"
8585

8686
#:../../deprecations/pending-removal-in-3.15.rst:34
8787
msgid"``load_module()`` method: use ``exec_module()`` instead."
88-
msgstr""
88+
msgstr"``load_module()`` method:請改用 ``exec_module()``。"
8989

9090
#:../../deprecations/pending-removal-in-3.15.rst:36
9191
msgid":class:`locale`:"
@@ -94,27 +94,29 @@ msgstr ":class:`locale`:"
9494
#:../../deprecations/pending-removal-in-3.15.rst:38
9595
msgid""
9696
"The :func:`~locale.getdefaultlocale` function has been deprecated since "
97-
"Python 3.11. Its removal was originally planned for Python 3.13 (:gh:"
98-
"`90817`), but has been postponed to Python 3.15. Use :func:`~locale."
99-
"getlocale`, :func:`~locale.setlocale`, and :func:`~locale.getencoding` "
100-
"instead. (Contributed by Hugo van Kemenade in :gh:`111187`.)"
97+
"Python 3.11. Its removal was originally planned for Python 3.13 "
98+
"(:gh:`90817`), but has been postponed to Python 3.15. "
99+
"Use :func:`~locale.getlocale`, :func:`~locale.setlocale`, "
100+
"and :func:`~locale.getencoding` instead. (Contributed by Hugo van Kemenade "
101+
"in :gh:`111187`.)"
101102
msgstr""
102103
":func:`~locale.getdefaultlocale` 已在 Python 3.11 中被棄用,原本計劃在 "
103-
"Python 3.13 中移除 (:gh:`90817`),但被延後至 Python 3.15。請改用 :func:"
104-
"`~locale.getlocale`、:func:`~locale.setlocale` 和 :func:`~locale."
105-
"getencoding`。 (由 Hugo van Kemenade 於 :gh:`111187` 貢獻。)"
104+
"Python 3.13 中移除 (:gh:`90817`),但被延後至 Python 3.15。請改"
105+
"用 :func:`~locale.getlocale`、:func:`~locale.setlocale` "
106+
"和 :func:`~locale.getencoding`。 (由 Hugo van Kemenade 於 :gh:`111187` 貢"
107+
"獻。)"
106108

107109
#:../../deprecations/pending-removal-in-3.15.rst:46
108110
msgid":mod:`pathlib`:"
109111
msgstr":mod:`pathlib`:"
110112

111113
#:../../deprecations/pending-removal-in-3.15.rst:48
112114
msgid""
113-
":meth:`.PurePath.is_reserved` has been deprecated since Python 3.13.Use :"
114-
"func:`os.path.isreserved` to detect reserved paths on Windows."
115+
":meth:`.PurePath.is_reserved` has been deprecated since Python 3.13. "
116+
"Use :func:`os.path.isreserved` to detect reserved paths on Windows."
115117
msgstr""
116-
":meth:`.PurePath.is_reserved` 已自 Python 3.13 被棄用。請用 :func:`os.path."
117-
"isreserved` 來偵測 Windows 上的保留路徑。"
118+
":meth:`.PurePath.is_reserved` 已自 Python 3.13 被棄用。"
119+
"用 :func:`os.path.isreserved` 來偵測 Windows 上的保留路徑。"
118120

119121
#:../../deprecations/pending-removal-in-3.15.rst:52
120122
msgid":mod:`platform`:"
@@ -156,20 +158,20 @@ msgid ""
156158
"in 3.15. (Contributed by Nikita Sobolev in :gh:`101866`.)"
157159
msgstr""
158160
":class:`types.CodeType`:自 3.10 起,存取 :attr:`~codeobject.co_lnotab` 已"
159-
"在 :pep:`626` 中被棄用,並計劃在 3.12 中移除,但只在 3.12中於適當時發出 :"
160-
"exc:`DeprecationWarning`。可能在 3.15 中移除。(由 Nikita Sobolev於 :gh:"
161-
"`101866` 貢獻。)"
161+
"在 :pep:`626` 中被棄用,並計劃在 3.12 中移除,但只在 3.12中於適當時發"
162+
"出 :exc:`DeprecationWarning`。可能在 3.15 中移除。(由 Nikita Sobolev "
163+
"於 :gh:`101866` 貢獻。)"
162164

163165
#:../../deprecations/pending-removal-in-3.15.rst:75
164166
msgid":mod:`typing`:"
165167
msgstr":mod:`typing`:"
166168

167169
#:../../deprecations/pending-removal-in-3.15.rst:77
168170
msgid""
169-
"The undocumented keyword argument syntax forcreating :class:`~typing."
170-
"NamedTuple` classes (e.g. ``Point = NamedTuple(\"Point\", x=int, y=int)``) "
171-
"has been deprecated since Python 3.13. Use the class-based syntax or the "
172-
"functional syntax instead."
171+
"The undocumented keyword argument syntax for "
172+
"creating :class:`~typing.NamedTuple` classes (e.g. ``Point = "
173+
"NamedTuple(\"Point\", x=int, y=int)``)has been deprecated since Python "
174+
"3.13. Use the class-based syntax or thefunctional syntax instead."
173175
msgstr""
174176
"用於建立 :class:`~typing.NamedTuple` 類別的未以文件記錄之關鍵字引數語法 "
175177
"(``Point = NamedTuple(\"Point\", x=int, y=int)``) 已自 Python 3.13 棄用。請改"
@@ -191,10 +193,11 @@ msgstr ":mod:`wave`:"
191193

192194
#:../../deprecations/pending-removal-in-3.15.rst:90
193195
msgid""
194-
"The :meth:`~wave.Wave_read.getmark`, :meth:`!setmark`, and :meth:`~wave."
195-
"Wave_read.getmarkers` methods of the :class:`~wave.Wave_read` and :class:"
196-
"`~wave.Wave_write` classes have been deprecated since Python 3.13."
196+
"The :meth:`~wave.Wave_read.getmark`, :meth:`!setmark`, "
197+
"and :meth:`~wave.Wave_read.getmarkers` methods of "
198+
"the :class:`~wave.Wave_read` and :class:`~wave.Wave_write` classes have been "
199+
"deprecated since Python 3.13."
197200
msgstr""
198-
"已棄用 :class:`~wave.Wave_read` 和 :class:`~wave.Wave_write`類別的 :meth:"
199-
"`~wave.Wave_read.getmark`、:meth:`!setmark`和 :meth:`~wave.Wave_read."
200-
"getmarkers` 方法自 Python 3.13 被棄用。"
201+
"已棄用 :class:`~wave.Wave_read` 和 :class:`~wave.Wave_write`類別"
202+
"的 :meth:`~wave.Wave_read.getmark`、:meth:`!setmark` "
203+
"和 :meth:`~wave.Wave_read.getmarkers` 方法自 Python 3.13 被棄用。"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp