fix translate

This commit is contained in:
fujr 2024-10-24 14:48:24 +08:00
parent 3afb0459bf
commit 46002f12f5
8 changed files with 33 additions and 4 deletions

View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-qmodem-hc PKG_NAME:=luci-app-qmodem-hc
LUCI_TITLE:=hc-g80 sim switch LUCI_TITLE:=hc-g80 sim switch
LUCI_PKGARCH:=all LUCI_PKGARCH:=all
PKG_VERSION:=2.4 PKG_VERSION:=2.4.1
PKG_LICENSE:=GPLv3 PKG_LICENSE:=GPLv3
PKG_LINCESE_FILES:=LICENSE PKG_LINCESE_FILES:=LICENSE
PKG_MAINTAINER:=Tom <fjrcn@outlook.com> PKG_MAINTAINER:=Tom <fjrcn@outlook.com>

View File

@ -17,7 +17,7 @@ judge_time.default = 5
ping_dest = s:option(DynamicList, "ping_dest", translate("Ping Destination")) ping_dest = s:option(DynamicList, "ping_dest", translate("Ping Destination"))
o = s:option(ListValue, "modem_config", translate("WWAN Interface")) o = s:option(ListValue, "modem_config", translate("Modem Config"))
uci:foreach("qmodem", "modem-device", uci:foreach("qmodem", "modem-device",
function(s) function(s)
if s then if s then

View File

@ -40,3 +40,6 @@ msgstr "模块配置"
msgid "SIM Config" msgid "SIM Config"
msgstr "SIM卡配置" msgstr "SIM卡配置"
msgid "Modem Config"
msgstr "模块配置"

View File

@ -40,3 +40,6 @@ msgstr "模块配置"
msgid "SIM Config" msgid "SIM Config"
msgstr "SIM卡配置" msgstr "SIM卡配置"
msgid "Modem Config"
msgstr "模块配置"

View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-qmodem-mwan PKG_NAME:=luci-app-qmodem-mwan
LUCI_TITLE:=Luci qwrt modem mwan support LUCI_TITLE:=Luci qwrt modem mwan support
LUCI_PKGARCH:=all LUCI_PKGARCH:=all
PKG_VERSION:=2.4 PKG_VERSION:=2.4.1
PKG_LICENSE:=GPLv3 PKG_LICENSE:=GPLv3
PKG_LINCESE_FILES:=LICENSE PKG_LINCESE_FILES:=LICENSE
PKG_MAINTAINER:=Tom <fjrcn@outlook.com> PKG_MAINTAINER:=Tom <fjrcn@outlook.com>

View File

@ -29,6 +29,8 @@ member_interface.rmempty = true
member_interface.datatype = "network" member_interface.datatype = "network"
member_interface.template = "cbi/network_netlist" member_interface.template = "cbi/network_netlist"
member_interface.widget = "select" member_interface.widget = "select"
member_interface.description = translate("Priority determines the order of member selection, while weight determines the traffic distribution ratio among members with the same priority.")
o = s:option(DynamicList, 'member_track_ip', translate('Track IP')) o = s:option(DynamicList, 'member_track_ip', translate('Track IP'))
o.datatype = 'host' o.datatype = 'host'
@ -36,12 +38,15 @@ member_priority = s:option(Value, "member_priority", translate("Priority"))
member_priority.rmempty = true member_priority.rmempty = true
member_priority.datatype = "uinteger" member_priority.datatype = "uinteger"
member_priority.default = 1 member_priority.default = 1
member_priority.description = translate("Set the priority for the load balancing member. A higher priority value gives precedence to this member when distributing traffic. The range is from 1 to 255. 1 is the highest priority")
-- member_priority:depends("member_interface", "") -- member_priority:depends("member_interface", "")
member_weight = s:option(Value, "member_weight", translate("Weight")) member_weight = s:option(Value, "member_weight", translate("Weight"))
member_weight.rmempty = true member_weight.rmempty = true
member_weight.datatype = "uinteger" member_weight.datatype = "uinteger"
member_weight.default = 1 member_weight.default = 1
member_weight.description = translate("Set the weight for the load balancing member. A higher weight means more traffic will be assigned to this member. The default value is 1, with a range from 1 to 255.")
-- member_weight:depends("member_interface", "") -- member_weight:depends("member_interface", "")

View File

@ -24,7 +24,16 @@ msgid "Weight"
msgstr "成员权重" msgstr "成员权重"
msgid "Mwan Config" msgid "Mwan Config"
msgstr "mwan配置" msgstr "Mwan配置"
msgid "IPV4 Config" msgid "IPV4 Config"
msgstr "IPV4配置" msgstr "IPV4配置"
msgid "Set the weight for the load balancing member. A higher weight means more traffic will be assigned to this member. The default value is 1, with a range from 1 to 255."
msgstr "设置负载均衡成员的权重。权重越高该成员被分配到的流量越多。默认值为1范围为1到255。"
msgid "Set the priority for the load balancing member. A higher priority value gives precedence to this member when distributing traffic. The range is from 1 to 255. 1 is the highest priority"
msgstr "设置负载均衡成员的优先级。当分发流量时优先级值越高该成员越优先。范围是1到255。1是最高优先级。"
msgid "Priority determines the order of member selection, while weight determines the traffic distribution ratio among members with the same priority."
msgstr "优先级决定成员选择的顺序,而权重决定具有相同优先级的成员之间流量分配比率。"

View File

@ -28,3 +28,12 @@ msgstr "mwan配置"
msgid "IPV4 Config" msgid "IPV4 Config"
msgstr "IPV4配置" msgstr "IPV4配置"
msgid "Set the weight for the load balancing member. A higher weight means more traffic will be assigned to this member. The default value is 1, with a range from 1 to 255."
msgstr "设置负载均衡成员的权重。权重越高该成员被分配到的流量越多。默认值为1范围为1到255。"
msgid "Set the priority for the load balancing member. A higher priority value gives precedence to this member when distributing traffic. The range is from 1 to 255. 1 is the highest priority"
msgstr "设置负载均衡成员的优先级。当分发流量时优先级值越高该成员越优先。范围是1到255。1是最高优先级。"
msgid "Priority determines the order of member selection, while weight determines the traffic distribution ratio among members with the same priority."
msgstr "优先级决定成员选择的顺序,而权重决定具有相同优先级的成员之间流量分配比率。"