Added i18n module
This commit is contained in:
parent
df1ed7bd2c
commit
0e9b22612a
11
src/fenrir/core/i18n.py
Normal file
11
src/fenrir/core/i18n.py
Normal file
@ -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")
|
@ -9,7 +9,7 @@ import __main__
|
|||||||
|
|
||||||
if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
|
if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
|
||||||
sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__)))
|
sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__)))
|
||||||
|
from core import i18n
|
||||||
from core import settingsManager
|
from core import settingsManager
|
||||||
from core import debug
|
from core import debug
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user