From 4d3d6ad90c36443f470e8a3ddc3857d8505711fa Mon Sep 17 00:00:00 2001 From: rockleona Date: Thu, 15 Feb 2024 15:06:54 +0800 Subject: [PATCH 1/5] feat: finish translate tkinter font --- library/tkinter.font.po | 69 +++++++++++++++++++++++------------------ 1 file changed, 38 insertions(+), 31 deletions(-) diff --git a/library/tkinter.font.po b/library/tkinter.font.po index 5c7ef10a733..3a5a5740189 100644 --- a/library/tkinter.font.po +++ b/library/tkinter.font.po @@ -8,18 +8,19 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-10-26 16:47+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2024-02-15 14:55+0800\n" +"Last-Translator: Li-Hung Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.4\n" #: ../../library/tkinter.font.rst:2 msgid ":mod:`tkinter.font` --- Tkinter font wrapper" -msgstr "" +msgstr ":mod:`tkinter.font` --- Tkinter 字型包裝器" #: ../../library/tkinter.font.rst:8 msgid "**Source code:** :source:`Lib/tkinter/font.py`" @@ -30,10 +31,11 @@ msgid "" "The :mod:`tkinter.font` module provides the :class:`Font` class for creating " "and using named fonts." msgstr "" +":mod:`tkinter.font` 模組提供類別 :class:`Font`,可以建立及使用已命名的字型。" #: ../../library/tkinter.font.rst:15 msgid "The different font weights and slants are:" -msgstr "" +msgstr "不同的字重 (font weights) 以及傾斜 (slant) 是:" #: ../../library/tkinter.font.rst:24 msgid "" @@ -43,6 +45,9 @@ msgid "" "as a single object, rather than specifying a font by its attributes with " "each occurrence." msgstr "" +"類別 :class:`Font` 代表一個已命名字型。*Font* 實例會被賦予一個的名字,也可以" +"特指他們的字型家族 (family)、字級 (size)、以及外觀設定。已命名字體是 Tk 建立" +"及辨識字型視為單一物件的方式,而不是每次出現時特指字型的屬性。" #: ../../library/tkinter.font.rst:30 msgid "arguments:" @@ -50,71 +55,71 @@ msgstr "引數:" #: ../../library/tkinter.font.rst:0 msgid "*font* - font specifier tuple (family, size, options)" -msgstr "" +msgstr "*font* - 字型說明符號元組(字型家族、字級、其他選項)" #: ../../library/tkinter.font.rst:0 msgid "*name* - unique font name" -msgstr "" +msgstr "*name* - 獨特字型名稱" #: ../../library/tkinter.font.rst:0 msgid "*exists* - self points to existing named font if true" -msgstr "" +msgstr "*exists* - 如果存在的話,指向現有的已命名字型" #: ../../library/tkinter.font.rst:36 msgid "additional keyword options (ignored if *font* is specified):" -msgstr "" +msgstr "額外的關鍵字選項(若已指定 *font* 則會忽略 )" #: ../../library/tkinter.font.rst:0 msgid "*family* - font family i.e. Courier, Times" -msgstr "" +msgstr "*family* - 字型家族,例如:Courier、Times" #: ../../library/tkinter.font.rst:0 msgid "*size* - font size" -msgstr "" +msgstr "*size* - 字級" #: ../../library/tkinter.font.rst:0 msgid "If *size* is positive it is interpreted as size in points." -msgstr "" +msgstr "如果 *size* 是正數則會直譯成點 (point) 作為字級。" #: ../../library/tkinter.font.rst:0 msgid "If *size* is a negative number its absolute value is treated" -msgstr "" +msgstr "如果 *size* 是負數則會變成絕對值" #: ../../library/tkinter.font.rst:0 msgid "as size in pixels." -msgstr "" +msgstr "以像素 (pixel) 作為字級。" #: ../../library/tkinter.font.rst:0 msgid "*weight* - font emphasis (NORMAL, BOLD)" -msgstr "" +msgstr "*weight* - 強調字型,例如:NORMAL(標準體)、BOLD(粗體)" #: ../../library/tkinter.font.rst:0 msgid "*slant* - ROMAN, ITALIC" -msgstr "" +msgstr "*slant* - 例如:ROMAN(正體)、ITALIC(斜體)" #: ../../library/tkinter.font.rst:0 msgid "*underline* - font underlining (0 - none, 1 - underline)" -msgstr "" +msgstr "*underline* - 字型加上底線(0 - 無底線、 1 - 加上底線)" #: ../../library/tkinter.font.rst:0 msgid "*overstrike* - font strikeout (0 - none, 1 - strikeout)" -msgstr "" +msgstr "*underline* - 字型加上刪除線(0 - 無刪除線、 1 - 加上刪除線)" #: ../../library/tkinter.font.rst:50 msgid "Return the attributes of the font." -msgstr "" +msgstr "回傳字型的屬性。" #: ../../library/tkinter.font.rst:54 msgid "Retrieve an attribute of the font." -msgstr "" +msgstr "取得字型的其中一個屬性。" #: ../../library/tkinter.font.rst:58 msgid "Modify attributes of the font." -msgstr "" +msgstr "修改字體的多個屬性。" #: ../../library/tkinter.font.rst:62 msgid "Return new instance of the current font." -msgstr "" +msgstr "回傳目前字體的新實例。" #: ../../library/tkinter.font.rst:66 msgid "" @@ -122,46 +127,48 @@ msgid "" "formatted in the current font. If no display is specified then the main " "application window is assumed." msgstr "" +"回傳目前字型被格式化時,在特定顯示區域中文字所用的空間。若顯示區域沒有被指" +"定,則會假定主程式視窗為顯示區域。" #: ../../library/tkinter.font.rst:72 msgid "Return font-specific data. Options include:" -msgstr "" +msgstr "回傳字型特定的資料。其選項包含:" #: ../../library/tkinter.font.rst:76 msgid "*ascent* - distance between baseline and highest point that a" -msgstr "" +msgstr "*ascent* - 基準線以及最高點的距離" #: ../../library/tkinter.font.rst:76 ../../library/tkinter.font.rst:79 msgid "character of the font can occupy" -msgstr "" +msgstr "在字型中的一個字母可以佔用的空間" #: ../../library/tkinter.font.rst:79 msgid "*descent* - distance between baseline and lowest point that a" -msgstr "" +msgstr "*descent* - 基準線以及最低點的距離" #: ../../library/tkinter.font.rst:82 msgid "*linespace* - minimum vertical separation necessary between any two" -msgstr "" +msgstr "*linespace* - 最小所需的垂直間距" #: ../../library/tkinter.font.rst:82 msgid "characters of the font that ensures no vertical overlap between lines." -msgstr "" +msgstr "在字型中的任兩個字母之間,確保跨行時不會有垂直重疊。" #: ../../library/tkinter.font.rst:84 msgid "*fixed* - 1 if font is fixed-width else 0" -msgstr "" +msgstr "*fixed* - 若字型為等寬的則為 1,否則為 0" #: ../../library/tkinter.font.rst:88 msgid "Return the different font families." -msgstr "" +msgstr "回傳不同的字型家族。" #: ../../library/tkinter.font.rst:92 msgid "Return the names of defined fonts." -msgstr "" +msgstr "回傳已定義字型的名字。" #: ../../library/tkinter.font.rst:96 msgid "Return a :class:`Font` representation of a tk named font." -msgstr "" +msgstr "回傳一個 :class:`Font`,代表一個 tk 命名的字型。" #: ../../library/tkinter.font.rst:98 msgid "The *root* parameter was added." From 3d45df97bc088f29fbf5449739aa2f3d2f2d2d76 Mon Sep 17 00:00:00 2001 From: rockleona Date: Thu, 15 Feb 2024 15:11:00 +0800 Subject: [PATCH 2/5] fix: update missing notes --- library/tkinter.font.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/tkinter.font.po b/library/tkinter.font.po index 3a5a5740189..67b6c48d635 100644 --- a/library/tkinter.font.po +++ b/library/tkinter.font.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-10-26 16:47+0000\n" -"PO-Revision-Date: 2024-02-15 14:55+0800\n" +"PO-Revision-Date: 2024-02-15 15:10+0800\n" "Last-Translator: Li-Hung Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -156,7 +156,7 @@ msgstr "在字型中的任兩個字母之間,確保跨行時不會有垂直重 #: ../../library/tkinter.font.rst:84 msgid "*fixed* - 1 if font is fixed-width else 0" -msgstr "*fixed* - 若字型為等寬的則為 1,否則為 0" +msgstr "*fixed* - 若字型為等寬 (fixed-width) 的則為 1,否則為 0" #: ../../library/tkinter.font.rst:88 msgid "Return the different font families." From 342f891c5bf1d90282768dde8de2f5bfa98ff4b1 Mon Sep 17 00:00:00 2001 From: RockLeon <34214497+rockleona@users.noreply.github.com> Date: Thu, 15 Feb 2024 21:48:24 +0800 Subject: [PATCH 3/5] Apply suggestions from code review Co-authored-by: Wei-Hsiang (Matt) Wang --- library/tkinter.font.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/tkinter.font.po b/library/tkinter.font.po index 67b6c48d635..fe814263e9f 100644 --- a/library/tkinter.font.po +++ b/library/tkinter.font.po @@ -46,8 +46,8 @@ msgid "" "each occurrence." msgstr "" "類別 :class:`Font` 代表一個已命名字型。*Font* 實例會被賦予一個的名字,也可以" -"特指他們的字型家族 (family)、字級 (size)、以及外觀設定。已命名字體是 Tk 建立" -"及辨識字型視為單一物件的方式,而不是每次出現時特指字型的屬性。" +"特指他們的字型家族 (font family)、字級 (size)、以及外觀設定。已命名字型是 Tk 建立" +"及辨識字型為單一物件的方式,而不是每次出現時特指字型的屬性。" #: ../../library/tkinter.font.rst:30 msgid "arguments:" @@ -67,7 +67,7 @@ msgstr "*exists* - 如果存在的話,指向現有的已命名字型" #: ../../library/tkinter.font.rst:36 msgid "additional keyword options (ignored if *font* is specified):" -msgstr "額外的關鍵字選項(若已指定 *font* 則會忽略 )" +msgstr "額外的關鍵字選項(若已指定 *font* 則會忽略):" #: ../../library/tkinter.font.rst:0 msgid "*family* - font family i.e. Courier, Times" @@ -103,7 +103,7 @@ msgstr "*underline* - 字型加上底線(0 - 無底線、 1 - 加上底線)" #: ../../library/tkinter.font.rst:0 msgid "*overstrike* - font strikeout (0 - none, 1 - strikeout)" -msgstr "*underline* - 字型加上刪除線(0 - 無刪除線、 1 - 加上刪除線)" +msgstr "*overstrike* - 字型加上刪除線(0 - 無刪除線、 1 - 加上刪除線)" #: ../../library/tkinter.font.rst:50 msgid "Return the attributes of the font." From c0580abfb72ae9ecc35360fa4b5c68de0ed06d77 Mon Sep 17 00:00:00 2001 From: rockleona Date: Thu, 15 Feb 2024 22:33:31 +0800 Subject: [PATCH 4/5] fix: update with reviewer's suggestion --- library/tkinter.font.po | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/library/tkinter.font.po b/library/tkinter.font.po index fe814263e9f..af91251767d 100644 --- a/library/tkinter.font.po +++ b/library/tkinter.font.po @@ -8,15 +8,15 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-10-26 16:47+0000\n" -"PO-Revision-Date: 2024-02-15 15:10+0800\n" -"Last-Translator: Li-Hung Wang \n" +"PO-Revision-Date: 2024-02-15 21:56+0800\n" +"Last-Translator: RockLeon \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4\n" +"X-Generator: Poedit 3.4.2\n" #: ../../library/tkinter.font.rst:2 msgid ":mod:`tkinter.font` --- Tkinter font wrapper" @@ -46,8 +46,8 @@ msgid "" "each occurrence." msgstr "" "類別 :class:`Font` 代表一個已命名字型。*Font* 實例會被賦予一個的名字,也可以" -"特指他們的字型家族 (font family)、字級 (size)、以及外觀設定。已命名字型是 Tk 建立" -"及辨識字型為單一物件的方式,而不是每次出現時特指字型的屬性。" +"特指他們的字型家族 (font family)、字級 (size)、以及外觀設定。已命名字型是 Tk " +"建立及辨識字型為單一物件的方式,而不是每次出現時特指字型的屬性。" #: ../../library/tkinter.font.rst:30 msgid "arguments:" @@ -55,7 +55,7 @@ msgstr "引數:" #: ../../library/tkinter.font.rst:0 msgid "*font* - font specifier tuple (family, size, options)" -msgstr "*font* - 字型說明符號元組(字型家族、字級、其他選項)" +msgstr "*font* - 字型指定符號元組 (family, size, options)" #: ../../library/tkinter.font.rst:0 msgid "*name* - unique font name" @@ -168,7 +168,7 @@ msgstr "回傳已定義字型的名字。" #: ../../library/tkinter.font.rst:96 msgid "Return a :class:`Font` representation of a tk named font." -msgstr "回傳一個 :class:`Font`,代表一個 tk 命名的字型。" +msgstr "回傳一個 :class:`Font`,代表一個 tk 已命名字型。" #: ../../library/tkinter.font.rst:98 msgid "The *root* parameter was added." From 6fba1d63e4985f0ae7bfeea5a254959b727028cd Mon Sep 17 00:00:00 2001 From: rockleona Date: Thu, 15 Feb 2024 23:09:40 +0800 Subject: [PATCH 5/5] fix: update with reviewer's suggestion --- library/tkinter.font.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/tkinter.font.po b/library/tkinter.font.po index af91251767d..0b2a275b28a 100644 --- a/library/tkinter.font.po +++ b/library/tkinter.font.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-10-26 16:47+0000\n" -"PO-Revision-Date: 2024-02-15 21:56+0800\n" +"PO-Revision-Date: 2024-02-15 23:09+0800\n" "Last-Translator: RockLeon \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -79,7 +79,7 @@ msgstr "*size* - 字級" #: ../../library/tkinter.font.rst:0 msgid "If *size* is positive it is interpreted as size in points." -msgstr "如果 *size* 是正數則會直譯成點 (point) 作為字級。" +msgstr "如果 *size* 是正數則會直譯成以點 (point) 為單位的字級。" #: ../../library/tkinter.font.rst:0 msgid "If *size* is a negative number its absolute value is treated" @@ -87,7 +87,7 @@ msgstr "如果 *size* 是負數則會變成絕對值" #: ../../library/tkinter.font.rst:0 msgid "as size in pixels." -msgstr "以像素 (pixel) 作為字級。" +msgstr "以像素 (pixel) 為單位的字級。" #: ../../library/tkinter.font.rst:0 msgid "*weight* - font emphasis (NORMAL, BOLD)"