1.1 --- a/imiptools/i18n.py Mon Jan 30 23:23:30 2017 +0100
1.2 +++ b/imiptools/i18n.py Mon Jan 30 23:28:11 2017 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Internationalisation support.
1.6
1.7 -Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2015, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -19,10 +19,13 @@
1.13 this program. If not, see <http://www.gnu.org/licenses/>.
1.14 """
1.15
1.16 -from imiptools.config import LOCALE_DIR, TRANS_DOMAIN
1.17 +from imiptools.config import settings
1.18 from os.path import abspath, exists, join, split
1.19 import gettext
1.20
1.21 +LOCALE_DIR = settings["LOCALE_DIR"]
1.22 +TRANS_DOMAIN = settings["TRANS_DOMAIN"]
1.23 +
1.24 def get_locale_dir():
1.25 locale_dir = abspath(join(split(__file__)[0], "..", "locale"))
1.26 if exists(locale_dir):