8140: Gramps doesn't work under Turkish locale
(cherry picked from commit 4662cf1cf94c3502ca8490f213b34d3d094e2d38)
This commit is contained in:
parent
fbf3835ca0
commit
8d391f17ad
@ -241,6 +241,9 @@ def mac_setup_localization(glocale):
|
|||||||
coll_parts = glocale.collation.split('@')
|
coll_parts = glocale.collation.split('@')
|
||||||
glocale.lang = glocale.check_available_translations(coll_parts[0])
|
glocale.lang = glocale.check_available_translations(coll_parts[0])
|
||||||
|
|
||||||
|
if not glocale.lang:
|
||||||
|
glocale.lang = "en_US.UTF-8"
|
||||||
|
|
||||||
glocale.lang = locale.normalize(glocale.lang)
|
glocale.lang = locale.normalize(glocale.lang)
|
||||||
if not glocale.lang.split('.')[1].lower() in ['utf8', 'utf-8']:
|
if not glocale.lang.split('.')[1].lower() in ['utf8', 'utf-8']:
|
||||||
LOG.debug('Forcing locale encoding to UTF-8')
|
LOG.debug('Forcing locale encoding to UTF-8')
|
||||||
|
Loading…
Reference in New Issue
Block a user