[r21287] GrampsLocale: Allow for importing older PyICU packages
svn: r21422
This commit is contained in:
parent
252d2932df
commit
0bbbc76852
@ -39,8 +39,12 @@ HAVE_ICU = False
|
|||||||
try:
|
try:
|
||||||
from icu import Locale, Collator
|
from icu import Locale, Collator
|
||||||
HAVE_ICU = True
|
HAVE_ICU = True
|
||||||
except ImportError as err:
|
except ImportError:
|
||||||
LOG.warning("ICU is not installed because %s, localization will be impaired", str(err))
|
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
|
# gramps modules
|
||||||
|
Loading…
Reference in New Issue
Block a user