summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/dispatcher.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-08-14 15:31:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-08-14 15:31:26 +0000
commitb7026b156d54bf48b7f88b702df87e5ece2f41b5 (patch)
tree7b4bc420aff76c39eb89cd448dcfe6d0dae6e048 /libs/web/luasrc/dispatcher.lua
parent536d32950369342c4c1721ddc3a4bb8044e747ad (diff)
libs/web: export translatef() into templates
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r--libs/web/luasrc/dispatcher.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index 9c0bf60b8..9e5b78d5e 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -304,6 +304,7 @@ function dispatch(request)
write = luci.http.write;
include = function(name) tpl.Template(name):render(getfenv(2)) end;
translate = i18n.translate;
+ translatef = i18n.translatef;
export = function(k, v) if tpl.context.viewns[k] == nil then tpl.context.viewns[k] = v end end;
striptags = util.striptags;
pcdata = util.pcdata;