From d40c492f3aa04302c00e155e0d10492c389328b7 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Thu, 16 Aug 2007 04:14:19 +0000 Subject: [PATCH] map English_United States to English dates svn: r8820 --- ChangeLog | 3 +++ src/DateHandler/_DateHandler.py | 22 ++++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 69e591122..4e7541149 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-08-15 Brian Matherly + * src/DateHandler/_DateHandler.py: map English_United States to english + 2007-08-14 Don Allingham * src/GrampsDbUtils/_WriteGedcom.py: fix problems identified by gedchk diff --git a/src/DateHandler/_DateHandler.py b/src/DateHandler/_DateHandler.py index 5fb0850c5..261208459 100644 --- a/src/DateHandler/_DateHandler.py +++ b/src/DateHandler/_DateHandler.py @@ -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):