Skip to content

Commit

Permalink
update i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
honwen committed May 21, 2017
1 parent 7e32cef commit 00e8107
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-aliddns
PKG_VERSION:=0.1.1
PKG_VERSION:=0.1.2
PKG_RELEASE:=1

PKG_LICENSE:=MIT
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ OpenWrt LuCI for AliDDNS (based on DDNSC)
│   └── aliddns.zh-cn.lmo
└── model/
└── cbi/
└── aliddnslua // LuCI 基本设置
└── aliddns.lua // LuCI 基本设置
```

依赖
Expand Down Expand Up @@ -60,7 +60,7 @@ popd
# 选择要编译的包 LuCI -> 3. Applications
make menuconfig
# 开始编译
make package/feeds/luci-app-aliddns/compile V=99
make package/feeds/luci-app-aliddns/compile V=s
```

[openwrt-sdk]: https://wiki.openwrt.org/doc/howto/obtain.firmware.sdk
Expand Down
15 changes: 6 additions & 9 deletions files/luci/i18n/aliddns.zh-cn.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,26 @@ msgstr "启用"
msgid "Base"
msgstr "基本设置"

msgid "Enable / Disable AliDDNS"
msgstr "开启或关闭阿里动态域名"

msgid "WAN Interface"
msgstr "外网接口"

msgid "Select WAN Interface"
msgstr "选择外网接口"

msgid "Select the Interface for AliDDNS, like wan/pppoe-wan"
msgstr "阿里动态域名的外网接口,如wan/pppoe-wan"
msgid "Select the Interface for AliDDNS, like eth0/pppoe-wan"
msgstr "动态域名的外网接口,如eth0/pppoe-wan"

msgid "Main Domain"
msgstr "主域名"

msgid "Sub Domain"
msgstr "子域名"

msgid "The Main Domain, like: github.com"
msgstr "想要解析的主域名,例如: github.com"
msgid "For example: test.github.com -> github.com"
msgstr "例如: test.github.com 则填: github.com"

msgid "The Sub Domain, example: test.github.com -> test"
msgstr "想要解析的子域名,例如: test.github.com, 则填: test"
msgid "For example: test.github.com -> test"
msgstr "例如: test.github.com, 则填: test"

msgid "Inspection Time"
msgstr "检查时间"
Expand Down
10 changes: 5 additions & 5 deletions files/luci/model/cbi/aliddns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ t=Map("aliddns",translate("AliDDNS"))
e=t:section(TypedSection,"base",translate("Base"))
e.anonymous=true

enable=e:option(Flag,"enable",translate("enable"),translate("Enable / Disable AliDDNS"))
enable=e:option(Flag,"enable",translate("enable"))
enable.rmempty=false

token=e:option(Value,"app_key",translate("Access Key ID"))
email=e:option(Value,"app_secret",translate("Access Key Secret"))

iface=e:option(ListValue,"interface",translate("WAN Interface"),translate("Select the Interface for AliDDNS, like wan/pppoe-wan"))
iface=e:option(ListValue,"interface",translate("WAN Interface"),translate("Select the Interface for AliDDNS, like eth0/pppoe-wan"))
iface:value("",translate("Select WAN Interface"))
for t,e in ipairs(a.net.devices())do
if e~="lo"then iface:value(e)end
if e~="lo" and e~="br-lan"and e~="sit0"then iface:value(e)end
end

iface.rmempty=false
main=e:option(Value,"main_domain",translate("Main Domain"),translate("The Main Domain, like: github.com"))
main=e:option(Value,"main_domain",translate("Main Domain"),translate("For example: test.github.com -> github.com"))
main.rmempty=false
sub=e:option(Value,"sub_domain",translate("Sub Domain"),translate("The Sub Domain, example: test.github.com -> test"))
sub=e:option(Value,"sub_domain",translate("Sub Domain"),translate("For example: test.github.com -> test"))
sub.rmempty=false
time=e:option(Value,"time",translate("Inspection Time"),translate("Unit: Minute, Range: 1-59"))
time.rmempty=false
Expand Down

0 comments on commit 00e8107

Please sign in to comment.