[Top][All Lists]

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

[taler-bank] branch master updated: link gettext to templating env

From: gnunet
Subject: [taler-bank] branch master updated: link gettext to templating env
Date: Fri, 16 Oct 2020 17:54:36 +0200

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

ms pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new db0fb39  link gettext to templating env
db0fb39 is described below

commit db0fb399d7b7d7169bc03565f5384be68170ab8b
Author: MS <>
AuthorDate: Fri Oct 16 17:54:24 2020 +0200

    link gettext to templating env
 talerbank/ | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/talerbank/ b/talerbank/
index 4decadd..6f66de0 100644
--- a/talerbank/
+++ b/talerbank/
@@ -26,7 +26,7 @@ from urllib.parse import urlparse
 from django.urls import reverse, get_script_prefix
 from django.conf import settings
 from jinja2 import Environment
+from gettext import gettext
 # Check if a URL is absolute or not.
@@ -140,6 +140,7 @@ def environment(**options):
             "is_valid_amount": is_valid_amount,
             "amount_stringify": amount_stringify,
             "tojson": tojson,
+            "_": gettext,
     return env

To stop receiving notification emails like this one, please contact

reply via email to

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