From: Michael Tremer Date: Thu, 22 Oct 2015 00:58:13 +0000 (+0200) Subject: i18n: Add a submodule that handles translations X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3fc6d8066e8f3d2ef99a16aa55d87448515b8827;p=people%2Fms%2Fwestferry.git i18n: Add a submodule that handles translations Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 0963f3f..c15e1ca 100644 --- a/Makefile.am +++ b/Makefile.am @@ -85,6 +85,7 @@ westferry_PYTHON = \ src/westferry/__init__.py \ src/westferry/constants.py \ src/westferry/application.py \ + src/westferry/i18n.py \ src/westferry/services.py westferrydir = $(pythondir)/westferry diff --git a/src/westferry/handlers/analytics.py b/src/westferry/handlers/analytics.py index 59fd86d..94f291e 100644 --- a/src/westferry/handlers/analytics.py +++ b/src/westferry/handlers/analytics.py @@ -27,7 +27,7 @@ import tornado.web from . import base from .. import ui -N_ = lambda x: x +from ..i18n import N_ class AnalyticsBaseHandler(base.BaseHandler): @property