diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-09-03 15:31:48 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-09-03 15:31:48 +0200 |
commit | 9c7b98a071123f8a73be2c6fe13590d88d5dc0e5 (patch) | |
tree | 4e2370a1784b99dd314d1360981d2bdfac8dbdf9 | |
parent | bf0ee5b6a14d512d98cb659607ffb44c68ae6705 (diff) | |
download | backoffice-9c7b98a071123f8a73be2c6fe13590d88d5dc0e5.tar.gz backoffice-9c7b98a071123f8a73be2c6fe13590d88d5dc0e5.tar.bz2 backoffice-9c7b98a071123f8a73be2c6fe13590d88d5dc0e5.zip |
fix translations paths.
-rwxr-xr-x | setup.py | 1 | ||||
-rw-r--r-- | talerbackoffice/backoffice/backoffice.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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() |