luci: optimize passwall check update tips

This commit is contained in:
Tianhe Y 2023-04-01 17:56:33 +08:00 committed by sbwml
parent 22816e9c24
commit 9a01d667f2
3 changed files with 11 additions and 5 deletions

View File

@ -876,6 +876,6 @@ function to_check_self()
has_update = true,
local_version = local_version,
remote_version = remote_version,
error = remote_version
error = i18n.translatef("The latest version: %s, currently does not support automatic update, if you need to update, please compile or download the ipk and then manually install.", remote_version)
}
end

View File

@ -9,7 +9,7 @@ local version = {}
var appInfoList = new Array();
var inProgressCount = 0;
var tokenStr = '<%=token%>';
var manuallyUpdateText = '<%:Manually update%>';
var checkUpdateText = '<%:Check update%>';
var noUpdateText = '<%:It is the latest version%>';
var updateSuccessText = '<%:Update successful%>';
var clickToUpdateText = '<%:Click to update%>';
@ -55,7 +55,7 @@ local version = {}
function onRequestError(btn, errorMessage) {
btn.disabled = false;
btn.value = manuallyUpdateText;
btn.value = checkUpdateText;
var ckeckDetailElm = document.getElementById(btn.id + '-detail');
if (errorMessage && ckeckDetailElm) {
@ -179,7 +179,7 @@ local version = {}
<div class="cbi-value-field">
<span><%=api.get_version()%> 】</span>
<input class="btn cbi-button cbi-button-apply" type="button" id="passwall-check_btn"
onclick="onBtnClick(this,'passwall');" value="<%:Manually update%>" />
onclick="onBtnClick(this,'passwall');" value="<%:Check update%>" />
<span id="passwall-check_btn-detail"></span>
</div>
</div>
@ -193,7 +193,7 @@ local version = {}
<div class="cbi-value-field">
<span><%=version[k] ~="" and version[k] or translate("Null") %> 】</span>
<input class="btn cbi-button cbi-button-apply" type="button" id="_<%=k%>-check_btn"
onclick="onBtnClick(this,'<%=k%>');" value="<%:Manually update%>" />
onclick="onBtnClick(this,'<%=k%>');" value="<%:Check update%>" />
<span id="_<%=k%>-check_btn-detail"></span>
</div>
</div>

View File

@ -757,9 +757,15 @@ msgstr "主要"
msgid "Standby"
msgstr "备用"
msgid "Check update"
msgstr "检查更新"
msgid "Manually update"
msgstr "手动更新"
msgid "The latest version: %s, currently does not support automatic update, if you need to update, please compile or download the ipk and then manually install."
msgstr "最新版本:%s目前暂不支持自动更新如需更新请自行编译或下载ipk然后手动安装。"
msgid "Enable custom URL"
msgstr "启用自定义规则地址"