Skip to content

Commit 909eb12

Browse files
lilwad-0730claude
andcommitted
Translate library/calendar.po
Translate the 13 remaining untranslated entries, covering the Calendar firstweekday property and accessors, the TextCalendar formatting methods, the IllegalMonthError change note, and the CLI color highlighting note. Closes #1264 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent fdfcaed commit 909eb12

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

‎library/calendar.po‎

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,30 +81,32 @@ msgstr ":class:`Calendar` 實例有以下方法與屬性:"
8181

8282
#: ../../library/calendar.rst:45
8383
msgid "The first weekday as an integer (0--6)."
84-
msgstr ""
84+
msgstr "以整數 (0--6) 表示的一週的第一天。"
8585

8686
#: ../../library/calendar.rst:47
8787
msgid ""
8888
"This property can also be set and read using :meth:`~Calendar."
8989
"setfirstweekday` and :meth:`~Calendar.getfirstweekday` respectively."
9090
msgstr ""
91+
"也可以分別使用 :meth:`~Calendar.setfirstweekday` 和 "
92+
":meth:`~Calendar.getfirstweekday` 來設定和讀取這個屬性。"
9193

9294
#: ../../library/calendar.rst:53
9395
msgid "Return an :class:`int` for the current first weekday (0--6)."
94-
msgstr ""
96+
msgstr "回傳目前設定的一週的第一天,為一個 :class:`int` (0--6)。"
9597

9698
#: ../../library/calendar.rst:55
9799
msgid "Identical to reading the :attr:`~Calendar.firstweekday` property."
98-
msgstr ""
100+
msgstr "等同於讀取 :attr:`~Calendar.firstweekday` 屬性。"
99101

100102
#: ../../library/calendar.rst:59
101103
msgid ""
102104
"Set the first weekday to *firstweekday*, passed as an :class:`int` (0--6)."
103-
msgstr ""
105+
msgstr "將一週的第一天設定為 *firstweekday*,以 :class:`int` (0--6) 傳入。"
104106

105107
#: ../../library/calendar.rst:61
106108
msgid "Identical to setting the :attr:`~Calendar.firstweekday` property."
107-
msgstr ""
109+
msgstr "等同於設定 :attr:`~Calendar.firstweekday` 屬性。"
108110

109111
#: ../../library/calendar.rst:65
110112
msgid ""
@@ -236,6 +238,8 @@ msgid ""
236238
"If *theday* is ``0``, return a string of spaces of the specified width, "
237239
"representing an empty day. The *weekday* parameter is unused."
238240
msgstr ""
241+
"回傳以給定的 *width* 格式化、代表單一日期的字串。如果 *theday* 為 ``0``,則回"
242+
"傳指定寬度的空白字串,代表沒有日期。*weekday* 參數不會被使用。"
239243

240244
#: ../../library/calendar.rst:171
241245
msgid ""
@@ -244,20 +248,27 @@ msgid ""
244248
"first weekday as specified in the constructor or set by the :meth:"
245249
"`setfirstweekday` method."
246250
msgstr ""
251+
"以不含換行字元的字串回傳一週。如果給定 *w*,它會指定置中的日期欄的寬度。這會"
252+
"依據在建構函式中指定或者透過 :meth:`setfirstweekday` 方法設定的一週的第一天來"
253+
"輸出。"
247254

248255
#: ../../library/calendar.rst:179
249256
msgid ""
250257
"Return a string representing the name of a single weekday formatted to the "
251258
"specified *width*. The *weekday* parameter is an integer representing the "
252259
"day of the week, where ``0`` is Monday and ``6`` is Sunday."
253260
msgstr ""
261+
"回傳以指定的 *width* 格式化、代表單一週幾名稱的字串。*weekday* 參數是代表週幾"
262+
"的整數,其中 ``0`` 是週一、``6`` 是週日。"
254263

255264
#: ../../library/calendar.rst:186
256265
msgid ""
257266
"Return a string containing the header row of weekday names, formatted with "
258267
"the given *width* for each column. The names depend on the locale settings "
259268
"and are padded to the specified width."
260269
msgstr ""
270+
"回傳包含週幾名稱標題列的字串,每一欄都以給定的 *width* 格式化。名稱取決於語系"
271+
"設定,並會填補至指定的寬度。"
261272

262273
#: ../../library/calendar.rst:193
263274
msgid ""
@@ -278,6 +289,9 @@ msgid ""
278289
"*theyear* and *themonth* parameters specify the year and month for the name "
279290
"to be formatted respectively."
280291
msgstr ""
292+
"回傳在指定的 *width* 內置中、代表月份名稱的字串。如果 *withyear* 為 "
293+
"``True``,輸出會包含年份。*theyear* 和 *themonth* 參數分別指定要格式化之名稱"
294+
"的年份和月份。"
281295

282296
#: ../../library/calendar.rst:210
283297
msgid "Print a month's calendar as returned by :meth:`formatmonth`."
@@ -673,6 +687,8 @@ msgid ""
673687
":exc:`IllegalMonthError` is now also a subclass of :exc:`ValueError`. New "
674688
"code should avoid catching :exc:`IndexError`."
675689
msgstr ""
690+
":exc:`IllegalMonthError` 現在也是 :exc:`ValueError` 的子類別。新的程式碼應避"
691+
"免捕捉 :exc:`IndexError`。"
676692

677693
#: ../../library/calendar.rst:557
678694
msgid "The invalid month number."
@@ -886,6 +902,8 @@ msgid ""
886902
"By default, today's date is highlighted in color and can be :ref:`controlled "
887903
"using environment variables <using-on-controlling-color>`."
888904
msgstr ""
905+
"預設情況下,今天的日期會以顏色標示,並且可以\\ :ref:`使用環境變數控制 "
906+
"<using-on-controlling-color>`。"
889907

890908
#: ../../library/calendar.rst:724
891909
msgid "*HTML-mode options:*"

0 commit comments

Comments
 (0)