Skip to content

Commit

Permalink
Update client.lua (#4097)
Browse files Browse the repository at this point in the history
* Update client.lua

Refined English to accurately convey the state of the Config file.

---------

Co-authored-by: sangyishuje1123 <[email protected]>
Co-authored-by: vernesong <[email protected]>
  • Loading branch information
3 people authored Oct 7, 2024
1 parent 1dc6674 commit f29d38e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions luci-app-openclash/luasrc/model/cbi/openclash/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
end

1 comment on commit f29d38e

@Dawneng
Copy link

@Dawneng Dawneng commented on f29d38e Oct 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image
汉化部分未修改

Please sign in to comment.