From f29d38ee1b29286589e700e339b12e5cbae65e36 Mon Sep 17 00:00:00 2001 From: TJT-JTJ <63647882+TJT-JTJ@users.noreply.github.com> Date: Mon, 7 Oct 2024 22:06:54 +0800 Subject: [PATCH] Update client.lua (#4097) * Update client.lua Refined English to accurately convey the state of the Config file. --------- Co-authored-by: sangyishuje1123 <152784766+sangyishuje1123@users.noreply.github.com> Co-authored-by: vernesong <42875168+vernesong@users.noreply.github.com> --- luci-app-openclash/luasrc/model/cbi/openclash/client.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/luci-app-openclash/luasrc/model/cbi/openclash/client.lua b/luci-app-openclash/luasrc/model/cbi/openclash/client.lua index f2d2b271f9..aee952b577 100644 --- a/luci-app-openclash/luasrc/model/cbi/openclash/client.lua +++ b/luci-app-openclash/luasrc/model/cbi/openclash/client.lua @@ -53,9 +53,9 @@ for t,o in ipairs(fs.glob("/etc/openclash/config/*"))do e[t].mtime=os.date("%Y-%m-%d %H:%M:%S",a.mtime) end if uci:get("openclash", "config", "config_path") and string.sub(uci:get("openclash", "config", "config_path"), 23, -1) == e[t].name then - e[t].state=translate("Enable") + e[t].state=translate("Enabled") else - e[t].state=translate("Disable") + e[t].state=translate("Disabled") end e[t].check=translate(config_check(o)) end @@ -75,7 +75,7 @@ if a then ck.template="openclash/cfg_check" sb.template="openclash/sub_info_show" - btnis=tb:option(Button,"switch",translate("Switch Config")) + btnis=tb:option(Button,"switch",translate("Switch To Config")) btnis.template="openclash/other_button" btnis.render=function(o,t,a) if not e[t] then return false end @@ -172,4 +172,4 @@ if uci:get("openclash", "config", "dler_token") then return m, dler, form, s, ap, d else return m, form, s, ap, d -end \ No newline at end of file +end