Skip to content

Commit 8dc4a60

Browse files
feat: finish translate tkinter font (#814)
* feat: finish translate tkinter font * fix: update missing notes * Apply suggestions from code review Co-authored-by: Wei-Hsiang (Matt) Wang <[email protected]> * fix: update with reviewer's suggestion * fix: update with reviewer's suggestion --------- Co-authored-by: Wei-Hsiang (Matt) Wang <[email protected]>
1 parent 1013c65 commit 8dc4a60

File tree

1 file changed

+38
-31
lines changed

1 file changed

+38
-31
lines changed

library/tkinter.font.po

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@ msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
11-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
11+
"PO-Revision-Date: 2024-02-15 23:09+0800\n"
12+
"Last-Translator: RockLeon <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1414
"tw)\n"
1515
"Language: zh_TW\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
19+
"X-Generator: Poedit 3.4.2\n"
1920

2021
#: ../../library/tkinter.font.rst:2
2122
msgid ":mod:`tkinter.font` --- Tkinter font wrapper"
22-
msgstr ""
23+
msgstr ":mod:`tkinter.font` --- Tkinter 字型包裝器"
2324

2425
#: ../../library/tkinter.font.rst:8
2526
msgid "**Source code:** :source:`Lib/tkinter/font.py`"
@@ -30,10 +31,11 @@ msgid ""
3031
"The :mod:`tkinter.font` module provides the :class:`Font` class for creating "
3132
"and using named fonts."
3233
msgstr ""
34+
":mod:`tkinter.font` 模組提供類別 :class:`Font`,可以建立及使用已命名的字型。"
3335

3436
#: ../../library/tkinter.font.rst:15
3537
msgid "The different font weights and slants are:"
36-
msgstr ""
38+
msgstr "不同的字重 (font weights) 以及傾斜 (slant) 是:"
3739

3840
#: ../../library/tkinter.font.rst:24
3941
msgid ""
@@ -43,125 +45,130 @@ msgid ""
4345
"as a single object, rather than specifying a font by its attributes with "
4446
"each occurrence."
4547
msgstr ""
48+
"類別 :class:`Font` 代表一個已命名字型。*Font* 實例會被賦予一個的名字,也可以"
49+
"特指他們的字型家族 (font family)、字級 (size)、以及外觀設定。已命名字型是 Tk "
50+
"建立及辨識字型為單一物件的方式,而不是每次出現時特指字型的屬性。"
4651

4752
#: ../../library/tkinter.font.rst:30
4853
msgid "arguments:"
4954
msgstr "引數:"
5055

5156
#: ../../library/tkinter.font.rst:0
5257
msgid "*font* - font specifier tuple (family, size, options)"
53-
msgstr ""
58+
msgstr "*font* - 字型指定符號元組 (family, size, options)"
5459

5560
#: ../../library/tkinter.font.rst:0
5661
msgid "*name* - unique font name"
57-
msgstr ""
62+
msgstr "*name* - 獨特字型名稱"
5863

5964
#: ../../library/tkinter.font.rst:0
6065
msgid "*exists* - self points to existing named font if true"
61-
msgstr ""
66+
msgstr "*exists* - 如果存在的話,指向現有的已命名字型"
6267

6368
#: ../../library/tkinter.font.rst:36
6469
msgid "additional keyword options (ignored if *font* is specified):"
65-
msgstr ""
70+
msgstr "額外的關鍵字選項(若已指定 *font* 則會忽略):"
6671

6772
#: ../../library/tkinter.font.rst:0
6873
msgid "*family* - font family i.e. Courier, Times"
69-
msgstr ""
74+
msgstr "*family* - 字型家族,例如:Courier、Times"
7075

7176
#: ../../library/tkinter.font.rst:0
7277
msgid "*size* - font size"
73-
msgstr ""
78+
msgstr "*size* - 字級"
7479

7580
#: ../../library/tkinter.font.rst:0
7681
msgid "If *size* is positive it is interpreted as size in points."
77-
msgstr ""
82+
msgstr "如果 *size* 是正數則會直譯成以點 (point) 為單位的字級。"
7883

7984
#: ../../library/tkinter.font.rst:0
8085
msgid "If *size* is a negative number its absolute value is treated"
81-
msgstr ""
86+
msgstr "如果 *size* 是負數則會變成絕對值"
8287

8388
#: ../../library/tkinter.font.rst:0
8489
msgid "as size in pixels."
85-
msgstr ""
90+
msgstr "以像素 (pixel) 為單位的字級。"
8691

8792
#: ../../library/tkinter.font.rst:0
8893
msgid "*weight* - font emphasis (NORMAL, BOLD)"
89-
msgstr ""
94+
msgstr "*weight* - 強調字型,例如:NORMAL(標準體)、BOLD(粗體)"
9095

9196
#: ../../library/tkinter.font.rst:0
9297
msgid "*slant* - ROMAN, ITALIC"
93-
msgstr ""
98+
msgstr "*slant* - 例如:ROMAN(正體)、ITALIC(斜體)"
9499

95100
#: ../../library/tkinter.font.rst:0
96101
msgid "*underline* - font underlining (0 - none, 1 - underline)"
97-
msgstr ""
102+
msgstr "*underline* - 字型加上底線(0 - 無底線、 1 - 加上底線)"
98103

99104
#: ../../library/tkinter.font.rst:0
100105
msgid "*overstrike* - font strikeout (0 - none, 1 - strikeout)"
101-
msgstr ""
106+
msgstr "*overstrike* - 字型加上刪除線(0 - 無刪除線、 1 - 加上刪除線)"
102107

103108
#: ../../library/tkinter.font.rst:50
104109
msgid "Return the attributes of the font."
105-
msgstr ""
110+
msgstr "回傳字型的屬性。"
106111

107112
#: ../../library/tkinter.font.rst:54
108113
msgid "Retrieve an attribute of the font."
109-
msgstr ""
114+
msgstr "取得字型的其中一個屬性。"
110115

111116
#: ../../library/tkinter.font.rst:58
112117
msgid "Modify attributes of the font."
113-
msgstr ""
118+
msgstr "修改字體的多個屬性。"
114119

115120
#: ../../library/tkinter.font.rst:62
116121
msgid "Return new instance of the current font."
117-
msgstr ""
122+
msgstr "回傳目前字體的新實例。"
118123

119124
#: ../../library/tkinter.font.rst:66
120125
msgid ""
121126
"Return amount of space the text would occupy on the specified display when "
122127
"formatted in the current font. If no display is specified then the main "
123128
"application window is assumed."
124129
msgstr ""
130+
"回傳目前字型被格式化時,在特定顯示區域中文字所用的空間。若顯示區域沒有被指"
131+
"定,則會假定主程式視窗為顯示區域。"
125132

126133
#: ../../library/tkinter.font.rst:72
127134
msgid "Return font-specific data. Options include:"
128-
msgstr ""
135+
msgstr "回傳字型特定的資料。其選項包含:"
129136

130137
#: ../../library/tkinter.font.rst:76
131138
msgid "*ascent* - distance between baseline and highest point that a"
132-
msgstr ""
139+
msgstr "*ascent* - 基準線以及最高點的距離"
133140

134141
#: ../../library/tkinter.font.rst:76 ../../library/tkinter.font.rst:79
135142
msgid "character of the font can occupy"
136-
msgstr ""
143+
msgstr "在字型中的一個字母可以佔用的空間"
137144

138145
#: ../../library/tkinter.font.rst:79
139146
msgid "*descent* - distance between baseline and lowest point that a"
140-
msgstr ""
147+
msgstr "*descent* - 基準線以及最低點的距離"
141148

142149
#: ../../library/tkinter.font.rst:82
143150
msgid "*linespace* - minimum vertical separation necessary between any two"
144-
msgstr ""
151+
msgstr "*linespace* - 最小所需的垂直間距"
145152

146153
#: ../../library/tkinter.font.rst:82
147154
msgid "characters of the font that ensures no vertical overlap between lines."
148-
msgstr ""
155+
msgstr "在字型中的任兩個字母之間,確保跨行時不會有垂直重疊。"
149156

150157
#: ../../library/tkinter.font.rst:84
151158
msgid "*fixed* - 1 if font is fixed-width else 0"
152-
msgstr ""
159+
msgstr "*fixed* - 若字型為等寬 (fixed-width) 的則為 1,否則為 0"
153160

154161
#: ../../library/tkinter.font.rst:88
155162
msgid "Return the different font families."
156-
msgstr ""
163+
msgstr "回傳不同的字型家族。"
157164

158165
#: ../../library/tkinter.font.rst:92
159166
msgid "Return the names of defined fonts."
160-
msgstr ""
167+
msgstr "回傳已定義字型的名字。"
161168

162169
#: ../../library/tkinter.font.rst:96
163170
msgid "Return a :class:`Font` representation of a tk named font."
164-
msgstr ""
171+
msgstr "回傳一個 :class:`Font`,代表一個 tk 已命名字型。"
165172

166173
#: ../../library/tkinter.font.rst:98
167174
msgid "The *root* parameter was added."

0 commit comments

Comments
 (0)