2385: use gen.lib.date.Date.ui_calendar_names for getting list of supported calendars

svn: r13928
This commit is contained in:
Jérôme Rapinat 2009-12-27 18:01:02 +00:00
parent a61a472668
commit ef3a25815a

View File

@ -85,7 +85,9 @@ def get_calendar_formats():
"""
Return the list of supported calendars.
"""
try:
return LANG_TO_DISPLAY[LANG].calendar
except:
return LANG_TO_DISPLAY["C"].calendar
cal = []
for calendar in gen.lib.date.Date.ui_calendar_names:
cal.append(calendar)
return cal