Skip to content

Commit 5dfcd1d

Browse files
lilwad-0730claude
andcommitted
fix(library/calendar): match English rendering of links and dashes
Suppress self-referential links that the English page does not render (Calendar, TextCalendar, timegm, IllegalMonthError) with the ! prefix, and write range dashes as an en dash, since the zh_TW build does not convert -- the way the English build does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 909eb12 commit 5dfcd1d

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

‎library/calendar.po‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ msgid ""
6363
"the first day of the week. :const:`MONDAY` is ``0`` (the default), :const:"
6464
"`SUNDAY` is ``6``."
6565
msgstr ""
66-
"建立 :class:`Calendar` 物件。*firstweekday* 是一個指定一週第一天的整數,:"
66+
"建立 :class:`!Calendar` 物件。*firstweekday* 是一個指定一週第一天的整數,:"
6767
"const:`MONDAY` 是 ``0``\\ (預設值),:const:`SUNDAY` 是 ``6``。"
6868

6969
#: ../../library/calendar.rst:36
@@ -72,16 +72,16 @@ msgid ""
7272
"preparing the calendar data for formatting. This class doesn't do any "
7373
"formatting itself. This is the job of subclasses."
7474
msgstr ""
75-
":class:`Calendar` 物件提供一些方法來為日曆資料的格式化做準備。這個類別本身不"
75+
":class:`!Calendar` 物件提供一些方法來為日曆資料的格式化做準備。這個類別本身不"
7676
"做任何格式化,這是子類別的工作。"
7777

7878
#: ../../library/calendar.rst:41
7979
msgid ":class:`Calendar` instances have the following methods and attributes:"
80-
msgstr ":class:`Calendar` 實例有以下方法與屬性:"
80+
msgstr ":class:`!Calendar` 實例有以下方法與屬性:"
8181

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

8686
#: ../../library/calendar.rst:47
8787
msgid ""
@@ -93,7 +93,7 @@ msgstr ""
9393

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

9898
#: ../../library/calendar.rst:55
9999
msgid "Identical to reading the :attr:`~Calendar.firstweekday` property."
@@ -102,7 +102,7 @@ msgstr "等同於讀取 :attr:`~Calendar.firstweekday` 屬性。"
102102
#: ../../library/calendar.rst:59
103103
msgid ""
104104
"Set the first weekday to *firstweekday*, passed as an :class:`int` (0--6)."
105-
msgstr "將一週的第一天設定為 *firstweekday*,以 :class:`int` (0--6) 傳入。"
105+
msgstr "將一週的第一天設定為 *firstweekday*,以 :class:`int` (0–6) 傳入。"
106106

107107
#: ../../library/calendar.rst:61
108108
msgid "Identical to setting the :attr:`~Calendar.firstweekday` property."
@@ -124,7 +124,7 @@ msgid ""
124124
"month and all days before the start of the month or after the end of the "
125125
"month that are required to get a complete week."
126126
msgstr ""
127-
"回傳一個在 *year* 年 *month* (1--12) 月的疊代器。這個疊代器會回傳該月的所有日"
127+
"回傳一個在 *year* 年 *month* (1–12) 月的疊代器。這個疊代器會回傳該月的所有日"
128128
"期(:class:`datetime.date` 物件)以及在該月之前及之後用來組成完整一週的日期。"
129129

130130
#: ../../library/calendar.rst:80
@@ -230,7 +230,7 @@ msgstr "這個類別用來產生純文字的日曆。"
230230

231231
#: ../../library/calendar.rst:159
232232
msgid ":class:`TextCalendar` instances have the following methods:"
233-
msgstr ":class:`TextCalendar` 實例有以下方法:"
233+
msgstr ":class:`!TextCalendar` 實例有以下方法:"
234234

235235
#: ../../library/calendar.rst:164
236236
msgid ""
@@ -544,7 +544,7 @@ msgid ""
544544
"Returns the day of the week (``0`` is Monday) for *year* (``1970``--...), "
545545
"*month* (``1``--``12``), *day* (``1``--``31``)."
546546
msgstr ""
547-
"回傳 *year* 年 (``1970``--...) *month* 月 (``1``--``12``) *day* 日 (``1``--"
547+
"回傳 *year* 年 (``1970``–...) *month* 月 (``1``–``12``) *day* 日 (``1``–"
548548
"``31``) 是週幾(``0`` 是星期一)。"
549549

550550
#: ../../library/calendar.rst:402
@@ -603,7 +603,7 @@ msgid ""
603603
msgstr ""
604604
"一個跟日曆無關但方便的函式,它接受一個像 :mod:`time` 模組裡的 :func:`~time."
605605
"gmtime` 函式回傳的元組,並回傳對應的 Unix 時間戳,假設從 1970 開始及 POSIX 編"
606-
"碼。事實上,:func:`time.gmtime` 和 :func:`timegm` 是彼此相反的。"
606+
"碼。事實上,:func:`time.gmtime` 和 :func:`!timegm` 是彼此相反的。"
607607

608608
#: ../../library/calendar.rst:450
609609
msgid "The :mod:`!calendar` module exports the following data attributes:"
@@ -687,7 +687,7 @@ msgid ""
687687
":exc:`IllegalMonthError` is now also a subclass of :exc:`ValueError`. New "
688688
"code should avoid catching :exc:`IndexError`."
689689
msgstr ""
690-
":exc:`IllegalMonthError` 現在也是 :exc:`ValueError` 的子類別。新的程式碼應避"
690+
":exc:`!IllegalMonthError` 現在也是 :exc:`ValueError` 的子類別。新的程式碼應避"
691691
"免捕捉 :exc:`IndexError`。"
692692

693693
#: ../../library/calendar.rst:557

0 commit comments

Comments
 (0)