From 0e9b22612ad14a9a10fcc4a2d230a09ba2b1eeb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Tue, 31 Jan 2017 02:00:21 -0600 Subject: [PATCH] Added i18n module --- src/fenrir/core/i18n.py | 11 +++++++++++ src/fenrir/fenrir.py | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/fenrir/core/i18n.py diff --git a/src/fenrir/core/i18n.py b/src/fenrir/core/i18n.py new file mode 100644 index 00000000..6f1c3085 --- /dev/null +++ b/src/fenrir/core/i18n.py @@ -0,0 +1,11 @@ +#!/bin/python +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +import gettext +import locale + +# the only function we really need to call here is gettext.install. Python3 has simplified this. +gettext.install("fenrir") diff --git a/src/fenrir/fenrir.py b/src/fenrir/fenrir.py index 3b39343b..adceadf3 100644 --- a/src/fenrir/fenrir.py +++ b/src/fenrir/fenrir.py @@ -9,7 +9,7 @@ import __main__ if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path: sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__))) - +from core import i18n from core import settingsManager from core import debug