gluon-config-mode-autoupdater: add translations for English and German
This commit is contained in:
parent
0a1e1ad37e
commit
c6f96c3666
@ -7,6 +7,9 @@ PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|||||||
|
|
||||||
include $(GLUONDIR)/include/package.mk
|
include $(GLUONDIR)/include/package.mk
|
||||||
|
|
||||||
|
PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
|
||||||
|
|
||||||
|
|
||||||
define Package/gluon-config-mode-autoupdater
|
define Package/gluon-config-mode-autoupdater
|
||||||
SECTION:=gluon
|
SECTION:=gluon
|
||||||
CATEGORY:=Gluon
|
CATEGORY:=Gluon
|
||||||
@ -26,10 +29,12 @@ define Build/Configure
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
|
$(call GluonBuildI18N,gluon-config-mode-autoupdater)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-config-mode-autoupdater/install
|
define Package/gluon-config-mode-autoupdater/install
|
||||||
$(CP) ./files/* $(1)/
|
$(CP) ./files/* $(1)/
|
||||||
|
$(call GluonInstallI18N,gluon-config-mode-autoupdater,$(1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,gluon-config-mode-autoupdater))
|
$(eval $(call BuildPackage,gluon-config-mode-autoupdater))
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
local cbi = require "luci.cbi"
|
local cbi = require "luci.cbi"
|
||||||
|
local i18n = require "luci.i18n"
|
||||||
local uci = luci.model.uci.cursor()
|
local uci = luci.model.uci.cursor()
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
@ -7,8 +8,7 @@ function M.section(form)
|
|||||||
local enabled = uci:get_bool("autoupdater", "settings", "enabled")
|
local enabled = uci:get_bool("autoupdater", "settings", "enabled")
|
||||||
if enabled then
|
if enabled then
|
||||||
local s = form:section(cbi.SimpleSection, nil,
|
local s = form:section(cbi.SimpleSection, nil,
|
||||||
[[Dieser Knoten aktualisiert seine Firmware automatisch, sobald
|
i18n.translate('This node will automatically update its firmware when a new version is available.'))
|
||||||
eine neue Version vorliegt.]])
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
17
package/gluon-config-mode-autoupdater/i18n/de.po
Normal file
17
package/gluon-config-mode-autoupdater/i18n/de.po
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"PO-Revision-Date: 2015-03-18 16:03+0100\n"
|
||||||
|
"Last-Translator: Matthias Schiffer <mschiffer@universe-factory.net>\n"
|
||||||
|
"Language-Team: German\n"
|
||||||
|
"Language: de\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"This node will automatically update its firmware when a new version is "
|
||||||
|
"available."
|
||||||
|
msgstr "Dieser Knoten aktualisiert seine Firmware automatisch, sobald "
|
||||||
|
"eine neue Version vorliegt."
|
18
package/gluon-config-mode-autoupdater/i18n/en.po
Normal file
18
package/gluon-config-mode-autoupdater/i18n/en.po
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"PO-Revision-Date: 2015-03-18 16:03+0100\n"
|
||||||
|
"Last-Translator: Matthias Schiffer <mschiffer@universe-factory.net>\n"
|
||||||
|
"Language-Team: English\n"
|
||||||
|
"Language: en\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"This node will automatically update its firmware when a new version is "
|
||||||
|
"available."
|
||||||
|
msgstr ""
|
||||||
|
"This node will automatically update its firmware when a new version is "
|
||||||
|
"available."
|
@ -0,0 +1,7 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr "Content-Type: text/plain; charset=UTF-8"
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"This node will automatically update its firmware when a new version is "
|
||||||
|
"available."
|
||||||
|
msgstr ""
|
Loading…
Reference in New Issue
Block a user