[jhbuild/pre-3-cleanup: 10/16] i18n: fix the gettext localedir
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild/pre-3-cleanup: 10/16] i18n: fix the gettext localedir
- Date: Sun, 22 Sep 2019 10:38:09 +0000 (UTC)
commit e509140ff32c41d8e679bb76b4352edf1cccde14
Author: Christoph Reiter <reiter christoph gmail com>
Date: Sat Sep 21 23:23:22 2019 +0200
i18n: fix the gettext localedir
Not sure why it was looking in jhuild/../mo, but that's not where we
install translations into.
This should make them work again.
jhbuild/main.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/jhbuild/main.py b/jhbuild/main.py
index a234f8d7..8c045d47 100644
--- a/jhbuild/main.py
+++ b/jhbuild/main.py
@@ -49,7 +49,7 @@ def print_help(parser):
parser.exit()
def main(args):
- localedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'mo'))
+ localedir = os.path.join(DATADIR, 'locale')
if not os.path.exists(localedir):
localedir = None
gettext.install('jhbuild', localedir=localedir, unicode=True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]