From: Michael Tremer Date: Fri, 18 Dec 2015 21:53:37 +0000 (+0100) Subject: i18n: Define the _ function X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=615d633547b2f45fced380baf0e95d46669b2ffd;p=people%2Fms%2Fwestferry.git i18n: Define the _ function This is just a dummy for now, but it has been used in some parts of the code. Signed-off-by: Michael Tremer --- diff --git a/src/westferry/handlers/base.py b/src/westferry/handlers/base.py index 5e2d984..baa20c6 100644 --- a/src/westferry/handlers/base.py +++ b/src/westferry/handlers/base.py @@ -21,7 +21,7 @@ import tornado.web -N_ = lambda x: x +from ..i18n import _, N_ _handlers = [] diff --git a/src/westferry/i18n.py b/src/westferry/i18n.py index bf71fa1..43c5bde 100644 --- a/src/westferry/i18n.py +++ b/src/westferry/i18n.py @@ -20,3 +20,6 @@ ############################################################################### N_ = lambda x: x + +# XXX for now +_ = N_