diff options
author | INAGAKI Hiroshi <musashino.open@gmail.com> | 2017-09-11 22:08:37 +0900 |
---|---|---|
committer | INAGAKI Hiroshi <musashino.open@gmail.com> | 2017-09-11 22:08:37 +0900 |
commit | e1e5509c92cc51b472e94080900fb67a1da70db9 (patch) | |
tree | cb28546da2ac289aff2d94745233e02936d42ff6 /applications | |
parent | b86ed10f849c442cc57e531dd75e87e4499a1118 (diff) |
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>
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua b/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua index c64a5fb30..e2ef1ef21 100644 --- a/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua +++ b/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua @@ -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")) |