summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-10-10 11:48:04 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-10-10 11:48:04 +0000
commit6bfef156f2cdcb4e01176ffbac7998625414a8e5 (patch)
tree5620069fbbcb8b9b45a57d51d33be79e24a67483 /applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua
parentbfb5a53c45453fd59d5ee3eb7d370a27d6ee9147 (diff)
* luci/app/openvpn: add translations, various improvements
Diffstat (limited to 'applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua')
-rw-r--r--applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua b/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua
index 964da447e..cadf558bf 100644
--- a/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua
+++ b/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua
@@ -61,7 +61,12 @@ p.instance = arg[1]
local s = m:section( NamedSection, arg[1], "openvpn" )
for _, option in ipairs(basicParams) do
- local o = s:option(option[1], option[2])
+ local o = s:option(
+ option[1], option[2],
+ translate("openvpn_param_%s" % option[2]),
+ translate("openvpn_param_%s_desc" % option[2])
+ )
+
o.optional = true
if option[1] == DummyValue then