GrampsLocale: Allow for importing older PyICU packages

svn: r21287
This commit is contained in:
John Ralls 2013-02-04 01:42:51 +00:00
parent 85ae2aca09
commit 06ce88cef4

View File

@ -39,8 +39,12 @@ HAVE_ICU = False
try:
from icu import Locale, Collator
HAVE_ICU = True
except ImportError as err:
LOG.warning("ICU is not installed because %s, localization will be impaired", str(err))
except ImportError:
try:
from PyICU import Locale, Collator
HAVE_ICU = True
except ImportError as err:
LOG.warning("ICU is not installed because %s, localization will be impaired", str(err))
#-------------------------------------------------------------------------
#
# gramps modules