From 848e43a5b47c0467b90e7d9a029e59ec53461da3 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 26 Nov 2012 12:53:43 +0000 Subject: [PATCH] remove .i18n annotations from controller files --- applications/luci-ahcp/luasrc/controller/ahcp.lua | 2 +- .../luci-asterisk/luasrc/controller/asterisk.lua | 2 +- .../luci-commands/luasrc/controller/commands.lua | 2 +- .../luasrc/controller/coovachilli.lua | 1 - applications/luci-ddns/luasrc/controller/ddns.lua | 2 -- .../luci-diag-core/luasrc/controller/luci_diag.lua | 4 ---- .../luasrc/controller/luci_diag/devinfo_common.lua | 2 -- .../luasrc/controller/luci_diag/luci_diag_devinfo.lua | 11 ----------- .../controller/luci_diag/netdiscover_common.lua | 1 - .../luasrc/controller/luci_diag/smap_common.lua | 1 - .../luci-firewall/luasrc/controller/firewall.lua | 2 +- .../luasrc/controller/freifunk/policy-routing.lua | 2 +- .../luasrc/model/cbi/freifunk/policyrouting.lua | 1 - .../luci-hd-idle/luasrc/controller/hd_idle.lua | 1 - .../luci-ltqtapi/luasrc/controller/ltqtapi.lua | 1 - .../luci-minidlna/luasrc/controller/minidlna.lua | 1 - .../luci-minidlna/luasrc/view/minidlna_status.htm | 2 -- .../luasrc/controller/mmc_over_gpio.lua | 1 - .../luci-multiwan/luasrc/controller/multiwan.lua | 2 -- applications/luci-ntpc/luasrc/controller/ntpc.lua | 2 -- applications/luci-olsr/luasrc/controller/olsr.lua | 3 --- .../luci-openvpn/luasrc/controller/openvpn.lua | 2 +- .../luci-p2pblock/luasrc/controller/ff_p2pblock.lua | 2 +- applications/luci-p910nd/luasrc/controller/p910nd.lua | 1 - applications/luci-polipo/luasrc/controller/polipo.lua | 2 +- applications/luci-qos/luasrc/controller/qos.lua | 2 -- applications/luci-radvd/luasrc/controller/radvd.lua | 2 +- applications/luci-samba/luasrc/controller/samba.lua | 1 - .../luci-splash/luasrc/controller/splash/splash.lua | 7 ++----- .../luci-splash/luasrc/model/cbi/splash/splash.lua | 1 - .../luasrc/model/cbi/splash/splashtext.lua | 1 - .../luci-splash/luasrc/view/admin_status/splash.htm | 1 - .../controller/luci_statistics/luci_statistics.lua | 3 --- .../luci-statistics/luasrc/statistics/i18n.lua | 3 --- .../luci-tinyproxy/luasrc/controller/tinyproxy.lua | 2 +- .../luasrc/controller/transmission.lua | 3 --- applications/luci-upnp/luasrc/controller/upnp.lua | 2 -- applications/luci-upnp/luasrc/view/upnp_status.htm | 2 -- applications/luci-ushare/luasrc/controller/ushare.lua | 1 - applications/luci-vnstat/luasrc/controller/vnstat.lua | 4 ++-- .../luci-voice-core/luasrc/controller/luci_voice.lua | 4 ---- .../luasrc/controller/luci_voice/luci_voice_diag.lua | 1 - applications/luci-wol/luasrc/controller/wol.lua | 4 ++-- libs/web/luasrc/cbi.lua | 2 -- modules/freifunk/luasrc/model/cbi/freifunk/basics.lua | 1 - .../freifunk/luasrc/model/cbi/freifunk/contact.lua | 2 -- .../freifunk/luasrc/model/cbi/freifunk/profile.lua | 1 - .../luasrc/model/cbi/freifunk/profile_expert.lua | 1 - .../freifunk/luasrc/model/cbi/freifunk/user_index.lua | 1 - modules/freifunk/luasrc/view/freifunk/adminindex.htm | 1 - .../luasrc/view/themes/freifunk-bno/header.htm | 1 - 51 files changed, 16 insertions(+), 91 deletions(-) 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") -%> -