2385: use gen.lib.date.Date.ui_calendar_names for getting list of supported calendars
svn: r13928
This commit is contained in:
parent
a61a472668
commit
ef3a25815a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user