From: Jakub Janco <kubco2@gmail.com> Date: Tue, 28 Nov 2017 23:26:51 +0000 (+0100) Subject: luci-app-mwan3: fix member metric allowed values X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=890a2fc82816945c94c2c5a208f5ddf9f6dae5e0;p=oweals%2Fluci.git 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> --- 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 "é«é"