applications, modules: remove i18n handling from controller modules as it moved to...
[project/luci.git] / applications / luci-lqtapifoss / luasrc / controller / lqtapifoss.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2019 John Crispin <blogic@openwrt.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 ]]--
13
14 module("luci.controller.lqtapifoss", package.seeall)
15
16 function index()
17         if not nixio.fs.access("/etc/config/telephony") then
18                 return
19         end
20
21         local e
22
23         e = entry({"admin", "telephony"}, template("luci_lqvoip/index") , _("VoIP"), 90)
24         e.index = true
25         e.i18n = "telephony"
26
27         --entry({"admin", "telephony", "config"}, cbi("luci_lqvoip/config") , _("Config"), 10)
28         entry({"admin", "telephony", "account"}, cbi("luci_lqvoip/account") , _("Account"), 20)
29         entry({"admin", "telephony", "contact"}, cbi("luci_lqvoip/contact") , _("Contacts"), 30)
30 end