Add translations support (including EN and DE) (close #6)
This commit is contained in:
parent
3b3e921595
commit
8a34d904fb
11 changed files with 236 additions and 11 deletions
|
@ -10,6 +10,7 @@ import os
|
|||
# Set environment
|
||||
srcdir = os.path.abspath(os.path.dirname(__file__))
|
||||
datadir = os.path.join(srcdir, '..', 'data')
|
||||
localedir = os.path.join(srcdir, '..', 'locale')
|
||||
|
||||
# Set GSettings schema dir (if not set already)
|
||||
if not os.environ.get('GSETTINGS_SCHEMA_DIR'):
|
||||
|
@ -28,3 +29,7 @@ class Environment:
|
|||
|
||||
def get_data(subdir):
|
||||
return os.path.join(datadir, subdir)
|
||||
|
||||
|
||||
def get_locale():
|
||||
return localedir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue