@@ -238,13 +238,13 @@ msgstr ":class:`!HTMLCalendar` 实例有以下方法:"
238238msgid ""
239239"Return a month's calendar as an HTML table. If *withyear* is true the year "
240240"will be included in the header, otherwise just the month name will be used."
241- msgstr ""
241+ msgstr "返回一个 HTML 表格作为指定年月的日历。 *withyear* 为真,则年份将会包含在表头,否则只显示月份。 "
242242
243243#: ../../library/calendar.rst:186
244244msgid ""
245245"Return a year's calendar as an HTML table. *width* (defaulting to 3) "
246246"specifies the number of months per row."
247- msgstr ""
247+ msgstr "返回一个 HTML 表格作为指定年份的日历。 *width* (默认为3) 用于规定每一行显示月份的数量。 "
248248
249249#: ../../library/calendar.rst:192
250250msgid ""
@@ -254,25 +254,28 @@ msgid ""
254254" be used. *encoding* specifies the encoding to be used for the output "
255255"(defaulting to the system default encoding)."
256256msgstr ""
257+ "返回一个完整的 HTML 页面作为指定年份的日历。 *width*(默认为3) 用于规定每一行显示的月份数量。 *css* "
258+ "为层叠样式表的名字。如果不使用任何层叠样式表,可以使用 :const:`None` 。 *encoding* 为输出页面的编码 "
259+ "(默认为系统的默认编码)。"
257260
258261#: ../../library/calendar.rst:199
259262msgid ""
260263":class:`!HTMLCalendar` has the following attributes you can override to "
261264"customize the CSS classes used by the calendar:"
262- msgstr ""
265+ msgstr ":class:`!HTMLCalendar` 有以下属性,你可以重载它们来自定义应用日历的样式。 "
263266
264267#: ../../library/calendar.rst:204
265268msgid ""
266269"A list of CSS classes used for each weekday. The default class list is::"
267- msgstr ""
270+ msgstr "一个对应星期一到星期天的 CSS class 列表。默认列表为 :: "
268271
269272#: ../../library/calendar.rst:208
270273msgid "more styles can be added for each day::"
271- msgstr ""
274+ msgstr "可以向每天加入其它样式 :: "
272275
273276#: ../../library/calendar.rst:212
274277msgid "Note that the length of this list must be seven items."
275- msgstr ""
278+ msgstr "需要注意的是,列表的长度必须为7。 "
276279
277280#: ../../library/calendar.rst:217
278281msgid "The CSS class for a weekday occurring in the previous or coming month."
@@ -317,7 +320,7 @@ msgstr ""
317320
318321#: ../../library/calendar.rst:268
319322msgid "Here is an example how :class:`!HTMLCalendar` can be customized::"
320- msgstr ""
323+ msgstr "接下来是一个如何自定义 :class:`!HTMLCalendar` 的示例 :: "
321324
322325#: ../../library/calendar.rst:280
323326msgid ""
@@ -346,7 +349,7 @@ msgstr ""
346349#: ../../library/calendar.rst:300
347350msgid ""
348351"For simple text calendars this module provides the following functions."
349- msgstr ""
352+ msgstr "对于简单的文本日历,这个模块提供了以下方法。 "
350353
351354#: ../../library/calendar.rst:304
352355msgid ""
@@ -356,15 +359,18 @@ msgid ""
356359"are provided for convenience. For example, to set the first weekday to "
357360"Sunday::"
358361msgstr ""
362+ "设置每一周的开始(``0`` 表示星期一,``6`` 表示星期天)。calendar还提供了 :const:`MONDAY`, "
363+ ":const:`TUESDAY`, :const:`WEDNESDAY`, :const:`THURSDAY`, :const:`FRIDAY`, "
364+ ":const:`SATURDAY` 和 :const:`SUNDAY` 几个常量方便使用。例如,设置每周的第一天为星期天 ::"
359365
360366#: ../../library/calendar.rst:315
361367msgid "Returns the current setting for the weekday to start each week."
362- msgstr ""
368+ msgstr "返回当前设置的每星期的第一天的数值。 "
363369
364370#: ../../library/calendar.rst:320
365371msgid ""
366372"Returns :const:`True` if *year* is a leap year, otherwise :const:`False`."
367- msgstr ""
373+ msgstr "如果 *year* 是闰年则返回 :const:`True` ,否则返回 :const:`False`。 "
368374
369375#: ../../library/calendar.rst:325
370376msgid ""
@@ -467,12 +473,12 @@ msgstr "模块 :mod:`datetime`"
467473msgid ""
468474"Object-oriented interface to dates and times with similar functionality to "
469475"the :mod:`time` module."
470- msgstr ""
476+ msgstr "为日期和时间提供与 :mod:`time` 模块相似功能的面向对象接口。 "
471477
472478#: ../../library/calendar.rst:419
473479msgid "Module :mod:`time`"
474480msgstr "模块 :mod:`time`"
475481
476482#: ../../library/calendar.rst:420
477483msgid "Low-level time related functions."
478- msgstr ""
484+ msgstr "底层时间相关函数。 "
0 commit comments