Localized month names?
Sibylle Koczian
Sibylle.Koczian at Bibliothek.Uni-Augsburg.de
Tue Mar 14 05:04:33 EST 2006
Benji York schrieb:
> Jarek Zgoda wrote:
>
>> How do I get a list of localized month names for current locale? The
>> first thing that came to my mind was an ugly hack:
>
>
>>>> import locale
>>>> locale.nl_langinfo(locale.MON_1)
> 'January'
>
What did you leave out? I get
Traceback (most recent call last):
File "<pyshell#3>", line 1, in -toplevel-
locale.nl_langinfo(locale.MON_1)
AttributeError: 'module' object has no attribute 'nl_langinfo'
(Python 2.4, german Windows XP Pro)
Moreover, 'January' is probably not localized.
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : Sibylle.Koczian at Bibliothek.Uni-Augsburg.DE
More information about the Python-list
mailing list