remove .i18n annotations from controller files
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 26 Nov 2012 12:53:43 +0000 (12:53 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 26 Nov 2012 12:53:43 +0000 (12:53 +0000)
51 files changed:
applications/luci-ahcp/luasrc/controller/ahcp.lua
applications/luci-asterisk/luasrc/controller/asterisk.lua
applications/luci-commands/luasrc/controller/commands.lua
applications/luci-coovachilli/luasrc/controller/coovachilli.lua
applications/luci-ddns/luasrc/controller/ddns.lua
applications/luci-diag-core/luasrc/controller/luci_diag.lua
applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua
applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua
applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua
applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua
applications/luci-firewall/luasrc/controller/firewall.lua
applications/luci-freifunk-policyrouting/luasrc/controller/freifunk/policy-routing.lua
applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua
applications/luci-hd-idle/luasrc/controller/hd_idle.lua
applications/luci-ltqtapi/luasrc/controller/ltqtapi.lua
applications/luci-minidlna/luasrc/controller/minidlna.lua
applications/luci-minidlna/luasrc/view/minidlna_status.htm
applications/luci-mmc-over-gpio/luasrc/controller/mmc_over_gpio.lua
applications/luci-multiwan/luasrc/controller/multiwan.lua
applications/luci-ntpc/luasrc/controller/ntpc.lua
applications/luci-olsr/luasrc/controller/olsr.lua
applications/luci-openvpn/luasrc/controller/openvpn.lua
applications/luci-p2pblock/luasrc/controller/ff_p2pblock.lua
applications/luci-p910nd/luasrc/controller/p910nd.lua
applications/luci-polipo/luasrc/controller/polipo.lua
applications/luci-qos/luasrc/controller/qos.lua
applications/luci-radvd/luasrc/controller/radvd.lua
applications/luci-samba/luasrc/controller/samba.lua
applications/luci-splash/luasrc/controller/splash/splash.lua
applications/luci-splash/luasrc/model/cbi/splash/splash.lua
applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua
applications/luci-splash/luasrc/view/admin_status/splash.htm
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
applications/luci-statistics/luasrc/statistics/i18n.lua
applications/luci-tinyproxy/luasrc/controller/tinyproxy.lua
applications/luci-transmission/luasrc/controller/transmission.lua
applications/luci-upnp/luasrc/controller/upnp.lua
applications/luci-upnp/luasrc/view/upnp_status.htm
applications/luci-ushare/luasrc/controller/ushare.lua
applications/luci-vnstat/luasrc/controller/vnstat.lua
applications/luci-voice-core/luasrc/controller/luci_voice.lua
applications/luci-voice-diag/luasrc/controller/luci_voice/luci_voice_diag.lua
applications/luci-wol/luasrc/controller/wol.lua
libs/web/luasrc/cbi.lua
modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
modules/freifunk/luasrc/model/cbi/freifunk/contact.lua
modules/freifunk/luasrc/model/cbi/freifunk/profile.lua
modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua
modules/freifunk/luasrc/model/cbi/freifunk/user_index.lua
modules/freifunk/luasrc/view/freifunk/adminindex.htm
themes/freifunk-bno/luasrc/view/themes/freifunk-bno/header.htm

index 5667bb532f9376b195a870079a505b866670e33c..704ec4f84adffd807cc8c0de70bd593309d252e5 100644 (file)
@@ -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
 
index ab053397da7ce1cccae1df73135694aebb70de5d..54b9525e7bb768c59890a5dc0198f09a826bda39 100644 (file)
@@ -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)
index c04d186bb467d80102cd5bfa8bb43e118c448222..b9f0ce8794cc1f94cba7ff0f662d6d80c5529e31 100644 (file)
@@ -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
index 73a2c518a77fb904fd791ca026705af6745edbfe..aa0a5cc7306a0850be71836075d8bfb484e85759 100644 (file)
@@ -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)
index e2f786b3249baaa3c2aec7f0dd283b7b87dacad4..0c7293d5af09c111024e1d3de1c256b47f6379aa 100644 (file)
@@ -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
index c12399431e9029f3e9667c971bb9a2de89e6b7ae..4a8a0200317a88c4b36ad8f58a7ae04549cca61a 100644 (file)
@@ -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
index 009054a86059559f6ab78cbbdf8514790b584aaf..c124cd310139e945a053bec22ddb078df7e63b44 100644 (file)
@@ -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"]
index e8a2f5043dc97027be1b6bc86714eb7079102171..7a2fbd91a397e47aaf948edeb08a90753f8703b2 100644 (file)
@@ -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
index 95859aeaf788168b2d6fc0d9134cc671c92d4025..592ca1eaa9352c28516ff9a7dd419919a59fc7f2 100644 (file)
@@ -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 = ""
index 13ac91f93ec5ac4ba6e9bd3c0e313fd954c6aa54..e9aeaa621448533ce00a6158ede80a42eeb24361 100644 (file)
@@ -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 = ""
index c0149f8cffb677c05d076e3f6e8e7b5ffc44e9b1..5a6ab0ad310b2cbc2db697297b512e317cd8430a 100644 (file)
@@ -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")),
index e8aca9ce57538d4cca785904dadb932263bdcdaf..ec087d93a178d180728f2d223b242650bf8788d1 100644 (file)
@@ -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
index 4361eb782d4b1765c6c93450ca670c1b63c9f642..f7f0467719f5c0d736729966fc889ba7b0d675f6 100644 (file)
@@ -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. "..
index e28983f39006cc2712e0f57528394f8f5255e483..a6f4adc382f8400f2b7a8f76ed4af5ac9c4a927d 100644 (file)
@@ -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
index 81baf397dff17f2209913af7353a6182ad8a8b85..abce09cea86b3a8d29ccd66efeb476a8e4c9ba93 100644 (file)
@@ -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)
index 1bd5617f6acb0bf17b1978ff3a08c9963bdd09c0..500c90aaaf4f8c239b2db3c80365029d0f742bec 100644 (file)
@@ -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"))
index a2336f76a744453c57680502afb40a96af928ee0..098a72a0732e0c63102eb85b65e12fbedb211664 100644 (file)
@@ -1,5 +1,3 @@
-<%- luci.i18n.loadc("minidlna") -%>
-
 <script type="text/javascript">//<![CDATA[
        XHR.poll(5, '<%=luci.dispatcher.build_url("admin/services/minidlna_status")%>', null,
                function(x, st)
index 5abceab7aacff7bee78c92238a8ccbc19f5ccda9..b9984cb89b14b472d83ec9a445b007bddce8e8a4 100644 (file)
@@ -23,6 +23,5 @@ function index()
        local page
 
        page = entry({"admin", "system", "mmc_over_gpio"}, cbi("mmc_over_gpio"), _("MMC/SD driver configuration"), 60)
-       page.i18n = "mmc_over_gpio"
        page.dependent = true
 end
index 6aa4cf454a1f49a2fc58243bd1d8225774bf5443..b596ef7e34213f3ee7f817dbf41f46eabb74363a 100644 (file)
@@ -9,13 +9,11 @@ function index()
        local page
 
        page = entry({"admin", "network", "multiwan"}, cbi("multiwan/multiwan"), _("Multi-WAN"))
-       page.i18n = "multiwan"
        page.dependent = true
        
        entry({"admin", "network", "multiwan", "status"}, call("multiwan_status"))
 
        page = entry({"mini", "network", "multiwan"}, cbi("multiwan/multiwanmini", {autoapply=true}), _("Multi-WAN"))
-       page.i18n = "multiwan"
        page.dependent = true
 end
 function multiwan_status()
index 782e216143f2748be1fc98f584c54f65ce8e490f..b7f4cdfc789bd3c0b576edef076739643e61f0d0 100644 (file)
@@ -23,10 +23,8 @@ function index()
        local page
 
        page = entry({"admin", "system", "ntpc"}, cbi("ntpc/ntpc"), _("Time Synchronisation"), 50)
-       page.i18n = "ntpc"
        page.dependent = true
 
        page = entry({"mini", "system", "ntpc"}, cbi("ntpc/ntpcmini", {autoapply=true}), _("Time Synchronisation"), 50)
-       page.i18n = "ntpc"
        page.dependent = true
 end
index 371bad870735e69b36ffe8e7add43b2b20b77f85..0342bde49b0479a2aaf9c82227cf8374293a2b5e 100644 (file)
@@ -8,7 +8,6 @@ function index()
        local page  = node("admin", "status", "olsr")
        page.target = template("status-olsr/overview")
        page.title  = _("OLSR")
-       page.i18n   = "olsr"
        page.subindex = true
 
        local page  = node("admin", "status", "olsr", "neighbors")
@@ -51,7 +50,6 @@ function index()
                {"admin", "services", "olsrd"},
                cbi("olsr/olsrd"), "OLSR"
        )
-       ol.i18n = "olsr"
        ol.subindex = true
 
        entry(
@@ -74,7 +72,6 @@ function index()
                cbi("olsr/olsrddisplay"), _("Display")
                )
 
-       oplg.i18n = "olsr"
        oplg.leaf = true
        oplg.subindex = true
 
index 691ce178d549d485e7c0cebd45a3ba5d79e24faa..8695dae848ef89f0faea2a805dd9878d2af559d5 100644 (file)
@@ -16,7 +16,7 @@ $Id$
 module("luci.controller.openvpn", package.seeall)
 
 function index()
-       entry( {"admin", "services", "openvpn"}, cbi("openvpn"), _("OpenVPN") ).i18n = "openvpn"
+       entry( {"admin", "services", "openvpn"}, cbi("openvpn"), _("OpenVPN") )
        entry( {"admin", "services", "openvpn", "basic"},    cbi("openvpn-basic"),    nil ).leaf = true
        entry( {"admin", "services", "openvpn", "advanced"}, cbi("openvpn-advanced"), nil ).leaf = true
 end
index 50c9e7a1af408b719fe77da238cc861502e34e81..887f18756f88509d2b471f9a25cbc88bb4cb2b1d 100644 (file)
@@ -16,5 +16,5 @@ module("luci.controller.ff_p2pblock", package.seeall)
 
 function index()
        entry({"admin", "network", "firewall", "p2pblock"}, cbi("luci_fw/p2pblock"),
-               _("P2P-Block"), 40).i18n = "p2pblock"
+               _("P2P-Block"), 40)
 end
index bc38c2bb9a45835eb67e886171ff948d6534a098..4efaef8a181e024cdcb78efba5489e064a121e17 100644 (file)
@@ -23,6 +23,5 @@ function index()
        local page
 
        page = entry({"admin", "services", "p910nd"}, cbi("p910nd"), _("p910nd - Printer server"), 60)
-       page.i18n = "p910nd"
        page.dependent = true
 end
index d07eaebd450766d151aefe4d9a71f814dec8b6e7..1113f8f267d1fe7fdb4cf00db0db3e645db3503a 100644 (file)
@@ -19,7 +19,7 @@ function index()
                return
        end
 
-       entry({"admin", "services", "polipo"}, alias("admin", "services", "polipo", "config"), _("Polipo")).i18n = "polipo"
+       entry({"admin", "services", "polipo"}, alias("admin", "services", "polipo", "config"), _("Polipo"))
        entry({"admin", "services", "polipo", "status"}, template("polipo_status"), _("Status"))
        entry({"admin", "services", "polipo", "config"}, cbi("polipo"), _("Configuration"))
 end
index c9eb9e5d115f575348f3944615d2d737d9b555e6..e356599d8ad42493ae0d7f13c892e16694d1ceb6 100644 (file)
@@ -22,10 +22,8 @@ function index()
        local page
 
        page = entry({"admin", "network", "qos"}, cbi("qos/qos"), _("QoS"))
-       page.i18n = "qos"
        page.dependent = true
 
        page = entry({"mini", "network", "qos"}, cbi("qos/qosmini", {autoapply=true}), _("QoS"))
-       page.i18n = "qos"
        page.dependent = true
 end
index 09e764659e71025aa9f416e3f415872715683195..58dcbb2eac643b8532a8a898f5cf0355ba9e58a9 100644 (file)
@@ -19,7 +19,7 @@ function index()
                return
        end
 
-       entry({"admin", "network", "radvd"}, cbi("radvd"), _("Radvd"), 61).i18n = "radvd"
+       entry({"admin", "network", "radvd"}, cbi("radvd"), _("Radvd"), 61)
        entry({"admin", "network", "radvd", "interface"}, cbi("radvd/interface"), nil).leaf = true
        entry({"admin", "network", "radvd", "prefix"}, cbi("radvd/prefix"), nil).leaf = true
        entry({"admin", "network", "radvd", "route"}, cbi("radvd/route"), nil).leaf = true
index 7d531330a7c712974dab89699ca3f009528918a2..ee7d44aa4dce8aacdf7151a9631c18e57c3e9d49 100644 (file)
@@ -23,6 +23,5 @@ function index()
        local page
 
        page = entry({"admin", "services", "samba"}, cbi("samba"), _("Network Shares"))
-       page.i18n = "samba"
        page.dependent = true
 end
index aceeb4a8c50e455fed4ddc65fb19aedce54d47e0..73584580d83d10b06f97e6ebd8fed19c031889c6 100644 (file)
@@ -1,28 +1,25 @@
 module("luci.controller.splash.splash", package.seeall)
-luci.i18n.loadc("splash")
 
 local uci = luci.model.uci.cursor()
 local util = require "luci.util"
 
 function index()
-       entry({"admin", "services", "splash"}, cbi("splash/splash"), _("Client-Splash"), 90).i18n = "freifunk"
+       entry({"admin", "services", "splash"}, cbi("splash/splash"), _("Client-Splash"), 90)
        entry({"admin", "services", "splash", "splashtext" }, form("splash/splashtext"), _("Splashtext"), 10)
 
        local e
        
        e = node("splash")
        e.target = call("action_dispatch")
-       e.i18n = "freifunk"
 
        node("splash", "activate").target = call("action_activate")
        node("splash", "splash").target   = template("splash_splash/splash")
        node("splash", "blocked").target  = template("splash/blocked")
 
-       entry({"admin", "status", "splash"}, call("action_status_admin"), _("Client-Splash")).i18n = "freifunk"
+       entry({"admin", "status", "splash"}, call("action_status_admin"), _("Client-Splash"))
 
        local page  = node("splash", "publicstatus")
        page.target = call("action_status_public")
-       page.i18n   = "freifunk"
        page.leaf   = true
 end
 
index c03cd459aed40277e6ad95a33eabdeb9cd61e074..47d7695d2c583d45106e910f34595df3f9edb92e 100644 (file)
@@ -9,7 +9,6 @@ You may obtain a copy of the License at
 ]]--
 
 require("luci.model.uci")
-luci.i18n.loadc("splash")
 
 m = Map("luci_splash", translate("Client-Splash"), translate("Client-Splash is a hotspot authentification system for wireless mesh networks."))
 
index 5b744e1ccc4c67a108bac6520dd3d970ca5cc596..8748a9319f5c448a1d5ba1f5ee9e08cdee3db2d8 100644 (file)
@@ -13,7 +13,6 @@ You may obtain a copy of the License at
 ]]--
 
 local fs = require "nixio.fs"
-luci.i18n.loadc("splash")
 
 local splashtextfile = "/usr/lib/luci-splash/splashtext.html" 
 
index d97921953ad9512d75653b3164e715423b03667b..56cbe01c274f3b8b899354881b34a792e5427556 100644 (file)
@@ -19,7 +19,6 @@ local ipt = require "luci.sys.iptparser".IptParser()
 local uci = require "luci.model.uci".cursor_state()
 local wat = require "luci.tools.webadmin"
 local fs  = require "nixio.fs"
-luci.i18n.loadc("splash")
 
 local clients = { }
 local leasetime = tonumber(uci:get("luci_splash", "general", "leasetime") or 1) * 60 * 60
index 2e25154123ef1739eab2e08e265e7f5b02226a14..1b7084ccd6525084793bc3d217fa857bab0c455a 100644 (file)
@@ -67,7 +67,6 @@ function index()
 
        -- create toplevel menu nodes
        local st = entry({"admin", "statistics"}, template("admin_statistics/index"), _("Statistics"), 80)
-       st.i18n = "statistics"
        st.index = true
        
        entry({"admin", "statistics", "collectd"}, cbi("luci_statistics/collectd"), _("Collectd"), 10).subindex = true
@@ -82,7 +81,6 @@ function index()
                )
 
                e.index = true
-               e.i18n  = "rrdtool"
 
                for j, plugin in luci.util.vspairs( plugins ) do
                        _entry(
@@ -97,7 +95,6 @@ function index()
 
        -- output views
        local page = entry( { "admin", "statistics", "graph" }, template("admin_statistics/index"), _("Graphs"), 80)
-             page.i18n     = "statistics"
              page.setuser  = "nobody"
              page.setgroup = "nogroup"
 
index a279e91006bce58846c2de7a81647efb4b5d22fc..a1a2fa9de3a4ffc7c270b7054b04ed303aae44bd 100644 (file)
@@ -25,9 +25,6 @@ Instance = luci.util.class()
 function Instance.__init__( self, graph )
        self.i18n  = luci.i18n
        self.graph = graph
-
-       self.i18n.loadc("rrdtool")
-       self.i18n.loadc("statistics")
 end
 
 function Instance._subst( self, str, val )
index 1dcb20ce343357c9ad1e1238f43d422ff6e36b53..0b81b90865b36c801a8910ca0bdb313cbb95dc77 100644 (file)
@@ -20,7 +20,7 @@ function index()
                return
        end
 
-       entry({"admin", "services", "tinyproxy"}, alias("admin", "services", "tinyproxy", "config"), _("Tinyproxy")).i18n = "tinyproxy"
+       entry({"admin", "services", "tinyproxy"}, alias("admin", "services", "tinyproxy", "config"), _("Tinyproxy"))
        entry({"admin", "services", "tinyproxy", "status"}, template("tinyproxy_status"), _("Status"))
        entry({"admin", "services", "tinyproxy", "config"}, cbi("tinyproxy"), _("Configuration"))
 end
index a5bcd644fb31271524a775d335d55f00c1266475..2c4df46b7c5cfc0a9dceec0ead7406fa8422db82 100644 (file)
@@ -15,14 +15,11 @@ $Id$
 module("luci.controller.transmission", package.seeall)
 
 function index()
-       require("luci.i18n")
-       luci.i18n.loadc("transmission")
        if not nixio.fs.access("/etc/config/transmission") then
                return
        end
 
        local page = entry({"admin", "services", "transmission"}, cbi("transmission"), _("Transmission"))
-       page.i18n = "transmission"
        page.dependent = true
 
 end
index b5eaad5c9023c69e8db37b1e70183bf52d32ecf3..7acd029a5f0b54ce43db5c5823605d259108f993 100644 (file)
@@ -23,11 +23,9 @@ function index()
        local page
 
        page = entry({"admin", "services", "upnp"}, cbi("upnp/upnp"), _("UPNP"))
-       page.i18n = "upnp"
        page.dependent = true
 
        page = entry({"mini", "network", "upnp"}, cbi("upnp/upnpmini", {autoapply=true}), _("UPNP"))
-       page.i18n = "upnp"
        page.dependent = true
 
        entry({"admin", "services", "upnp", "status"}, call("act_status")).leaf = true
index 11c72a50a0143f655efb9696e7536d6b9010d9b9..d50ed0c4d702d100883292f76378fdc076a88741 100644 (file)
@@ -1,5 +1,3 @@
-<%- luci.i18n.loadc("upnp") -%>
-
 <script type="text/javascript">//<![CDATA[
        function upnp_delete_fwd(idx) {
                XHR.get('<%=luci.dispatcher.build_url("admin", "services", "upnp", "delete")%>/' + idx, null,
index 7bbd2ddde18d2eceb0668560ba72ea385cc9a712..eed853239baaad65a68db7a56a466230179c036f 100644 (file)
@@ -23,6 +23,5 @@ function index()
        local page
 
        page = entry({"admin", "services", "ushare"}, cbi("ushare"), _("uShare"), 60)
-       page.i18n = "ushare"
        page.dependent = true
 end
index 4c10e2ad30fe67c93a5ffc0da8c0b2c5c7783a8f..3871fa254cf97d707dbec61ba70bc9c38a99b55b 100644 (file)
@@ -1,11 +1,11 @@
 module("luci.controller.vnstat", package.seeall)
 
 function index()
-       entry({"admin", "status", "vnstat"}, alias("admin", "status", "vnstat", "graphs"), _("VnStat Traffic Monitor"), 90).i18n = "vnstat"
+       entry({"admin", "status", "vnstat"}, alias("admin", "status", "vnstat", "graphs"), _("VnStat Traffic Monitor"), 90)
        entry({"admin", "status", "vnstat", "graphs"}, template("vnstat"), _("Graphs"), 1)
        entry({"admin", "status", "vnstat", "config"}, cbi("vnstat"), _("Configuration"), 2)
 
-       entry({"mini", "network", "vnstat"}, alias("mini", "network", "vnstat", "graphs"), _("VnStat Traffic Monitor"), 90).i18n = "vnstat"
+       entry({"mini", "network", "vnstat"}, alias("mini", "network", "vnstat", "graphs"), _("VnStat Traffic Monitor"), 90)
        entry({"mini", "network", "vnstat", "graphs"}, template("vnstat"), _("Graphs"), 1)
        entry({"mini", "network", "vnstat", "config"}, cbi("vnstat"), _("Configuration"), 2)
 end
index dc1482e358909cca632c2a368eef4a3da44e87ef..728afb6a459840356e4a37bc18d47649f454ed98 100644 (file)
@@ -18,18 +18,14 @@ function index()
 
    e = entry({"admin", "voice"}, template("luci_voice/index") , _("Voice"), 90)
    e.index = true
-   e.i18n = "voice_core"
 
    e = entry({"mini", "voice"}, template("luci_voice/index"), _("Voice"), 90)
    e.index = true
-   e.i18n = "voice_core"
 
    e = entry({"mini", "voice", "phones"}, template("luci_voice/phone_index"), _("Phones"), 90)
    e.index = true
-   e.i18n = "voice_core"
 
    e = entry({"admin", "voice", "phones"}, template("luci_voice/phone_index"), _("Phones"), 90)
    e.index = true
-   e.i18n = "voice_core"
 
 end
index 8fba53b732d9c74801bdbed6124d0f599d2401f0..7c3f341ed095a472527a340d87cef57ce597b596 100644 (file)
@@ -18,6 +18,5 @@ function index()
 
        e = entry({"admin", "voice", "diag"}, template("luci_voice/diag_index"), _("Diagnostics"), 90)
        e.index = true
-       e.i18n = "voice_diag"
        e.dependent = true
 end
index bb98b6d89ab4ac22e015c96158b236db94a4827b..73a9594b2a8875b2e6fb679ef05017093ab89dd6 100644 (file)
@@ -1,6 +1,6 @@
 module("luci.controller.wol", package.seeall)
 
 function index()
-       entry({"admin", "network", "wol"}, cbi("wol"), _("Wake on LAN"), 90).i18n = "wol"
-       entry({"mini", "network", "wol"}, cbi("wol"), _("Wake on LAN"), 90).i18n = "wol"
+       entry({"admin", "network", "wol"}, cbi("wol"), _("Wake on LAN"), 90)
+       entry({"mini", "network", "wol"}, cbi("wol"), _("Wake on LAN"), 90)
 end
index ef45a89563e38a1921c765407da412063bb46295..ae570b1556bbaaf2ee43be598fc9899673def048 100644 (file)
@@ -74,8 +74,6 @@ function load(cbimap, ...)
 
        assert(func, err)
 
-       luci.i18n.loadc("base")
-
        local env = {
                translate=i18n.translate,
                translatef=i18n.translatef,
index bbf7c56ce0a92f392970d1d4be5ddcbd140c9ce8..8987b1cb46f636a3eb3b2c61be1cad898356f39b 100644 (file)
@@ -15,7 +15,6 @@ local fs = require "luci.fs"
 local util = require "luci.util"
 local uci = require "luci.model.uci".cursor()
 local profiles = "/etc/config/profile_"
-luci.i18n.loadc("freifunk")
 
 m = Map("freifunk", translate ("Community"))
 c = m:section(NamedSection, "community", "public", nil, translate("These are the basic settings for your local wireless community. These settings define the default values for the wizard and DO NOT affect the actual configuration of the router."))
index 6f998819a3b2eb4533b4a1f2defbf96586da613a..f6cdec7fe128a8fb06dd728cb04df07ac726373b 100644 (file)
@@ -11,8 +11,6 @@ You may obtain a copy of the License at
        http://www.apache.org/licenses/LICENSE-2.0
 ]]--
 
-luci.i18n.loadc("freifunk")
-
 m = Map("freifunk", translate("Contact"), translate("Please fill in your contact details below."))
 
 c = m:section(NamedSection, "contact", "public", "")
index 933efb45f41aaa5b41813d61c006107afb087251..a8beef846899f4c79b2d17cc750b1e23c5ae1cc9 100644 (file)
@@ -13,7 +13,6 @@ You may obtain a copy of the License at
 local uci = require "luci.model.uci".cursor()
 local ipkg = require "luci.model.ipkg"
 local community = uci:get("freifunk", "community", "name")
-luci.i18n.loadc("freifunk")
 
 if community == nil then
        luci.http.redirect(luci.dispatcher.build_url("admin", "freifunk", "profile_error"))
index b08c0f024940f37110fa2b9fe94920ad3ee0e4e2..a0b8f34bc9ea6ad27bb31658773313e0c1080e28 100644 (file)
@@ -13,7 +13,6 @@ You may obtain a copy of the License at
 local fs = require "nixio.fs"
 local uci = require "luci.model.uci".cursor()
 local community = uci:get("freifunk", "community", "name")
-luci.i18n.loadc("freifunk")
 
 if community == nil then
         luci.http.redirect(luci.dispatcher.build_url("admin", "freifunk", "profile_error"))
index e23ea901ab76c5a47fc49fdd883d43a99554f98b..fe1d8fe7ed630b1af988a987e2f1c8d57b87eed2 100644 (file)
@@ -1,6 +1,5 @@
 local fs = require "nixio.fs"
 local file = "/www/luci-static/index_user.html"
-luci.i18n.loadc("freifunk")
 
 m = Map("freifunk", translate("Edit index page"), translate("You can display additional content on the public index page by inserting valid XHTML in the form below.<br />Headlines should be enclosed between &lt;h2&gt; and &lt;/h2&gt;."))
 
index 92169a80da92c65c9a0df5a124299f3feaff4406..e0252ba8919cfc5ca234d9d9eaa7a6aa8f25c39e 100644 (file)
@@ -17,7 +17,6 @@ else
        mail = contact.mail
 end
 
-luci.i18n.loadc("freifunk")
 %>
 
 <h2><%:Freifunk Overview%></h2>
index be03d87b52590c1fdc9f580a7e755311aa067abe..5099d186fe650c2bb5c8a658f07924194d82235f 100644 (file)
@@ -30,7 +30,6 @@ for i,r in ipairs(request) do
        end
 end
 
-require("luci.i18n").loadc("base")
 require("luci.http").prepare_content("text/html")
 
 -%>