mirror of
https://github.com/python/cpython.git
synced 2025-11-20 10:57:44 +00:00
Bug #947906: Add classes LocaleTextCalendar and LocaleHTMLCalendar,
that output localized month and weekday names and can cope with encodings.
This commit is contained in:
parent
1c5a59f80a
commit
48d5e508eb
3 changed files with 177 additions and 35 deletions
|
|
@ -176,6 +176,24 @@ to the system default encoding).
|
|||
\end{methoddesc}
|
||||
|
||||
|
||||
\begin{classdesc}{LocaleTextCalendar}{\optional{firstweekday\optional{, locale}}}
|
||||
This subclass of \class{TextCalendar} can be passed a locale name in the
|
||||
constructor and will return month and weekday names in the specified locale.
|
||||
If this locale includes an encoding all strings containing month and weekday
|
||||
names will be returned as unicode.
|
||||
\versionadded{2.5}
|
||||
\end{classdesc}
|
||||
|
||||
|
||||
\begin{classdesc}{LocaleHTMLCalendar}{\optional{firstweekday\optional{, locale}}}
|
||||
This subclass of \class{HTMLCalendar} can be passed a locale name in the
|
||||
constructor and will return month and weekday names in the specified locale.
|
||||
If this locale includes an encoding all strings containing month and weekday
|
||||
names will be returned as unicode.
|
||||
\versionadded{2.5}
|
||||
\end{classdesc}
|
||||
|
||||
|
||||
For simple text calendars this module provides the following functions.
|
||||
|
||||
\begin{funcdesc}{setfirstweekday}{weekday}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue