update translation

This commit is contained in:
sbwml 2022-08-12 23:04:49 +08:00
parent cd2e727421
commit 01c29a88b0
4 changed files with 26 additions and 12 deletions

View File

@ -10,21 +10,21 @@ function index()
local page
entry({"admin", "network", "appfilter"},
alias("admin", "network", "appfilter", "user_list"),
_("应用过滤"), 20).dependent = true
_("App Filter"), 20).dependent = true
entry({"admin", "network", "appfilter", "user_list"},
arcombine(cbi("appfilter/user_list",{hideapplybtn=true, hidesavebtn=true, hideresetbtn=true}),
cbi("appfilter/dev_status", {hideapplybtn=true, hidesavebtn=true, hideresetbtn=true})),
_("用户列表"), 21).leaf=true
_("User list"), 21).leaf=true
entry({"admin", "network", "appfilter", "base_setting"},
cbi("appfilter/base_setting"), _("应用过滤规则"), 22).leaf=true
cbi("appfilter/base_setting"), _("App Filter Rules"), 22).leaf=true
entry({"admin", "network", "appfilter", "user_setting"},
cbi("appfilter/user_setting"), _("生效用户"), 23).leaf=true
cbi("appfilter/user_setting"), _("Effective User"), 23).leaf=true
entry({"admin", "network", "appfilter", "time_setting"},
cbi("appfilter/time_setting"), _("生效时间"), 24).leaf=true
cbi("appfilter/time_setting"), _("Effective Time"), 24).leaf=true
entry({"admin", "network", "appfilter", "feature"},
cbi("appfilter/feature", {hideapplybtn=true, hidesavebtn=true, hideresetbtn=true}), _("特征库升级"), 25).leaf=true

View File

@ -13,7 +13,7 @@ local SYS = require "luci.sys"
local m, s
m = Map("appfilter", translate("App Filter"), translate(
"目前不支持旁路模式,请先关闭所有加速(acc)、广告过滤、多拨等可能冲突的模块"))
"Bypass mode is not currently supported, please turn off all possible conflicting modules such as acceleration (acc), advertisement filtering, multi-dialing, etc."))
s = m:section(TypedSection, "global", translate("Basic Settings"))
s:option(Flag, "enable", translate("Enable App Filter"), translate(""))

View File

@ -13,7 +13,7 @@ local SYS = require "luci.sys"
local m, s
m = Map("appfilter", translate(""),
translate("特征库用于描述app特征app过滤效果和个数依赖特征库"))
translate("Feature library is used to describe app features, app filtering effect and number-dependent feature library"))
local rule_count = 0
local version = ""
@ -22,9 +22,9 @@ if nixio.fs.access("/tmp/feature.cfg") then
version = SYS.exec("cat /tmp/feature.cfg |grep \"#version\" | awk '{print $2}'")
end
local display_str = "<strong>当前版本: </strong>" .. version .. "<br><strong>特征码个数:</strong> " ..
local display_str = "<strong>" .. translate("Current Version") .. ": </strong>" .. version .. "<br><strong>" .. translate("App Feature Num") .. ":</strong> " ..
rule_count ..
"<br><strong> 下载地址:</strong><a href=\"https://destan19.github.io\">https://destan19.github.io</a>"
"<br><strong> " .. translate("Download Link") .. ":</strong><a href=\"https://destan19.github.io\" target=\"_blank\">https://destan19.github.io</a>"
s = m:section(TypedSection, "feature", translate("Update feature"), display_str)
fu = s:option(FileUpload, "")

View File

@ -8,6 +8,9 @@ msgstr "应用过滤"
msgid "App Filter"
msgstr "应用过滤"
msgid "User list"
msgstr "用户列表"
msgid "game"
msgstr "游戏"
@ -44,6 +47,15 @@ msgstr "基本设置"
msgid "App Filter Rules"
msgstr "应用过滤规则"
msgid "Effective User"
msgstr "生效用户"
msgid "Effective Time"
msgstr "生效时间"
msgid "Bypass mode is not currently supported, please turn off all possible conflicting modules such as acceleration (acc), advertisement filtering, multi-dialing, etc."
msgstr "目前不支持旁路模式,请先关闭所有加速(acc)、广告过滤、多拨等可能冲突的模块"
msgid "It takes effect for all users by default, and only takes effect for the selected users when checked"
msgstr "默认对所有用户生效,勾选后只对选择的用户生效"
@ -80,11 +92,15 @@ msgstr "过滤状态"
msgid "Data Statistics"
msgstr "数据统计"
msgid "Feature library is used to describe app features, app filtering effect and number-dependent feature library"
msgstr "特征库用于描述app特征app过滤效果和个数依赖特征库"
msgid "Current Version"
msgstr "当前版本"
msgid "Download Link"
msgstr "下载地址"
msgid "App Feature Num"
msgstr "特征码个数"
@ -156,5 +172,3 @@ msgstr "分"
msgid "Enable App Filter"
msgstr "开启应用过滤"