Skip to content

Translate untranslated entries from PR 1109 (Sync with CPython 3.13) #1110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@

Useful scripts for the translation.

## Translation Dictionary

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.

See `TERMINOLOGY_DICTIONARY.md` for detailed usage and integration with translation workflow.

## From Google Translation

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


```sh
.scripts/google_translate.sh library/csv.po
```
Expand Down
3 changes: 3 additions & 0 deletions focused_terminology_dictionary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,6 @@ sequence,序列,512,154,Medium,Common Terms,glossary.po; tutorial/classes.po; re
slice,切片,515,155,Medium,Common Terms,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
special method,特殊方法,518,156,Medium,Common Terms,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
statement,陳述式,521,157,Medium,Common Terms,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
token,token,5,3,High,Parsing Terms,glossary.po; library/token.po; library/tokenize.po
lexical analyzer,詞法分析器,3,2,Medium,Parsing Terms,glossary.po; library/tokenize.po
tokenizer,tokenizer,4,2,Medium,Parsing Terms,glossary.po; library/tokenize.po
12 changes: 9 additions & 3 deletions glossary.po
Original file line number Diff line number Diff line change
Expand Up @@ -1798,11 +1798,11 @@ msgstr ""

#: ../../glossary.rst:789
msgid "lexical analyzer"
msgstr ""
msgstr "lexical analyzer(詞法分析器)"

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

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

#: ../../glossary.rst:1170
msgid "regular package"
Expand Down Expand Up @@ -2981,20 +2983,24 @@ msgstr ""

#: ../../glossary.rst:1302
msgid "token"
msgstr ""
msgstr "token"

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

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

#: ../../glossary.rst:1313
msgid "triple-quoted string"
Expand Down
3 changes: 3 additions & 0 deletions terminology_dictionary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,6 @@ execution,執行,779,243,library/core.po,library,glossary.po; tutorial/classes.p
runtime,runtime,782,244,library/core.po,library,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
compile time,編譯時期,785,245,library/core.po,library,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
import time,引入時期,788,246,library/core.po,library,glossary.po; tutorial/classes.po; reference/datamodel.po; library/functions.po; howto/descriptor.po
token,token,5,3,glossary.po,,glossary.po; library/token.po; library/tokenize.po
lexical analyzer,詞法分析器,3,2,glossary.po,,glossary.po; library/tokenize.po
tokenizer,tokenizer,4,2,glossary.po,,glossary.po; library/tokenize.po