libs/web: add network_netlist widget option to filter virtual networks
[project/luci.git] / libs / web / luasrc / dispatcher.lua
index 5fdd0a6..f277501 100644 (file)
@@ -229,7 +229,7 @@ function dispatch(request)
        ctx.path = preq
 
        if track.i18n then
-               require("luci.i18n").loadc(track.i18n)
+               i18n.loadc(track.i18n)
        end
 
        -- Init template engine
@@ -859,3 +859,10 @@ end
 -- @name   translate
 -- @param  text    Text to translate
 translate = i18n.translate
+
+--- No-op function used to mark translation entries for menu labels.
+-- This function does not actually translate the given argument but
+-- is used by build/i18n-scan.pl to find translatable entries.
+function _(text)
+       return text
+end