Skip to content
Snippets Groups Projects
Commit b02b452c authored by rubo77's avatar rubo77
Browse files

Anpassungen an 2018.1.x: pkg_i18n.translate()

parent 8c6294c7
Branches
No related tags found
No related merge requests found
local uci = require('simple-uci').cursor() local uci = require('simple-uci').cursor()
local util = require 'gluon.util' local util = require 'gluon.util'
local f = Form(translate('Offline-SSID')) local f = Form(pkg_i18n.translate('Offline-SSID'))
local s = f:section(Section, nil, translate( local s = f:section(Section, nil, pkg_i18n.translate(
'Here you can enable to automatically change the SSID to the Offline-SSID ' 'Here you can enable to automatically change the SSID to the Offline-SSID '
.. 'when the node has no connection to the selected Gateway.' .. 'when the node has no connection to the selected Gateway.'
)) ))
local enabled = s:option(Flag, 'enabled', translate('Enabled')) local enabled = s:option(Flag, 'enabled', pkg_i18n.translate('Enabled'))
enabled.default = uci:get_bool('ssid-changer', 'settings', 'enabled') enabled.default = uci:get_bool('ssid-changer', 'settings', 'enabled')
-- local prefix = s:option(Value, 'prefix', translate('First part of the Offline SSID')) -- local prefix = s:option(Value, 'prefix', pkg_i18n.translate('First part of the Offline SSID'))
-- prefix:depends(enabled, true) -- prefix:depends(enabled, true)
-- prefix.datatype = 'maxlength(32)' -- prefix.datatype = 'maxlength(32)'
-- prefix.default = uci:get('ssid-changer', 'settings', 'prefix') -- prefix.default = uci:get('ssid-changer', 'settings', 'prefix')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment