Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
firmware
Gluon SSID Changer
Commits
b02b452c
Commit
b02b452c
authored
Feb 27, 2018
by
rubo77
Browse files
Anpassungen an 2018.1.x: pkg_i18n.translate()
parent
8c6294c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
gluon-ssid-changer/luasrc/lib/gluon/web/model/admin/ssid-changer.lua
View file @
b02b452c
local
uci
=
require
(
'simple-uci'
).
cursor
()
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 '
..
'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'
)
-- 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.datatype = 'maxlength(32)'
-- prefix.default = uci:get('ssid-changer', 'settings', 'prefix')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment