diff --git a/.scripts/README.md b/.scripts/README.md index fd25353962..73571101e9 100644 --- a/.scripts/README.md +++ b/.scripts/README.md @@ -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 ``` diff --git a/focused_terminology_dictionary.csv b/focused_terminology_dictionary.csv index c9e7e17fd6..6c890ff578 100644 --- a/focused_terminology_dictionary.csv +++ b/focused_terminology_dictionary.csv @@ -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 diff --git a/glossary.po b/glossary.po index 48c7e28cb0..18ffbb20e3 100644 --- a/glossary.po +++ b/glossary.po @@ -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" @@ -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" @@ -2981,7 +2983,7 @@ msgstr "" #: ../../glossary.rst:1302 msgid "token" -msgstr "" +msgstr "token" #: ../../glossary.rst:1305 msgid "" @@ -2989,12 +2991,16 @@ msgid "" "` (also called the *tokenizer*). Names, numbers, strings, " "operators, newlines and similar are represented by tokens." msgstr "" +"原始碼的小單位,由 :ref:`詞法分析器 ` (也稱為 *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" diff --git a/terminology_dictionary.csv b/terminology_dictionary.csv index 54837338b7..216acba515 100644 --- a/terminology_dictionary.csv +++ b/terminology_dictionary.csv @@ -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