From: Jo-Philipp Wich Date: Mon, 26 Nov 2012 12:53:43 +0000 (+0000) Subject: remove .i18n annotations from controller files X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=848e43a5b47c0467b90e7d9a029e59ec53461da3;p=oweals%2Fluci.git remove .i18n annotations from controller files --- diff --git a/applications/luci-ahcp/luasrc/controller/ahcp.lua b/applications/luci-ahcp/luasrc/controller/ahcp.lua index 5667bb532..704ec4f84 100644 --- a/applications/luci-ahcp/luasrc/controller/ahcp.lua +++ b/applications/luci-ahcp/luasrc/controller/ahcp.lua @@ -19,7 +19,7 @@ function index() return end - entry({"admin", "network", "ahcpd"}, cbi("ahcp"), _("AHCP Server"), 90).i18n = "ahcp" + entry({"admin", "network", "ahcpd"}, cbi("ahcp"), _("AHCP Server"), 90) entry({"admin", "network", "ahcpd", "status"}, call("ahcp_status")) end diff --git a/applications/luci-asterisk/luasrc/controller/asterisk.lua b/applications/luci-asterisk/luasrc/controller/asterisk.lua index ab053397d..54b9525e7 100644 --- a/applications/luci-asterisk/luasrc/controller/asterisk.lua +++ b/applications/luci-asterisk/luasrc/controller/asterisk.lua @@ -17,7 +17,7 @@ module("luci.controller.asterisk", package.seeall) function index() - entry({"admin", "services", "asterisk"}, cbi("asterisk"), "Asterisk", 80).i18n = "asterisk" + entry({"admin", "services", "asterisk"}, cbi("asterisk"), "Asterisk", 80) entry({"admin", "services", "asterisk", "voice"}, cbi("asterisk-voice"), "Voice Functions", 1) entry({"admin", "services", "asterisk", "meetme"}, cbi("asterisk-meetme"), "Meetme Conferences", 2) diff --git a/applications/luci-commands/luasrc/controller/commands.lua b/applications/luci-commands/luasrc/controller/commands.lua index c04d186bb..b9f0ce879 100644 --- a/applications/luci-commands/luasrc/controller/commands.lua +++ b/applications/luci-commands/luasrc/controller/commands.lua @@ -14,7 +14,7 @@ You may obtain a copy of the License at module("luci.controller.commands", package.seeall) function index() - entry({"admin", "system", "commands"}, firstchild(), _("Custom Commands"), 80).i18n = "commands" + entry({"admin", "system", "commands"}, firstchild(), _("Custom Commands"), 80) entry({"admin", "system", "commands", "dashboard"}, template("commands"), _("Dashboard"), 1) entry({"admin", "system", "commands", "config"}, cbi("commands"), _("Configure"), 2) entry({"admin", "system", "commands", "run"}, call("action_run"), nil, 3).leaf = true diff --git a/applications/luci-coovachilli/luasrc/controller/coovachilli.lua b/applications/luci-coovachilli/luasrc/controller/coovachilli.lua index 73a2c518a..aa0a5cc73 100644 --- a/applications/luci-coovachilli/luasrc/controller/coovachilli.lua +++ b/applications/luci-coovachilli/luasrc/controller/coovachilli.lua @@ -18,7 +18,6 @@ function index() local cc cc = entry( { "admin", "services", "coovachilli" }, cbi("coovachilli"), _("CoovaChilli"), 90) - cc.i18n = "coovachilli" cc.subindex = true entry( { "admin", "services", "coovachilli", "network" }, cbi("coovachilli_network"), _("Network Configuration"), 10) diff --git a/applications/luci-ddns/luasrc/controller/ddns.lua b/applications/luci-ddns/luasrc/controller/ddns.lua index e2f786b32..0c7293d5a 100644 --- a/applications/luci-ddns/luasrc/controller/ddns.lua +++ b/applications/luci-ddns/luasrc/controller/ddns.lua @@ -23,10 +23,8 @@ function index() local page page = entry({"admin", "services", "ddns"}, cbi("ddns/ddns"), _("Dynamic DNS"), 60) - page.i18n = "ddns" page.dependent = true page = entry({"mini", "network", "ddns"}, cbi("ddns/ddns", {autoapply=true}), _("Dynamic DNS"), 60) - page.i18n = "ddns" page.dependent = true end diff --git a/applications/luci-diag-core/luasrc/controller/luci_diag.lua b/applications/luci-diag-core/luasrc/controller/luci_diag.lua index c12399431..4a8a02003 100644 --- a/applications/luci-diag-core/luasrc/controller/luci_diag.lua +++ b/applications/luci-diag-core/luasrc/controller/luci_diag.lua @@ -11,8 +11,6 @@ You may obtain a copy of the License at ]]-- -require("luci.i18n") - module("luci.controller.luci_diag", package.seeall) function index() @@ -20,11 +18,9 @@ function index() e = entry({"admin", "network", "diag_config"}, template("diag/network_config_index") , _("Configure Diagnostics"), 120) e.index = true - e.i18n = "diag_core" e.dependent = true e = entry({"mini", "diag"}, template("diag/index"), _("Diagnostics"), 120) e.index = true - e.i18n = "diag_core" e.dependent = true end diff --git a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua index 009054a86..c124cd310 100644 --- a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua +++ b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua @@ -38,8 +38,6 @@ end function parse_output(devmap, outnets, haslink, type, mini, debug) local curnet = next(outnets, nil) - luci.i18n.loadc("diag_devinfo") - while (curnet) do local output = outnets[curnet]["output"] local subnet = outnets[curnet]["subnet"] diff --git a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua index e8a2f5043..7a2fbd91a 100644 --- a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua +++ b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua @@ -19,49 +19,38 @@ function index() e = entry({"admin", "voice", "diag", "phones"}, arcombine(cbi("luci_diag/smap_devinfo"), cbi("luci_diag/smap_devinfo_config")), _("Phones"), 10) e.leaf = true e.subindex = true - e.i18n = "diag_devinfo" e.dependent = true e = entry({"admin", "voice", "diag", "phones", "config"}, cbi("luci_diag/smap_devinfo_config"), _("Configure"), 10) - e.i18n = "diag_devinfo" e = entry({"admin", "status", "smap_devinfo"}, cbi("luci_diag/smap_devinfo"), _("SIP Devices on Network"), 120) e.leaf = true - e.i18n = "diag_devinfo" e.dependent = true e = entry({"admin", "network", "diag_config", "netdiscover_devinfo_config"}, cbi("luci_diag/netdiscover_devinfo_config"), _("Network Device Scan"), 100) e.leaf = true - e.i18n = "diag_devinfo" e.dependent = true e = entry({"admin", "network", "diag_config", "smap_devinfo_config"}, cbi("luci_diag/smap_devinfo_config"), _("SIP Device Scan")) e.leaf = true - e.i18n = "diag_devinfo" e.dependent = true e = entry({"admin", "status", "netdiscover_devinfo"}, cbi("luci_diag/netdiscover_devinfo"), _("Devices on Network"), 90) - e.i18n = "diag_devinfo" e.dependent = true e = entry({"admin", "network", "mactodevinfo"}, cbi("luci_diag/mactodevinfo"), _("MAC Device Info Overrides"), 190) - e.i18n = "diag_devinfo" e.dependent = true e = entry({"mini", "diag", "phone_scan"}, cbi("luci_diag/smap_devinfo_mini"), _("Phone Scan"), 100) - e.i18n = "diag_devinfo" e.dependent = true e = entry({"mini", "voice", "phones", "phone_scan_config"}, cbi("luci_diag/smap_devinfo_config_mini"), _("Config Phone Scan"), 90) - e.i18n = "diag_devinfo" e.dependent = true e = entry({"mini", "diag", "netdiscover_devinfo"}, cbi("luci_diag/netdiscover_devinfo_mini"), _("Network Device Scan"), 10) - e.i18n = "diag_devinfo" e.dependent = true e = entry({"mini", "network", "netdiscover_devinfo_config"}, cbi("luci_diag/netdiscover_devinfo_config_mini"), _("Device Scan Config")) - e.i18n = "diag_devinfo" e.dependent = true end diff --git a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua index 95859aeaf..592ca1eaa 100644 --- a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua +++ b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua @@ -83,7 +83,6 @@ function command_function(outnets, i) end function action_links(netdiscovermap, mini) - luci.i18n.loadc("diag_devinfo") s = netdiscovermap:section(SimpleSection, "", translate("Actions")) b = s:option(DummyValue, "_config", translate("Configure Scans")) b.value = "" diff --git a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua index 13ac91f93..e9aeaa621 100644 --- a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua +++ b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua @@ -94,7 +94,6 @@ function command_function(outnets, i) end function action_links(smapmap, mini) - luci.i18n.loadc("diag_devinfo") s = smapmap:section(SimpleSection, "", translate("Actions")) b = s:option(DummyValue, "_config", translate("Configure Scans")) b.value = "" diff --git a/applications/luci-firewall/luasrc/controller/firewall.lua b/applications/luci-firewall/luasrc/controller/firewall.lua index c0149f8cf..5a6ab0ad3 100644 --- a/applications/luci-firewall/luasrc/controller/firewall.lua +++ b/applications/luci-firewall/luasrc/controller/firewall.lua @@ -3,7 +3,7 @@ module("luci.controller.firewall", package.seeall) function index() entry({"admin", "network", "firewall"}, alias("admin", "network", "firewall", "zones"), - _("Firewall"), 60).i18n = "firewall" + _("Firewall"), 60) entry({"admin", "network", "firewall", "zones"}, arcombine(cbi("firewall/zones"), cbi("firewall/zone-details")), diff --git a/applications/luci-freifunk-policyrouting/luasrc/controller/freifunk/policy-routing.lua b/applications/luci-freifunk-policyrouting/luasrc/controller/freifunk/policy-routing.lua index e8aca9ce5..ec087d93a 100644 --- a/applications/luci-freifunk-policyrouting/luasrc/controller/freifunk/policy-routing.lua +++ b/applications/luci-freifunk-policyrouting/luasrc/controller/freifunk/policy-routing.lua @@ -14,5 +14,5 @@ module "luci.controller.freifunk.policy-routing" function index() entry({"admin", "freifunk", "policyrouting"}, cbi("freifunk/policyrouting"), - _("Policy Routing"), 60).i18n = "freifunk-policyrouting" + _("Policy Routing"), 60) end diff --git a/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua b/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua index 4361eb782..f7f046771 100644 --- a/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua +++ b/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua @@ -10,7 +10,6 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- -luci.i18n.loadc("freifunk") local uci = require "luci.model.uci".cursor() m = Map("freifunk-policyrouting", translate("Policy Routing"), translate("These pages can be used to setup policy routing for certain firewall zones. ".. diff --git a/applications/luci-hd-idle/luasrc/controller/hd_idle.lua b/applications/luci-hd-idle/luasrc/controller/hd_idle.lua index e28983f39..a6f4adc38 100644 --- a/applications/luci-hd-idle/luasrc/controller/hd_idle.lua +++ b/applications/luci-hd-idle/luasrc/controller/hd_idle.lua @@ -23,6 +23,5 @@ function index() local page page = entry({"admin", "services", "hd_idle"}, cbi("hd_idle"), _("hd-idle"), 60) - page.i18n = "hd_idle" page.dependent = true end diff --git a/applications/luci-ltqtapi/luasrc/controller/ltqtapi.lua b/applications/luci-ltqtapi/luasrc/controller/ltqtapi.lua index 81baf397d..abce09cea 100644 --- a/applications/luci-ltqtapi/luasrc/controller/ltqtapi.lua +++ b/applications/luci-ltqtapi/luasrc/controller/ltqtapi.lua @@ -22,7 +22,6 @@ function index() page.target = firstchild() page.title = _("VoIP") page.order = 90 - page.i18n = "telephony" entry({"admin", "telephony", "account"}, cbi("luci_ltqtapi/account") , _("Account"), 10) entry({"admin", "telephony", "contact"}, cbi("luci_ltqtapi/contact") , _("Contacts"), 20) diff --git a/applications/luci-minidlna/luasrc/controller/minidlna.lua b/applications/luci-minidlna/luasrc/controller/minidlna.lua index 1bd5617f6..500c90aaa 100644 --- a/applications/luci-minidlna/luasrc/controller/minidlna.lua +++ b/applications/luci-minidlna/luasrc/controller/minidlna.lua @@ -22,7 +22,6 @@ function index() local page page = entry({"admin", "services", "minidlna"}, cbi("minidlna"), _("miniDLNA")) - page.i18n = "minidlna" page.dependent = true entry({"admin", "services", "minidlna_status"}, call("minidlna_status")) diff --git a/applications/luci-minidlna/luasrc/view/minidlna_status.htm b/applications/luci-minidlna/luasrc/view/minidlna_status.htm index a2336f76a..098a72a07 100644 --- a/applications/luci-minidlna/luasrc/view/minidlna_status.htm +++ b/applications/luci-minidlna/luasrc/view/minidlna_status.htm @@ -1,5 +1,3 @@ -<%- luci.i18n.loadc("minidlna") -%> -