Skip to content

Commit e367c7f

Browse files
Copilotjosixmattwang44github-actions[bot]
authored
Translate untranslated entries from PR 1109 (Sync with CPython 3.13) (#1110)
Co-authored-by: josix <[email protected]> Co-authored-by: mattwang44 <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: Josix <[email protected]>
1 parent 7a66339 commit e367c7f

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

.scripts/README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,11 @@
22

33
Useful scripts for the translation.
44

5-
## Translation Dictionary
6-
7-
The repository includes terminology dictionaries (`terminology_dictionary.csv` and `focused_terminology_dictionary.csv`) that provide standard translations for important Python terms to maintain consistency across documents. These dictionaries are maintained using LLM knowledge and can be referenced by translators.
8-
9-
See `TERMINOLOGY_DICTIONARY.md` for detailed usage and integration with translation workflow.
10-
115
## From Google Translation
126

137
Translate all untranslated entries of the given .po file with Google Translate.
148

9+
1510
```sh
1611
.scripts/google_translate.sh library/csv.po
1712
```

focused_terminology_dictionary.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,6 @@ sequence,序列,512,154,Medium,Common Terms,glossary.po; tutorial/classes.po; re
117117
slice,切片,515,155,Medium,Common Terms,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
118118
special method,特殊方法,518,156,Medium,Common Terms,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
119119
statement,陳述式,521,157,Medium,Common Terms,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
120+
token,token,5,3,High,Parsing Terms,glossary.po; library/token.po; library/tokenize.po
121+
lexical analyzer,詞法分析器,3,2,Medium,Parsing Terms,glossary.po; library/tokenize.po
122+
tokenizer,tokenizer,4,2,Medium,Parsing Terms,glossary.po; library/tokenize.po

glossary.po

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,11 +1798,11 @@ msgstr ""
17981798

17991799
#: ../../glossary.rst:789
18001800
msgid "lexical analyzer"
1801-
msgstr ""
1801+
msgstr "lexical analyzer(詞法分析器)"
18021802

18031803
#: ../../glossary.rst:792
18041804
msgid "Formal name for the *tokenizer*; see :term:`token`."
1805-
msgstr ""
1805+
msgstr "tokenizer 的正式名稱;請參閱 :term:`token`。"
18061806

18071807
#: ../../glossary.rst:793
18081808
msgid "list"
@@ -2663,6 +2663,8 @@ msgid ""
26632663
"defined values; the number of references to an object, and how that number "
26642664
"is affected by Python code, may be different between versions."
26652665
msgstr ""
2666+
"在 :term:`CPython` 中,參照計數不被視為穩定或明確定義的值;對物件的參照數量,"
2667+
"以及該數量如何受到 Python 程式碼的影響,在不同版本之間可能會有所不同。"
26662668

26672669
#: ../../glossary.rst:1170
26682670
msgid "regular package"
@@ -2981,20 +2983,24 @@ msgstr ""
29812983

29822984
#: ../../glossary.rst:1302
29832985
msgid "token"
2984-
msgstr ""
2986+
msgstr "token"
29852987

29862988
#: ../../glossary.rst:1305
29872989
msgid ""
29882990
"A small unit of source code, generated by the :ref:`lexical analyzer "
29892991
"<lexical>` (also called the *tokenizer*). Names, numbers, strings, "
29902992
"operators, newlines and similar are represented by tokens."
29912993
msgstr ""
2994+
"原始碼的小單位,由 :ref:`詞法分析器 <lexical>` (也稱為 *tokenizer*)產生。名"
2995+
"稱、數字、字串、運算子、換行符號等都以 token 表示。"
29922996

29932997
#: ../../glossary.rst:1310
29942998
msgid ""
29952999
"The :mod:`tokenize` module exposes Python's lexical analyzer. The :mod:"
29963000
"`token` module contains information on the various types of tokens."
29973001
msgstr ""
3002+
":mod:`tokenize` 模組公開了 Python 的詞法分析器。:mod:`token` 模組包含各種 token "
3003+
"類型的資訊。"
29983004

29993005
#: ../../glossary.rst:1313
30003006
msgid "triple-quoted string"

terminology_dictionary.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,6 @@ execution,執行,779,243,library/core.po,library,glossary.po; tutorial/classes.p
195195
runtime,runtime,782,244,library/core.po,library,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
196196
compile time,編譯時期,785,245,library/core.po,library,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
197197
import time,引入時期,788,246,library/core.po,library,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
198+
token,token,5,3,glossary.po,,glossary.po; library/token.po; library/tokenize.po
199+
lexical analyzer,詞法分析器,3,2,glossary.po,,glossary.po; library/tokenize.po
200+
tokenizer,tokenizer,4,2,glossary.po,,glossary.po; library/tokenize.po

0 commit comments

Comments
 (0)