summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJakub Janco <kubco2@gmail.com>2017-11-29 00:26:51 +0100
committerJakub Janco <kubco2@gmail.com>2017-11-29 00:30:53 +0100
commit890a2fc82816945c94c2c5a208f5ddf9f6dae5e0 (patch)
tree01299725abf4c96ee2f5cb6d343bdcc4a9d6f623 /applications
parent802d5b6becf829975e5e129657b9e63a6590b87c (diff)
luci-app-mwan3: fix member metric allowed values
mwan3 accepts only 1-256 metric of member, if it is more, member is ignored. This patch fix translations and allowed values of member metric input. Signed-off-by: Jakub Janco <kubco2@gmail.com>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua4
-rw-r--r--applications/luci-app-mwan3/po/ja/mwan3.po3
-rw-r--r--applications/luci-app-mwan3/po/templates/mwan3.pot3
-rw-r--r--applications/luci-app-mwan3/po/zh-cn/mwan3.po5
-rw-r--r--applications/luci-app-mwan3/po/zh-tw/mwan3.po5
5 files changed, 16 insertions, 4 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua
index eb6f417af..dc2e0da44 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua
@@ -27,8 +27,8 @@ interface = mwan_member:option(Value, "interface", translate("Interface"))
cbi_add_interface(interface)
metric = mwan_member:option(Value, "metric", translate("Metric"),
- translate("Acceptable values: 1-1000. Defaults to 1 if not set"))
- metric.datatype = "range(1, 1000)"
+ translate("Acceptable values: 1-256. Defaults to 1 if not set"))
+ metric.datatype = "range(1, 256)"
weight = mwan_member:option(Value, "weight", translate("Weight"),
translate("Acceptable values: 1-1000. Defaults to 1 if not set"))
diff --git a/applications/luci-app-mwan3/po/ja/mwan3.po b/applications/luci-app-mwan3/po/ja/mwan3.po
index 34a9f1f3b..ac5b4eecc 100644
--- a/applications/luci-app-mwan3/po/ja/mwan3.po
+++ b/applications/luci-app-mwan3/po/ja/mwan3.po
@@ -34,6 +34,9 @@ msgstr ""
"利用可能な値: 1-100。上記の追跡 IP の合計個数のうち、Up 状態と判定するために"
"に必要な、レスポンスが返された追跡 IP アドレスの個数です。"
+msgid "Acceptable values: 1-256. Defaults to 1 if not set"
+msgstr "利用可能な値: 1-256。空欄の場合のデフォルトは1です。"
+
msgid "Acceptable values: 1-1000. Defaults to 1 if not set"
msgstr "利用可能な値: 1-1000。空欄の場合のデフォルトは1です。"
diff --git a/applications/luci-app-mwan3/po/templates/mwan3.pot b/applications/luci-app-mwan3/po/templates/mwan3.pot
index ed9fdb131..842253c3a 100644
--- a/applications/luci-app-mwan3/po/templates/mwan3.pot
+++ b/applications/luci-app-mwan3/po/templates/mwan3.pot
@@ -21,6 +21,9 @@ msgid ""
"the link to be deemed up"
msgstr ""
+msgid "Acceptable values: 1-256. Defaults to 1 if not set"
+msgstr ""
+
msgid "Acceptable values: 1-1000. Defaults to 1 if not set"
msgstr ""
diff --git a/applications/luci-app-mwan3/po/zh-cn/mwan3.po b/applications/luci-app-mwan3/po/zh-cn/mwan3.po
index d0b92a6df..564e0ea47 100644
--- a/applications/luci-app-mwan3/po/zh-cn/mwan3.po
+++ b/applications/luci-app-mwan3/po/zh-cn/mwan3.po
@@ -32,8 +32,11 @@ msgid ""
msgstr ""
"取值范围:1-100。这个设置项指定了当多少个 IP 地址能够连通时接口会被认为在线"
+msgid "Acceptable values: 1-256. Defaults to 1 if not set"
+msgstr "取值范围:1-256。如果不填写,默认值为 1"
+
msgid "Acceptable values: 1-1000. Defaults to 1 if not set"
-msgstr "取值范围:1-100。如果不填写,默认值为 1"
+msgstr "取值范围:1-1000。如果不填写,默认值为 1"
msgid "Advanced"
msgstr "高级"
diff --git a/applications/luci-app-mwan3/po/zh-tw/mwan3.po b/applications/luci-app-mwan3/po/zh-tw/mwan3.po
index 04711ac3d..ce23e77ea 100644
--- a/applications/luci-app-mwan3/po/zh-tw/mwan3.po
+++ b/applications/luci-app-mwan3/po/zh-tw/mwan3.po
@@ -32,8 +32,11 @@ msgid ""
msgstr ""
"取值範圍:1-100。這個設定項指定了當多少個 IP 位址能夠連通時介面會被認為線上"
+msgid "Acceptable values: 1-256. Defaults to 1 if not set"
+msgstr "取值範圍:1-256。如果不填寫,預設值為 1"
+
msgid "Acceptable values: 1-1000. Defaults to 1 if not set"
-msgstr "取值範圍:1-100。如果不填寫,預設值為 1"
+msgstr "取值範圍:1-1000。如果不填寫,預設值為 1"
msgid "Advanced"
msgstr "高階"