summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-09-03 15:31:48 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-09-03 15:31:48 +0200
commit9c7b98a071123f8a73be2c6fe13590d88d5dc0e5 (patch)
tree4e2370a1784b99dd314d1360981d2bdfac8dbdf9
parentbf0ee5b6a14d512d98cb659607ffb44c68ae6705 (diff)
downloadbackoffice-9c7b98a071123f8a73be2c6fe13590d88d5dc0e5.tar.gz
backoffice-9c7b98a071123f8a73be2c6fe13590d88d5dc0e5.tar.bz2
backoffice-9c7b98a071123f8a73be2c6fe13590d88d5dc0e5.zip
fix translations paths.
-rwxr-xr-xsetup.py1
-rw-r--r--talerbackoffice/backoffice/backoffice.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 55be455..e4f4ecf 100755
--- a/setup.py
+++ b/setup.py
@@ -17,6 +17,7 @@ setup(name='talerbackoffice',
"backoffice/static/*.js",
"backoffice/static/*.css",
"backoffice/static/*.svg",
+ "backoffice/trans_dirs.cfg",
"backoffice/templates/*.html",
"backoffice/templates/translations/it/LC_MESSAGES/messages.mo",
"backoffice/templates/translations/en/LC_MESSAGES/messages.mo",
diff --git a/talerbackoffice/backoffice/backoffice.py b/talerbackoffice/backoffice/backoffice.py
index 206e527..5f81602 100644
--- a/talerbackoffice/backoffice/backoffice.py
+++ b/talerbackoffice/backoffice/backoffice.py
@@ -38,6 +38,7 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
app = flask.Flask(__name__, template_folder=BASE_DIR)
app.debug = True
app.secret_key = base64.b64encode(os.urandom(64)).decode('utf-8')
+app.config.from_pyfile("trans_dirs.cfg")
babel = Babel(app)
TC = TalerConfig.from_env()