gluon-config-mode-autoupdater: autoupdater disabled message (#1137)

This commit is contained in:
Ruben Barkow 2017-06-23 14:55:38 +02:00 committed by Matthias Schiffer
parent 93c6cf1506
commit 822cfecbf5
4 changed files with 28 additions and 2 deletions

View File

@ -13,5 +13,13 @@ msgstr ""
msgid ""
"This node will automatically update its firmware when a new version is "
"available."
msgstr "Dieser Knoten aktualisiert seine Firmware automatisch, sobald "
msgstr ""
"Dieser Knoten aktualisiert seine Firmware automatisch, sobald "
"eine neue Version vorliegt."
msgid ""
"Automatic updates are disabled. They can be enabled in <em>Advanced "
"settings</em>."
msgstr ""
"Automatische Updates sind deaktiviert. Sie können in den <em>Erweiterten "
"Einstellungen</em> aktiviert werden."

View File

@ -15,3 +15,10 @@ msgid ""
"available."
msgstr "Ce nœud s'actualisera automatiquement quand une nouvelle "
"version sera disponible."
msgid ""
"Automatic updates are disabled. They can be enabled in <em>Advanced "
"settings</em>."
msgstr ""
"Mises à jour automatiques sont désactivées. Ils peuvent être activés dans "
"<em>Paramètres avancés</em>."

View File

@ -5,3 +5,8 @@ msgid ""
"This node will automatically update its firmware when a new version is "
"available."
msgstr ""
msgid ""
"Automatic updates are disabled. They can be enabled in <em>Advanced "
"settings</em>."
msgstr ""

View File

@ -1,8 +1,14 @@
return function(form, uci)
if uci:get_bool("autoupdater", "settings", "enabled") then
local enabled = uci:get_bool("autoupdater", "settings", "enabled")
if enabled then
form:section(
Section, nil,
translate('This node will automatically update its firmware when a new version is available.')
)
else
form:section(
Section, nil,
translate('Automatic updates are disabled. They can be enabled in <em>Advanced settings</em>.')
)
end
end