GrampsLocale: Allow for importing older PyICU packages
svn: r21287
This commit is contained in:
parent
ec40418f5d
commit
ae8bd2d4e0
@ -39,6 +39,10 @@ HAVE_ICU = False
|
|||||||
try:
|
try:
|
||||||
from icu import Locale, Collator
|
from icu import Locale, Collator
|
||||||
HAVE_ICU = True
|
HAVE_ICU = True
|
||||||
|
except ImportError:
|
||||||
|
try:
|
||||||
|
from PyICU import Locale, Collator
|
||||||
|
HAVE_ICU = True
|
||||||
except ImportError as err:
|
except ImportError as err:
|
||||||
LOG.warning("ICU is not installed because %s, localization will be impaired", str(err))
|
LOG.warning("ICU is not installed because %s, localization will be impaired", str(err))
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user