modules/admin-full: add missing translations to switch config page
This commit is contained in:
parent
218ca5d731
commit
ba226fda1b
1 changed files with 4 additions and 5 deletions
|
@ -93,13 +93,13 @@ m.uci:foreach("network", "switch",
|
||||||
s = m:section(NamedSection, x['.name'], "switch", translatef("Switch %q", switch_name))
|
s = m:section(NamedSection, x['.name'], "switch", translatef("Switch %q", switch_name))
|
||||||
s.addremove = false
|
s.addremove = false
|
||||||
|
|
||||||
s:option(Flag, "enable", "Enable this switch")
|
s:option(Flag, "enable", translate("Enable this switch"))
|
||||||
.cfgvalue = function(self, section) return Flag.cfgvalue(self, section) or self.enabled end
|
.cfgvalue = function(self, section) return Flag.cfgvalue(self, section) or self.enabled end
|
||||||
|
|
||||||
s:option(Flag, "enable_vlan", "Enable VLAN functionality")
|
s:option(Flag, "enable_vlan", translate("Enable VLAN functionality"))
|
||||||
.cfgvalue = function(self, section) return Flag.cfgvalue(self, section) or self.enabled end
|
.cfgvalue = function(self, section) return Flag.cfgvalue(self, section) or self.enabled end
|
||||||
|
|
||||||
s:option(Flag, "reset", "Reset switch during setup")
|
s:option(Flag, "reset", translate("Reset switch during setup"))
|
||||||
.cfgvalue = function(self, section) return Flag.cfgvalue(self, section) or self.enabled end
|
.cfgvalue = function(self, section) return Flag.cfgvalue(self, section) or self.enabled end
|
||||||
|
|
||||||
|
|
||||||
|
@ -266,8 +266,7 @@ m.uci:foreach("network", "switch",
|
||||||
s = m:section(TypedSection, "switch",
|
s = m:section(TypedSection, "switch",
|
||||||
translatef("Port PVIDs on %q", switch_name),
|
translatef("Port PVIDs on %q", switch_name),
|
||||||
translate("Port <abbr title=\"Primary VLAN IDs\">PVIDs</abbr> specify " ..
|
translate("Port <abbr title=\"Primary VLAN IDs\">PVIDs</abbr> specify " ..
|
||||||
"the default VLAN ID added to received untagged frames.<br />" ..
|
"the default VLAN ID added to received untagged frames."))
|
||||||
"Leave the ID field empty to disable auto tagging on the associated port."))
|
|
||||||
|
|
||||||
s.template = "cbi/tblsection"
|
s.template = "cbi/tblsection"
|
||||||
s.addremove = false
|
s.addremove = false
|
||||||
|
|
Loading…
Reference in a new issue