[applications] luci-olsr: Add some missing translations
[project/luci.git] / applications / luci-olsr / luasrc / model / cbi / olsr / olsrdhna.lua
index b784ea1..4a1e693 100644 (file)
@@ -12,16 +12,25 @@ You may obtain a copy of the License at
 $Id$
 ]]--
 
-mh = Map("olsrd", "OLSR - HNA Announcements")
+mh = Map("olsrd", translate("OLSR - HNA-Announcements"))
 
-for i, sect in ipairs({ "Hna4", "Hna6" }) do
-       hna = mh:section(TypedSection, sect)
-       hna.addremove = true
-       hna.anonymous = true
-       hna.template  = "cbi/tblsection"
 
-       net = hna:option(Value, "NetAddr")
-       msk = hna:option(Value, "Prefix")
-end
+hna4 = mh:section(TypedSection, "Hna4", "Hna4")
+hna4.addremove = true
+hna4.anonymous = true
+hna4.template  = "cbi/tblsection"
+
+net4 = hna4:option(Value, "netaddr", translate("Network address"))
+msk4 = hna4:option(Value, "netmask", translate("Netmask"))
+
+
+hna6 = mh:section(TypedSection, "Hna6", "Hna6")
+hna6.addremove = true
+hna6.anonymous = true
+hna6.template  = "cbi/tblsection"
+
+net6 = hna6:option(Value, "netaddr", translate("Network address"))
+msk6 = hna6:option(Value, "prefix", translate("Prefix"))
+
 
 return mh