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.
|
Return the list of supported calendars.
|
||||||
"""
|
"""
|
||||||
try:
|
cal = []
|
||||||
return LANG_TO_DISPLAY[LANG].calendar
|
|
||||||
except:
|
for calendar in gen.lib.date.Date.ui_calendar_names:
|
||||||
return LANG_TO_DISPLAY["C"].calendar
|
cal.append(calendar)
|
||||||
|
|
||||||
|
return cal
|
||||||
|
Loading…
Reference in New Issue
Block a user