diff options
author | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2015-05-12 20:31:30 +0200 |
---|---|---|
committer | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2015-05-12 20:31:30 +0200 |
commit | d3b6c375ced552773ec08b8a501b7166b749f14b (patch) | |
tree | 29f673b23aa1a0596f6fe7917c5f3b2ce1746624 /applications/luci-app-ddns/luasrc | |
parent | cc99288242be3e0fe60b61b83bebe272222560c5 (diff) |
luci-app-ddns: reflect changes on ddns-scripts
* reflect updated language file for zh-cn
* change default for retry_count to 0 compatible to ddns-scripts 2.4.2-1
* addition to retry_count help description
* modified dependency on ddns-scripts 2.4.2-1
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Diffstat (limited to 'applications/luci-app-ddns/luasrc')
-rw-r--r-- | applications/luci-app-ddns/luasrc/controller/ddns.lua | 2 | ||||
-rw-r--r-- | applications/luci-app-ddns/luasrc/model/cbi/ddns/detail.lua | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/applications/luci-app-ddns/luasrc/controller/ddns.lua b/applications/luci-app-ddns/luasrc/controller/ddns.lua index 0b82021e2..946dfefbc 100644 --- a/applications/luci-app-ddns/luasrc/controller/ddns.lua +++ b/applications/luci-app-ddns/luasrc/controller/ddns.lua @@ -15,7 +15,7 @@ local SYS = require "luci.sys" local DDNS = require "luci.tools.ddns" -- ddns multiused functions local UTIL = require "luci.util" -DDNS_MIN = "2.2.0-1" -- minimum version of service required +DDNS_MIN = "2.4.2-1" -- minimum version of service required function index() local nxfs = require "nixio.fs" -- global definitions not available diff --git a/applications/luci-app-ddns/luasrc/model/cbi/ddns/detail.lua b/applications/luci-app-ddns/luasrc/model/cbi/ddns/detail.lua index 40a66ef15..27f9a9f26 100644 --- a/applications/luci-app-ddns/luasrc/model/cbi/ddns/detail.lua +++ b/applications/luci-app-ddns/luasrc/model/cbi/ddns/detail.lua @@ -1156,11 +1156,13 @@ function fu.write(self, section, value) end -- retry_count (NEW) -- ######################################################## -rc = ns:taboption("timer", Value, "retry_count", - translate("Error Retry Counter"), - translate("On Error the script will stop execution after given number of retrys") ) -rc.default = 5 -rc.rmempty = false -- validate ourselves for translatable error messages +rc = ns:taboption("timer", Value, "retry_count") +rc.title = translate("Error Retry Counter") +rc.description = translate("On Error the script will stop execution after given number of retrys") + .. "<br />" + .. translate("The default setting of '0' will retry infinite.") +rc.default = 0 +rc.rmempty = false -- validate ourselves for translatable error messages function rc.validate(self, value) if not DTYP.uinteger(value) then return nil, err_tab_timer(self) .. translate("minimum value '0'") |