summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2006-04-01 07:57:00 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2006-04-01 07:57:00 (GMT)
commit48d5e508ebc136f8f67a2cb2bdd29e55324f5a95 (patch)
treee7ad265967976dbc77323a847627c23e3ada420f /Doc/lib
parent1c5a59f80a614df368cb7f545112862b2e7e1d5e (diff)
downloadcpython-48d5e508ebc136f8f67a2cb2bdd29e55324f5a95.zip
cpython-48d5e508ebc136f8f67a2cb2bdd29e55324f5a95.tar.gz
cpython-48d5e508ebc136f8f67a2cb2bdd29e55324f5a95.tar.bz2
Bug #947906: Add classes LocaleTextCalendar and LocaleHTMLCalendar,
that output localized month and weekday names and can cope with encodings.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libcalendar.tex18
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/lib/libcalendar.tex b/Doc/lib/libcalendar.tex
index b85782a..bbdaf2d 100644
--- a/Doc/lib/libcalendar.tex
+++ b/Doc/lib/libcalendar.tex
@@ -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}