]> git.ipfire.org Git - people/ms/westferry.git/commitdiff
i18n: Define the _ function
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Dec 2015 21:53:37 +0000 (22:53 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Dec 2015 21:53:37 +0000 (22:53 +0100)
This is just a dummy for now, but it has been used
in some parts of the code.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/westferry/handlers/base.py
src/westferry/i18n.py

index 5e2d984434bf39cc6c58cd20cbaa2736abe523a5..baa20c6a5390f4ee294f99aa636860216f678116 100644 (file)
@@ -21,7 +21,7 @@
 
 import tornado.web
 
-N_ = lambda x: x
+from ..i18n import _, N_
 
 _handlers = []
 
index bf71fa1b2a557370aef375f329ca79160d53c0b8..43c5bde66ba4bbf3c6e66e0136763505e5ad0353 100644 (file)
@@ -20,3 +20,6 @@
 ###############################################################################
 
 N_ = lambda x: x
+
+# XXX for now
+_ = N_