diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 13:16:27 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 13:16:27 +0000 |
commit | 1d76d8a2158ec397322e54da0b6ad3ca4cadb621 (patch) | |
tree | 4c4044d2ca009fa88c154379e439bb2dc784b3a4 /applications/luci-voice-core/luasrc | |
parent | a8ac3b344f5dee7a79455faa0c699e561464cf4d (diff) |
applications, modules: remove i18n handling from controller modules as it moved to the themes now
Diffstat (limited to 'applications/luci-voice-core/luasrc')
-rw-r--r-- | applications/luci-voice-core/luasrc/controller/luci_voice.lua | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/applications/luci-voice-core/luasrc/controller/luci_voice.lua b/applications/luci-voice-core/luasrc/controller/luci_voice.lua index 70617af6dc..dc1482e358 100644 --- a/applications/luci-voice-core/luasrc/controller/luci_voice.lua +++ b/applications/luci-voice-core/luasrc/controller/luci_voice.lua @@ -11,26 +11,24 @@ You may obtain a copy of the License at ]]-- - module("luci.controller.luci_voice", package.seeall) function index() - require("luci.i18n") - luci.i18n.loadc("voice_core") + local e - local e = entry({"admin", "voice"}, template("luci_voice/index") , luci.i18n.translate("Voice"), 90) + 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"), luci.i18n.translate("Voice"), 90) + 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"), luci.i18n.translate("Phones"), 90) + 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"), luci.i18n.translate("l_v_adminphones"), 90) + e = entry({"admin", "voice", "phones"}, template("luci_voice/phone_index"), _("Phones"), 90) e.index = true e.i18n = "voice_core" |