From a372922e02841b3990ac03eb80e9b6a2870cdc56 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 27 Oct 2014 11:21:49 -0700 Subject: [PATCH] 8140: Gramps doesn't work under Turkish locale --- gramps/gen/utils/maclocale.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramps/gen/utils/maclocale.py b/gramps/gen/utils/maclocale.py index 504a0b835..201007a9a 100644 --- a/gramps/gen/utils/maclocale.py +++ b/gramps/gen/utils/maclocale.py @@ -239,6 +239,9 @@ def mac_setup_localization(glocale): coll_parts = glocale.collation.split('@') 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) if not glocale.lang.split('.')[1].lower() in ['utf8', 'utf-8']: LOG.debug('Forcing locale encoding to UTF-8')