]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
add pgettext to default template namespace
authorst4lk <myhappydo@gmail.com>
Tue, 24 Feb 2015 10:45:25 +0000 (13:45 +0300)
committerst4lk <myhappydo@gmail.com>
Tue, 24 Feb 2015 10:45:25 +0000 (13:45 +0300)
tornado/web.py

index abeb28da8a31539e5908d73f52f849e627cf2936..92907a51540e550f2a863436622f97fcf2d946c2 100644 (file)
@@ -803,6 +803,7 @@ class RequestHandler(object):
             current_user=self.current_user,
             locale=self.locale,
             _=self.locale.translate,
+            pgettext=self.locale.pgettext,
             static_url=self.static_url,
             xsrf_form_html=self.xsrf_form_html,
             reverse_url=self.reverse_url