Skip to content

Commit b52a345

Browse files
authored
Merge branch '3.10' into feat/trans-library-pdb
2 parents 5b99d4d + c0aebbd commit b52a345

File tree

493 files changed

+8501
-7230
lines changed

Some content is hidden

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

493 files changed

+8501
-7230
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
- name: Install Dependencies
1818
run: sudo apt-get install gettext
1919

20-
- name: Build
21-
run: VERSION=${{ github.event.pull_request.base.ref }} make
20+
- name: Validate
21+
run: VERSION=${{ github.event.pull_request.base.ref }} MODE=dummy make

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ VENV := ~/.venvs/python-docs-i18n/
2323
PYTHON := $(shell which python3)
2424
MODE := autobuild-dev-html
2525
BRANCH := $(or $(VERSION), $(shell git describe --contains --all HEAD))
26-
JOBS = 1
26+
JOBS := 4
2727

2828

2929
.PHONY: all

README.rst

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ po 檔皆為首要的翻譯對象。你也可以幫忙校對已經翻譯過的
228228
在 Glossary 中的譯文仍保持原文,並加註市面上的翻譯。
229229

230230
例如:``int``、``float``、``str``、``bytes``、``list``、``tuple``、
231-
``dict``、``set``、``iterator``、``generator``、``iterable``
231+
``dict``、``set``、``iterator``、``generator``、``iterable``、
232+
``pickle``
232233

233234

234235
括號的使用
@@ -313,46 +314,12 @@ rST 語法注意事項
313314
術語表 Glossary
314315
===============
315316

316-
為了讓翻譯保持統一,我們在這邊整理了一個術語列表,如果你有不同意的地方,歡迎\
317-
打開一個 issue 或是 pull request 一起討論。
318-
319-
===================== =====================
320-
原文 翻譯
321-
===================== =====================
322-
argument 引數
323-
attribute 屬性
324-
approximate 近似
325-
boolean boolean(布林)
326-
class class(類別)
327-
condition 條件
328-
contributor 貢獻者
329-
deprecated 已棄用
330-
dictionary dictionary(字典)
331-
element 元素
332-
exception 例外
333-
expression 運算式
334-
float float(浮點數)
335-
function 函式
336-
import import(不翻譯)
337-
index 索引
338-
instance 實例
339-
int int(整數)
340-
interpreter 直譯器
341-
iterate 疊代
342-
list list(串列)
343-
loop 迴圈
344-
method method(方法)
345-
module module(模組)
346-
object 物件
347-
operand 運算元
348-
operator 運算子
349-
parameter 參數
350-
prompt 提示字元
351-
return 回傳
352-
set set(集合)
353-
statement 陳述式
354-
type 型別
355-
===================== =====================
317+
為了讓翻譯保持統一,我們整理了一份 `術語列表
318+
<https://airtable.com/shrHlRP52bZ9C7aY3/tbl7dhPe9Ph9XIAy3>`_ \
319+
如果翻譯過程中你覺得需要術語列表有所缺漏,請填寫 `術語列表擴充表單 \
320+
<https://airtable.com/shr6sU4HHSKAz0Y7J>`_。新增的術語,將會於每次\
321+
Sprint中共同討論是否合併進術語列表。
322+
356323

357324

358325
問題回報與討論
@@ -361,7 +328,7 @@ type 型別
361328
如果有需要共同討論的問題,請開設一個新的 Issue_。如果是翻譯上遇到困難需要\
362329
幫助,則可以使用 Telegram_。
363330

364-
.. _Issue: https://github.com/python-doc-tw/python-docs-zh-tw/issues
331+
.. _Issue: https://github.com/python/python-docs-zh-tw/issues
365332
.. _Telegram: https://t.me/PyDocTW
366333

367334
另外,此翻譯的 coordinator 為 `mattwang44 <https://github.com/mattwang44>`_ 和 \

TRANSLATORS

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,36 @@ project, it may not be complete but you're always welcome to add your name
66
here by making a pull request if you've contributed this project in any way.
77
Kudos to any one who've contributed to this project!
88

9-
This list includes those who contributed on Transifex before May 2018, which
10-
is before the transition of the workflow from Transifex to GitHub. The names
11-
listed here are followed by the translator's Transifex user ID quoted using
12-
angle brackets, feel free to remove it if you prefer not to disclose it.
9+
Adrian Liaw (Wey-Han Liaw)
10+
Allen Wu (allen91wu)
11+
Benson Chen
12+
Grimmer
13+
Liang Bo Wang
14+
Patina Ho
15+
Scott Chang
16+
Sonia Wu
17+
Steven Hsu (StevenHsuYL)
18+
Taihsiang Ho (tai271828)
19+
Tsai, Chia-Wen
20+
Wei-Hsiang (Matt) Wang
21+
Wilson Wang (Josix)
22+
Yu Chun Yang
23+
Jason (chairco)
24+
chinghao.liu (chinghao-tw)
25+
jordanSu
26+
meowmeowcat
27+
nickbanana
28+
nienzu
29+
ttnppedr
30+
yichung
31+
zztin
32+
戴靖
33+
34+
35+
This list below includes those who contributed on Transifex before May 2018,
36+
which is before the transition of the workflow from Transifex to GitHub. The
37+
names listed here are followed by the translator's Transifex user ID quoted
38+
using angle brackets, feel free to remove it if you prefer not to disclose it.
1339

1440

1541
Liang-Bo Wang <ccwang002>

about.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:

bugs.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:

c-api/abstract.po

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:
6-
# aminzai <[email protected]>, 2015
6+
# aminzai <[email protected]>, 2017
7+
# Matt Wang <[email protected]>, 2021
8+
#
79
msgid ""
810
msgstr ""
911
"Project-Id-Version: Python 3.10\n"
1012
"Report-Msgid-Bugs-To: \n"
1113
"POT-Creation-Date: 2018-06-26 18:54+0800\n"
12-
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
13-
"Last-Translator: aminzai <lagunawang@gmail.com>\n"
14+
"PO-Revision-Date: 2021-12-09 21:20+0800\n"
15+
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1416
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1517
"tw)\n"
1618
"Language: zh_TW\n"
1719
"MIME-Version: 1.0\n"
1820
"Content-Type: text/plain; charset=UTF-8\n"
1921
"Content-Transfer-Encoding: 8bit\n"
2022
"Plural-Forms: nplurals=1; plural=0;\n"
23+
"X-Generator: Poedit 3.0\n"
2124

2225
#: ../../c-api/abstract.rst:7
2326
msgid "Abstract Objects Layer"
24-
msgstr "抽象物件層"
27+
msgstr "抽象物件層 (Abstract Objects Layer)"
2528

2629
#: ../../c-api/abstract.rst:9
2730
msgid ""
@@ -30,6 +33,9 @@ msgid ""
3033
"or all sequence types). When used on object types for which they do not "
3134
"apply, they will raise a Python exception."
3235
msgstr ""
36+
"本章中的函式與 Python 物件相互作用,無論其型別、或具有廣泛類別的物件型別(例"
37+
"如所有數值型別或所有序列型別)。當使用於不適用的物件型別時,他們會引發一個 "
38+
"Python 異常 (exception)。"
3339

3440
#: ../../c-api/abstract.rst:14
3541
msgid ""
@@ -38,3 +44,5 @@ msgid ""
3844
"`PyList_New`, but whose items have not been set to some non-\\ ``NULL`` "
3945
"value yet."
4046
msgstr ""
47+
"這些函式是不可能用於未正確初始化的物件(例如一個由 :c:func:`PyList_New` 建立"
48+
"的 list 物件),而其中的項目沒有被設為一些非 ``NULL`` 的值。"

c-api/allocation.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:

c-api/apiabiversion.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:

c-api/arg.po

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:
@@ -1011,35 +1011,35 @@ msgstr "將一個 C 的 :c:type:`short int` 轉換成 Python 整數物件。"
10111011

10121012
#: ../../c-api/arg.rst:596
10131013
msgid "Convert a C :c:type:`long int` to a Python integer object."
1014-
msgstr "將一個 C 的 C :c:type:`long int` 轉換成 Python 整數物件。"
1014+
msgstr "將一個 C 的 :c:type:`long int` 轉換成 Python 整數物件。"
10151015

10161016
#: ../../c-api/arg.rst:599
10171017
msgid "Convert a C :c:type:`unsigned char` to a Python integer object."
1018-
msgstr "將一個 C 的 C :c:type:`unsigned char` 轉換成 Python 整數物件。"
1018+
msgstr "將一個 C 的 :c:type:`unsigned char` 轉換成 Python 整數物件。"
10191019

10201020
#: ../../c-api/arg.rst:602
10211021
msgid "Convert a C :c:type:`unsigned short int` to a Python integer object."
10221022
msgstr "將一個 C 的 :c:type:`unsigned short int` 轉換成 Python 整數物件。"
10231023

10241024
#: ../../c-api/arg.rst:605
10251025
msgid "Convert a C :c:type:`unsigned int` to a Python integer object."
1026-
msgstr "將一個 C 的 C :c:type:`unsigned int` 轉換成 Python 整數物件。"
1026+
msgstr "將一個 C 的 :c:type:`unsigned int` 轉換成 Python 整數物件。"
10271027

10281028
#: ../../c-api/arg.rst:608
10291029
msgid "Convert a C :c:type:`unsigned long` to a Python integer object."
1030-
msgstr "將一個 C 的 C :c:type:`unsigned long` 轉換成 Python 整數物件。"
1030+
msgstr "將一個 C 的 :c:type:`unsigned long` 轉換成 Python 整數物件。"
10311031

10321032
#: ../../c-api/arg.rst:611
10331033
msgid "Convert a C :c:type:`long long` to a Python integer object."
1034-
msgstr "將一個 C 的 C :c:type:`long long` 轉換成 Python 整數物件。"
1034+
msgstr "將一個 C 的 :c:type:`long long` 轉換成 Python 整數物件。"
10351035

10361036
#: ../../c-api/arg.rst:614
10371037
msgid "Convert a C :c:type:`unsigned long long` to a Python integer object."
10381038
msgstr "將一個 C 的 :c:type:`unsigned long long` 轉換成 Python 整數物件。"
10391039

10401040
#: ../../c-api/arg.rst:617
10411041
msgid "Convert a C :c:type:`Py_ssize_t` to a Python integer."
1042-
msgstr ""
1042+
msgstr "將一個 C 的 :c:type:`Py_ssize_t` 轉換成 Python 整數。"
10431043

10441044
#: ../../c-api/arg.rst:621
10451045
msgid "``c`` (:class:`bytes` of length 1) [char]"
@@ -1059,11 +1059,11 @@ msgstr ""
10591059

10601060
#: ../../c-api/arg.rst:628
10611061
msgid "Convert a C :c:type:`double` to a Python floating point number."
1062-
msgstr ""
1062+
msgstr "將一個 C 的 :c:type:`double` 轉換成 Python 浮點數。"
10631063

10641064
#: ../../c-api/arg.rst:631
10651065
msgid "Convert a C :c:type:`float` to a Python floating point number."
1066-
msgstr ""
1066+
msgstr "將一個 C 的 :c:type:`float` 轉換成 Python 浮點數。"
10671067

10681068
#: ../../c-api/arg.rst:634
10691069
msgid "``D`` (:class:`complex`) [Py_complex \\*]"

c-api/bool.po

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:
66
# Ching-Lung Chuang, 2015
7+
# Matt Wang <[email protected]>, 2021
8+
#
79
msgid ""
810
msgstr ""
911
"Project-Id-Version: Python 3.10\n"
1012
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
12-
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
13-
"Last-Translator: Ching-Lung Chuang\n"
13+
"POT-Creation-Date: 2021-06-29 12:56+0000\n"
14+
"PO-Revision-Date: 2021-12-09 20:47+0800\n"
15+
"Last-Translator: Matt Wang <[email protected]>\n"
1416
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1517
"tw)\n"
1618
"Language: zh_TW\n"
1719
"MIME-Version: 1.0\n"
1820
"Content-Type: text/plain; charset=UTF-8\n"
1921
"Content-Transfer-Encoding: 8bit\n"
2022
"Plural-Forms: nplurals=1; plural=0;\n"
23+
"X-Generator: Poedit 3.0\n"
2124

2225
#: ../../c-api/bool.rst:6
2326
msgid "Boolean Objects"
24-
msgstr "布林物件"
27+
msgstr "Boolean(布林)物件"
2528

2629
#: ../../c-api/bool.rst:8
2730
msgid ""
@@ -30,39 +33,49 @@ msgid ""
3033
"normal creation and deletion functions don't apply to booleans. The "
3134
"following macros are available, however."
3235
msgstr ""
36+
"Python 中的 boolean 是以整數子類別化來實現的。只有 :const:`Py_False` 和 :"
37+
"const:`Py_True` 兩個 boolean。因此一般的建立和刪除函式並不適用於 boolean。但"
38+
"下列巨集 (macro) 是可用的。"
3339

3440
#: ../../c-api/bool.rst:16
3541
msgid ""
3642
"Return true if *o* is of type :c:data:`PyBool_Type`. This function always "
3743
"succeeds."
3844
msgstr ""
45+
"如果 *o* 的型別為 :c:data:`PyBool_Type` 則回傳真值。此函式總是會成功執行。"
3946

4047
#: ../../c-api/bool.rst:22
4148
msgid ""
4249
"The Python ``False`` object. This object has no methods. It needs to be "
4350
"treated just like any other object with respect to reference counts."
4451
msgstr ""
52+
"Python 的 ``False`` 物件。此物件沒有任何方法。在參照 (reference) 計數上必須有"
53+
"著和其他物件一樣的處理方式。"
4554

4655
#: ../../c-api/bool.rst:28
4756
msgid ""
4857
"The Python ``True`` object. This object has no methods. It needs to be "
4958
"treated just like any other object with respect to reference counts."
5059
msgstr ""
60+
"Python 的 ``True`` 物件。此物件沒有任何方法。在參照計數上必須有著和其他物件一"
61+
"樣的處理方式。"
5162

5263
#: ../../c-api/bool.rst:34
5364
msgid ""
5465
"Return :const:`Py_False` from a function, properly incrementing its "
5566
"reference count."
56-
msgstr ""
67+
msgstr "從函式回傳 :const:`Py_False`\\ ,並適當的增加它的參照計數。"
5768

5869
#: ../../c-api/bool.rst:40
5970
msgid ""
6071
"Return :const:`Py_True` from a function, properly incrementing its reference "
6172
"count."
62-
msgstr ""
73+
msgstr "從函式回傳 :const:`Py_True`\\ ,並適當的增加它的參照計數。"
6374

6475
#: ../../c-api/bool.rst:46
6576
msgid ""
6677
"Return a new reference to :const:`Py_True` or :const:`Py_False` depending on "
6778
"the truth value of *v*."
6879
msgstr ""
80+
"根據 *v* 的實際值來回傳一個 :const:`Py_True` 或者 :const:`Py_False` 的新參"
81+
"照。"

c-api/buffer.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:
@@ -20,7 +20,7 @@ msgstr ""
2020

2121
#: ../../c-api/buffer.rst:11
2222
msgid "Buffer Protocol"
23-
msgstr ""
23+
msgstr "緩衝協定 (Buffer Protocol)"
2424

2525
#: ../../c-api/buffer.rst:18
2626
msgid ""

c-api/bytearray.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:

c-api/bytes.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:

c-api/call.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#

0 commit comments

Comments
 (0)