luci-app-adblock: Fix LuCI i18n-tools detection issues
LuCI i18n-tools cannot interpret variables, so translations on that are not applied in po/pot by i18n-tools. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
This commit is contained in:
parent
b86ed10f84
commit
e1e5509c92
1 changed files with 9 additions and 1 deletions
|
@ -113,7 +113,15 @@ dv1.template = "adblock/runtime"
|
|||
if parse == nil then
|
||||
dv1.value = translate("n/a")
|
||||
else
|
||||
dv1.value = translate(status)
|
||||
if status == "error" then
|
||||
dv1.value = translate("error")
|
||||
elseif status == "disabled" then
|
||||
dv1.value = translate("disabled")
|
||||
elseif status == "paused" then
|
||||
dv1.value = translate("paused")
|
||||
else
|
||||
dv1.value = translate("enabled")
|
||||
end
|
||||
end
|
||||
|
||||
dv2 = s:option(DummyValue, "", translate("Adblock Version"))
|
||||
|
|
Loading…
Reference in a new issue