map English_United States to English dates

svn: r8820
This commit is contained in:
Brian Matherly 2007-08-16 04:14:19 +00:00
parent 2a3897c685
commit d40c492f3a
2 changed files with 15 additions and 10 deletions

View File

@ -1,3 +1,6 @@
2007-08-15 Brian Matherly <brian@gramps-project.org>
* src/DateHandler/_DateHandler.py: map English_United States to english
2007-08-14 Don Allingham <don@gramps-project.org>
* src/GrampsDbUtils/_WriteGedcom.py: fix problems identified by gedchk

View File

@ -59,19 +59,21 @@ else:
LANG_SHORT = "C"
LANG_TO_PARSER = {
'C' : DateParser,
'en' : DateParser,
'C' : DateParser,
'en' : DateParser,
'English_United States' : DateParser,
}
LANG_TO_DISPLAY = {
'C' : DateDisplayEn,
'en' : DateDisplayEn,
'zh_CN' : DateDisplay,
'zh_TW' : DateDisplay,
'zh_SG' : DateDisplay,
'zh_HK' : DateDisplay,
'ja_JP' : DateDisplay,
'ko_KR' : DateDisplay,
'C' : DateDisplayEn,
'en' : DateDisplayEn,
'English_United States' : DateDisplayEn,
'zh_CN' : DateDisplay,
'zh_TW' : DateDisplay,
'zh_SG' : DateDisplay,
'zh_HK' : DateDisplay,
'ja_JP' : DateDisplay,
'ko_KR' : DateDisplay,
}
def register_datehandler(locales,parse_class,display_class):