treewide: Fix typos in UI strings

Signed-off-by: David Yang <mmyangfl@gmail.com>
This commit is contained in:
yangfl 2018-08-18 12:21:21 +08:00
parent 641475ee59
commit ae8b68cfe8
22 changed files with 27 additions and 27 deletions

View file

@ -153,7 +153,7 @@ app_lookupblacklist:value("no", "Do Not Load")
app_lookupblacklist:value("auto", "Load as Required") app_lookupblacklist:value("auto", "Load as Required")
app_lookupblacklist.rmempty = true app_lookupblacklist.rmempty = true
app_lookupcidname = module:option(ListValue, "app_lookupcidname", "Look up CallerID Name from local databas", "") app_lookupcidname = module:option(ListValue, "app_lookupcidname", "Look up CallerID Name from local database", "")
app_lookupcidname:value("yes", "Load") app_lookupcidname:value("yes", "Load")
app_lookupcidname:value("no", "Do Not Load") app_lookupcidname:value("no", "Do Not Load")
app_lookupcidname:value("auto", "Load as Required") app_lookupcidname:value("auto", "Load as Required")

View file

@ -128,7 +128,7 @@ function ubus_call(command, argument, params, variable) {
} }
} }
} else { } else {
error_box("<b>Ubus call faild:</b><br />Request: " + request_json + "<br />Response: " + JSON.stringify(response)) error_box("<b>Ubus call failed:</b><br />Request: " + request_json + "<br />Response: " + JSON.stringify(response))
} }
ubus_closed++; ubus_closed++;
} }
@ -170,7 +170,7 @@ function upgrade_check() {
function upgrade_check_callback(request_text) { function upgrade_check_callback(request_text) {
var request_json = JSON.parse(request_text) var request_json = JSON.parse(request_text)
// create simple output to tell user whats going to be upgrade (release/packages) // create simple output to tell user what's going to be upgrade (release/packages)
var info_output = "" var info_output = ""
if(request_json.version != undefined) { if(request_json.version != undefined) {
info_output += "<h3>New firmware release available</h3>" info_output += "<h3>New firmware release available</h3>"
@ -201,7 +201,7 @@ function upgrade_request() {
// Request the image // Request the image
// Needed values // Needed values
// version/release // version/release
// board_name or model (server tries to find the corrent profile) // board_name or model (server tries to find the correct profile)
// packages // packages
// The rest is added by server_request() // The rest is added by server_request()
$("#upgrade_button").disabled = true; $("#upgrade_button").disabled = true;
@ -386,7 +386,7 @@ function server_request(request_dict, path, callback) {
error_box(error_box_content) error_box(error_box_content)
} else if (request.status === 501) { } else if (request.status === 501) {
error_box("No sysupgrade file produced, may not supported by modell.") error_box("No sysupgrade file produced, may not supported by model.")
} else if (request.status === 502) { } else if (request.status === 502) {
// python part offline // python part offline

View file

@ -4,7 +4,7 @@
local uci = require "luci.model.uci".cursor() local uci = require "luci.model.uci".cursor()
m = Map("freifunk-policyrouting", translate("Policy Routing"), translate("These pages can be used to setup policy routing for certain firewall zones. ".. m = Map("freifunk-policyrouting", translate("Policy Routing"), translate("These pages can be used to setup policy routing for certain firewall zones. "..
"This is useful if you need to use your own internet connection for yourself but you don't want to share it with others (thats why it can also be ".. "This is useful if you need to use your own internet connection for yourself but you don't want to share it with others (that's why it can also be "..
"called 'Ego Mode'). Your own traffic is then sent via your internet connection while traffic originating from the mesh will use another gateway in the mesh. ")) "called 'Ego Mode'). Your own traffic is then sent via your internet connection while traffic originating from the mesh will use another gateway in the mesh. "))
m:chain("network") m:chain("network")

View file

@ -74,7 +74,7 @@ quality = s:taboption(this_tab, Value, "quality", translate("JPEG compression qu
minimum_size = s:taboption(this_tab, Value, "minimum_size", translate("Drop frames smaller then this limit"),translate("Set the minimum size if the webcam produces small-sized garbage frames. May happen under low light conditions")) minimum_size = s:taboption(this_tab, Value, "minimum_size", translate("Drop frames smaller then this limit"),translate("Set the minimum size if the webcam produces small-sized garbage frames. May happen under low light conditions"))
minimum_size.datatype = "uinteger" minimum_size.datatype = "uinteger"
no_dynctrl = s:taboption(this_tab, Flag, "no_dynctrl", translate("Don't initalize dynctrls"), translate("Do not initalize dynctrls of Linux-UVC driver")) no_dynctrl = s:taboption(this_tab, Flag, "no_dynctrl", translate("Don't initialize dynctrls"), translate("Do not initialize dynctrls of Linux-UVC driver"))
led = s:taboption(this_tab, ListValue, "led", translate("Led control")) led = s:taboption(this_tab, ListValue, "led", translate("Led control"))
led:value("on", translate("On")) led:value("on", translate("On"))
@ -206,7 +206,7 @@ folder=s:taboption(this_tab, Value, "folder", translate("Folder"), translate("Se
--mjpeg=s:taboption(this_tab, Value, "mjpeg", translate("Mjpeg output"), translate("Check to save the stream to an mjpeg file")) --mjpeg=s:taboption(this_tab, Value, "mjpeg", translate("Mjpeg output"), translate("Check to save the stream to an mjpeg file"))
delay=s:taboption(this_tab, Value, "delay", translate("Interval between saving pictures"), translate("Set the inteval in millisecond")) delay=s:taboption(this_tab, Value, "delay", translate("Interval between saving pictures"), translate("Set the interval in millisecond"))
delay.placeholder="5000" delay.placeholder="5000"
delay.datatype = "uinteger" delay.datatype = "uinteger"

View file

@ -259,7 +259,7 @@ function lqmult.validate(self, value)
local host = val[1] local host = val[1]
local mult = val[2] local mult = val[2]
if not host or not mult then if not host or not mult then
return nil, translate("LQMult requires two values (IP address or 'default' and multiplicator) seperated by space.") return nil, translate("LQMult requires two values (IP address or 'default' and multiplicator) separated by space.")
end end
if not (host == "default" or ip.IPv4(host) or ip.IPv6(host)) then if not (host == "default" or ip.IPv4(host) or ip.IPv6(host)) then
return nil, translate("Can only be a valid IPv4 or IPv6 address or 'default'") return nil, translate("Can only be a valid IPv4 or IPv6 address or 'default'")

View file

@ -253,7 +253,7 @@ function lqmult.validate(self, value)
local host = val[1] local host = val[1]
local mult = val[2] local mult = val[2]
if not host or not mult then if not host or not mult then
return nil, translate("LQMult requires two values (IP address or 'default' and multiplicator) seperated by space.") return nil, translate("LQMult requires two values (IP address or 'default' and multiplicator) separated by space.")
end end
if not (host == "default" or ip.IPv6(host)) then if not (host == "default" or ip.IPv6(host)) then
return nil, translate("Can only be a valid IPv6 address or 'default'") return nil, translate("Can only be a valid IPv6 address or 'default'")

View file

@ -84,7 +84,7 @@ function lqmult.validate(self, value)
local host = val[1] local host = val[1]
local mult = val[2] local mult = val[2]
if not host or not mult then if not host or not mult then
return nil, translate("LQMult requires two values (IP address or 'default' and multiplicator) seperated by space.") return nil, translate("LQMult requires two values (IP address or 'default' and multiplicator) separated by space.")
end end
if not (host == "default" or ip.IPv4(host) or ip.IPv6(host)) then if not (host == "default" or ip.IPv4(host) or ip.IPv6(host)) then
return nil, translate("Can only be a valid IPv4 or IPv6 address or 'default'") return nil, translate("Can only be a valid IPv4 or IPv6 address or 'default'")

View file

@ -84,7 +84,7 @@ function lqmult.validate(self, value)
local host = val[1] local host = val[1]
local mult = val[2] local mult = val[2]
if not host or not mult then if not host or not mult then
return nil, translate("LQMult requires two values (IP address or 'default' and multiplicator) seperated by space.") return nil, translate("LQMult requires two values (IP address or 'default' and multiplicator) separated by space.")
end end
if not (host == "default" or ip.IPv6(host)) then if not (host == "default" or ip.IPv6(host)) then
return nil, translate("Can only be a valid IPv6 address or 'default'") return nil, translate("Can only be a valid IPv6 address or 'default'")

View file

@ -9,7 +9,7 @@ local m, s
m = Map("shadowsocks-libev", m = Map("shadowsocks-libev",
translate("Remote Servers"), translate("Remote Servers"),
translate("Definition of remote shadowsocks servers. \ translate("Definition of remote shadowsocks servers. \
Disable any of them will also disable instances refering to it.")) Disable any of them will also disable instances referring to it."))
local sname = arg[1] local sname = arg[1]
if sname then if sname then

View file

@ -5,5 +5,5 @@
module "luci.controller.siitwizard" module "luci.controller.siitwizard"
function index() function index()
entry({"admin", "network", "siitwizard"}, form("siitwizard"), "SIIT 4over6 assistent", 99) entry({"admin", "network", "siitwizard"}, form("siitwizard"), "SIIT 4over6 assistant", 99)
end end

View file

@ -2,7 +2,7 @@
require("luci.model.uci") require("luci.model.uci")
m = Map("luci_splash", translate("Client-Splash"), translate("Client-Splash is a hotspot authentification system for wireless mesh networks.")) m = Map("luci_splash", translate("Client-Splash"), translate("Client-Splash is a hotspot authentication system for wireless mesh networks."))
s = m:section(NamedSection, "general", "core", translate("General")) s = m:section(NamedSection, "general", "core", translate("General"))
s.addremove = false s.addremove = false

View file

@ -4,7 +4,7 @@
m = Map("luci_statistics", m = Map("luci_statistics",
translate("Disk Plugin Configuration"), translate("Disk Plugin Configuration"),
translate( translate(
"The disk plugin collects detailled usage statistics " .. "The disk plugin collects detailed usage statistics " ..
"for selected partitions or whole disks." "for selected partitions or whole disks."
)) ))

View file

@ -7,7 +7,7 @@ require("luci.sys")
m = Map("luci_statistics", m = Map("luci_statistics",
translate("DNS Plugin Configuration"), translate("DNS Plugin Configuration"),
translate( translate(
"The dns plugin collects detailled statistics about dns " .. "The dns plugin collects detailed statistics about dns " ..
"related traffic on selected interfaces." "related traffic on selected interfaces."
)) ))

View file

@ -51,8 +51,8 @@ notify = m:section( TypedSection, "collectd_exec_notify",
translate( translate(
"Here you can define external commands which will be " .. "Here you can define external commands which will be " ..
"started by collectd when certain threshold values have " .. "started by collectd when certain threshold values have " ..
"been reached. The values leading to invokation will be " .. "been reached. The values leading to invocation will be " ..
"feeded to the the called programs stdin." "fed to the the called programs stdin."
)) ))
notify.addremove = true notify.addremove = true
notify.anonymous = true notify.anonymous = true

View file

@ -19,7 +19,7 @@ m = Map("luci_statistics",
translate("Iptables Plugin Configuration"), translate("Iptables Plugin Configuration"),
translate( translate(
"The iptables plugin will monitor selected firewall rules and " .. "The iptables plugin will monitor selected firewall rules and " ..
"collect informations about processed bytes and packets per rule." "collect information about processed bytes and packets per rule."
)) ))
-- collectd_iptables config section -- collectd_iptables config section

View file

@ -9,7 +9,7 @@ local devices = luci.sys.net.devices()
m = Map("luci_statistics", m = Map("luci_statistics",
translate("Netlink Plugin Configuration"), translate("Netlink Plugin Configuration"),
translate( translate(
"The netlink plugin collects extended informations like " .. "The netlink plugin collects extended information like " ..
"qdisc-, class- and filter-statistics for selected interfaces." "qdisc-, class- and filter-statistics for selected interfaces."
)) ))

View file

@ -4,7 +4,7 @@
m = Map("luci_statistics", m = Map("luci_statistics",
translate("Processes Plugin Configuration"), translate("Processes Plugin Configuration"),
translate( translate(
"The processes plugin collects informations like cpu time, " .. "The processes plugin collects information like cpu time, " ..
"page faults and memory usage of selected processes." "page faults and memory usage of selected processes."
)) ))

View file

@ -4,7 +4,7 @@
m = Map("luci_statistics", m = Map("luci_statistics",
translate("TCPConns Plugin Configuration"), translate("TCPConns Plugin Configuration"),
translate( translate(
"The tcpconns plugin collects informations about open tcp " .. "The tcpconns plugin collects information about open tcp " ..
"connections on selected ports." "connections on selected ports."
)) ))

View file

@ -216,7 +216,7 @@ s.addremove = true
t = s:option(ListValue, "type", translate("Policy"), t = s:option(ListValue, "type", translate("Policy"),
translate("<em>Via proxy</em> routes requests to the given target via the specifed upstream proxy, <em>Reject access</em> disables any upstream proxy for the target")) translate("<em>Via proxy</em> routes requests to the given target via the specified upstream proxy, <em>Reject access</em> disables any upstream proxy for the target"))
t:value("proxy", translate("Via proxy")) t:value("proxy", translate("Via proxy"))
t:value("reject", translate("Reject access")) t:value("reject", translate("Reject access"))

View file

@ -158,7 +158,7 @@ function QueryCacheDump()
"unbound-control -c /var/lib/unbound/unbound.conf dump_cache") "unbound-control -c /var/lib/unbound/unbound.conf dump_cache")
local lcldesc = luci.i18n.translate( local lcldesc = luci.i18n.translate(
"This shows Unbound 'cache_dump'. Usefull to check if unbound is actually caching dns entities.") "This shows Unbound 'cache_dump'. Useful to check if unbound is actually caching dns entities.")
luci.template.render("unbound/show-textbox", luci.template.render("unbound/show-textbox",
{heading = "", description = lcldesc, content = lcldata}) {heading = "", description = lcldesc, content = lcldata})

View file

@ -239,7 +239,7 @@ function force_wifi.validate(self, value, d)
if fs.access("/usr/bin/iwinfo") then if fs.access("/usr/bin/iwinfo") then
return value return value
else else
return nil, translate("Could not find required programm /usr/bin/iwinfo") return nil, translate("Could not find required program /usr/bin/iwinfo")
end end
else else
return "1" return "1"

View file

@ -95,6 +95,6 @@ function Template.render(self, scope)
local stat, err = util.copcall(self.template) local stat, err = util.copcall(self.template)
if not stat then if not stat then
error("Failed to execute template '" .. self.name .. "'.\n" .. error("Failed to execute template '" .. self.name .. "'.\n" ..
"A runtime error occured: " .. tostring(err or "(nil)")) "A runtime error occurred: " .. tostring(err or "(nil)"))
end end
end end