summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-12-07 21:20:32 +0200
committerGitHub <noreply@github.com>2017-12-07 21:20:32 +0200
commitb7906fc7c283d1b9b3b684b45bae1d820b18504e (patch)
treeef401a204ffdb344f094f7d2919afdd549569e68
parenta41215581d916d2716d6ffb2428a0cfd83bb4e92 (diff)
parent890a2fc82816945c94c2c5a208f5ddf9f6dae5e0 (diff)
Merge pull request #1454 from kubco2/mwan3-fix-member-metric
luci-app-mwan3: fix member metric allowed values
-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 "高階"