gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-backoffice] branch master updated: Fix babel.map


From: gnunet
Subject: [GNUnet-SVN] [taler-backoffice] branch master updated: Fix babel.map
Date: Tue, 31 Jul 2018 14:44:37 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository backoffice.

The following commit(s) were added to refs/heads/master by this push:
     new 397462b  Fix babel.map
397462b is described below

commit 397462bf4c02ac05f7913e05c5cca0ac7dcf6d4c
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Jul 31 14:44:20 2018 +0200

    Fix babel.map
---
 talerbackoffice/backoffice/backoffice.py                    |  7 ++++---
 talerbackoffice/backoffice/templates/Makefile               |  2 +-
 talerbackoffice/backoffice/templates/translations/babel.map | 11 ++---------
 3 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/talerbackoffice/backoffice/backoffice.py 
b/talerbackoffice/backoffice/backoffice.py
index ce2858e..e828310 100644
--- a/talerbackoffice/backoffice/backoffice.py
+++ b/talerbackoffice/backoffice/backoffice.py
@@ -26,7 +26,7 @@ import os
 import base64
 import requests
 import flask
-from flask.ext.babel import Babel
+from flask_babel import Babel
 from talerbackoffice.talerconfig import TalerConfig
 from ..helpers import (join_urlparts, \
     get_query_string, backend_error)
@@ -80,8 +80,9 @@ def utility_processor():
 
 
 @app.route("/<lang>/")
address@hidden("/")
-def index():
address@hidden("/", defaults={"lang": "en"})
+def index(lang):
+    # 'lang' parameter not used.
     return flask.render_template("templates/backoffice.html", 
instances=INSTANCES.split())
 
 @app.route("/javascript")
diff --git a/talerbackoffice/backoffice/templates/Makefile 
b/talerbackoffice/backoffice/templates/Makefile
index b25897d..ba531d1 100644
--- a/talerbackoffice/backoffice/templates/Makefile
+++ b/talerbackoffice/backoffice/templates/Makefile
@@ -7,7 +7,7 @@ all: locale
 
 # Extract translateable strings from jinja2 templates.
 locale/messages.pot: *.html
-       env PYTHONPATH="." pybabel extract -F translations/babel.map -o 
translations/messages.pot .
+       pybabel extract -F translations/babel.map -o translations/messages.pot .
 
 # Update translation (.po) files with new strings.
 locale-update: locale/messages.pot
diff --git a/talerbackoffice/backoffice/templates/translations/babel.map 
b/talerbackoffice/backoffice/templates/translations/babel.map
index d596257..609bc8e 100644
--- a/talerbackoffice/backoffice/templates/translations/babel.map
+++ b/talerbackoffice/backoffice/templates/translations/babel.map
@@ -1,9 +1,2 @@
-[extractors]
-jinja2 = i18nfix:babel_extract
-
-[python: **.py]
-
-[jinja2: **/templates/**.html]
-encoding = utf-8
-lstrip_blocks = True
-trim_blocks = True
+[jinja2: **.html]
+extensions=jinja2.ext.autoescape,jinja2.ext.with_

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]