Skip to content

Commit

Permalink
add zh-cn translate
Browse files Browse the repository at this point in the history
  • Loading branch information
riverscn committed Nov 29, 2019
1 parent c78320b commit c4a5ca9
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
luci-app-iptvhelper/po/zh-cn/iptvhelper.po~
2 changes: 1 addition & 1 deletion luci-app-iptvhelper/luasrc/controller/iptvhelper.lua
Expand Up @@ -8,7 +8,7 @@ function index()
return
end

local page = entry({"admin", "services", "IPTV helper"}, cbi("iptvhelper"), _("iptvhelper"))
local page = entry({"admin", "services", "iptvhelper"}, cbi("iptvhelper"), _("IPTV Helper"))
page.dependent = true

end
6 changes: 3 additions & 3 deletions luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua
Expand Up @@ -3,15 +3,15 @@

local sys = require "luci.sys"

m = Map("iptvhelper", translate("iptvhelper"), translate("Help you configure IPTV easily."))
m = Map("iptvhelper", translate("IPTV Helper"), translate("Help you configure IPTV easily. https://github.com/riverscn/openwrt-iptvhelper"))

s = m:section(TypedSection, "tvbox", translate("IPTV topbox parameters."))
s.addremove = true
s.anonymous = false

enable=s:option(Flag, "disabled", translate("Enabled"))
enable.enabled="0"
enable.disabled="1"
enable.enabled = "0"
enable.disabled = "1"
enable.default = "1"
enable.rmempty = false
respawn=s:option(Flag, "respawn", translate("Respawn"))
Expand Down
49 changes: 49 additions & 0 deletions luci-app-iptvhelper/po/templates/iptvhelper.pot
@@ -0,0 +1,49 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:19
msgid "Create ipset"
msgstr ""

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:12
msgid "Enabled"
msgstr ""

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:6
msgid ""
"Help you configure IPTV easily. <a herf=\"https://github.com/riverscn/"
"openwrt-iptvhelper\">Github</a>"
msgstr ""

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/controller/iptvhelper.lua:11
#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:6
msgid "IPTV Helper"
msgstr ""

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:8
msgid "IPTV topbox parameters."
msgstr ""

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:27
msgid "It is usually on the bottom side of topbox."
msgstr ""

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:22
msgid "Redirect topbox's DNS"
msgstr ""

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:17
msgid "Respawn"
msgstr ""

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:26
msgid "Topbox MAC Address"
msgstr ""

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:20
msgid "You can use it in mwan3."
msgstr ""

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:23
msgid "You may need it to jailbreak your topbox."
msgstr ""
47 changes: 47 additions & 0 deletions luci-app-iptvhelper/po/zh-cn/iptvhelper.po
@@ -0,0 +1,47 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8\n"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:19
msgid "Create ipset"
msgstr "创建 ipset"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:12
msgid "Enabled"
msgstr "启用"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:6
msgid "Help you configure IPTV easily. https://github.com/riverscn/openwrt-iptvhelper"
msgstr "帮助你轻松配置IPTV。 https://github.com/riverscn/openwrt-iptvhelper"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/controller/iptvhelper.lua:11
#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:6
msgid "IPTV Helper"
msgstr "IPTV 帮手"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:8
msgid "IPTV topbox parameters."
msgstr "IPTV 机顶盒参数"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:27
msgid "It is usually on the bottom side of topbox."
msgstr "它通常贴在机顶盒的底部"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:22
msgid "Redirect topbox's DNS"
msgstr "重定向机顶盒的DNS"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:17
msgid "Respawn"
msgstr "进程守护"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:26
msgid "Topbox MAC Address"
msgstr "机顶盒MAC地址"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:20
msgid "You can use it in mwan3."
msgstr "你可以在mwan3中使用它"

#: /home/river/src/openwrt/package/river/openwrt-iptvhelper/luci-app-iptvhelper/luasrc/model/cbi/iptvhelper.lua:23
msgid "You may need it to jailbreak your topbox."
msgstr "想要破解机顶盒可能会用到它"

0 comments on commit c4a5ca9

Please sign in to comment.