From 64db0fb90c32b298fdca79b3d0e1176d237c579c Mon Sep 17 00:00:00 2001 From: Mattraks <16359027+Mattraks@users.noreply.github.com> Date: Tue, 31 Mar 2020 23:07:57 +0800 Subject: [PATCH] luci-app-cpufreq:Add translation (#4130) --- package/lean/luci-app-cpufreq/Makefile | 2 +- package/lean/luci-app-cpufreq/luasrc/model/cbi/cpufreq.lua | 2 +- package/lean/luci-app-cpufreq/po/zh-cn/cpufreq.po | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package/lean/luci-app-cpufreq/Makefile b/package/lean/luci-app-cpufreq/Makefile index ba5eeba8b..b2851b27b 100644 --- a/package/lean/luci-app-cpufreq/Makefile +++ b/package/lean/luci-app-cpufreq/Makefile @@ -10,7 +10,7 @@ LUCI_TITLE:=LuCI for CPU Freq Setting LUCI_DEPENDS:=@arm PKG_NAME:=luci-app-cpufreq PKG_VERSION:=1 -PKG_RELEASE:=4 +PKG_RELEASE:=5 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-app-cpufreq/luasrc/model/cbi/cpufreq.lua b/package/lean/luci-app-cpufreq/luasrc/model/cbi/cpufreq.lua index 342a88660..0101624ac 100644 --- a/package/lean/luci-app-cpufreq/luasrc/model/cbi/cpufreq.lua +++ b/package/lean/luci-app-cpufreq/luasrc/model/cbi/cpufreq.lua @@ -30,7 +30,7 @@ s.anonymouse = true governor = s:option(ListValue, "governor", translate("CPU Scaling Governor")) for _, e in ipairs(governor_array) do - if e ~= "" then governor:value(e,string.upper(e)) end + if e ~= "" then governor:value(translate(e,string.upper(e))) end end minfreq = s:option(ListValue, "minifreq", translate("Min Idle CPU Freq")) diff --git a/package/lean/luci-app-cpufreq/po/zh-cn/cpufreq.po b/package/lean/luci-app-cpufreq/po/zh-cn/cpufreq.po index d2e2bf3ad..af3372587 100644 --- a/package/lean/luci-app-cpufreq/po/zh-cn/cpufreq.po +++ b/package/lean/luci-app-cpufreq/po/zh-cn/cpufreq.po @@ -16,6 +16,12 @@ msgstr "Ondemand 自动平衡模式" msgid "Performance Mode" msgstr "Performance 高性能模式(降低游戏转发延迟)" +msgid "ondemand" +msgstr "Ondemand 自动平衡模式" + +msgid "performance" +msgstr "Performance 高性能模式(降低游戏转发延迟)" + msgid "CPU Freq from 48000 to 716000 (Khz)" msgstr "CPU 频率范围为 48000 到 716000 (Khz)"