gluon-config-mode-contact-info: add translations

This commit is contained in:
Matthias Schiffer 2015-03-19 01:39:45 +01:00
parent 613dceaa25
commit 224f3990e0
5 changed files with 73 additions and 7 deletions

View File

@ -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-contact-info define Package/gluon-config-mode-contact-info
SECTION:=gluon SECTION:=gluon
CATEGORY:=Gluon CATEGORY:=Gluon
@ -22,10 +25,12 @@ define Build/Configure
endef endef
define Build/Compile define Build/Compile
$(call GluonBuildI18N,gluon-config-mode-geo-contact-info)
endef endef
define Package/gluon-config-mode-contact-info/install define Package/gluon-config-mode-contact-info/install
$(CP) ./files/* $(1)/ $(CP) ./files/* $(1)/
$(call GluonInstallI18N,gluon-config-mode-geo-contact-info,$(1))
endef endef
$(eval $(call BuildPackage,gluon-config-mode-contact-info)) $(eval $(call BuildPackage,gluon-config-mode-contact-info))

View File

@ -1,20 +1,23 @@
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 = {}
function M.section(form) function M.section(form)
local s = form:section(cbi.SimpleSection, nil, local s = form:section(cbi.SimpleSection, nil, i18n.translate(
[[Hier kannst du einen <em>öffentlichen</em> Hinweis hinterlegen um 'You can provide your contact information here to '
anderen Freifunkern zu ermöglichen Kontakt mit dir aufzunehmen. Bitte .. 'allow others to contact you. Please note that '
beachte, dass dieser Hinweis auch öffentlich im Internet, zusammen mit .. 'this information will be visible <em>publicly</em> '
den Koordinaten deines Knotens, einsehbar sein wird.]]) .. 'on the internet together with your node\'s coordinates.'
)
)
local o = s:option(cbi.Value, "_contact", "Kontakt") local o = s:option(cbi.Value, "_contact", i18n.translate("Contact info"))
o.default = uci:get_first("gluon-node-info", "owner", "contact", "") o.default = uci:get_first("gluon-node-info", "owner", "contact", "")
o.rmempty = true o.rmempty = true
o.datatype = "string" o.datatype = "string"
o.description = "z.B. E-Mail oder Telefonnummer" o.description = "e.g. E-mail or phone number"
o.maxlen = 140 o.maxlen = 140
end end

View File

@ -0,0 +1,24 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-03-19 01:32+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 "Contact info"
msgstr "Kontakt"
msgid ""
"You can provide your contact information here to allow others to contact "
"you. Please note that this information will be visible <em>publicly</em> on "
"the internet together with your node's coordinates."
msgstr ""
"Hier kannst du einen <em>öffentlichen</em> Hinweis hinterlegen, um "
"anderen Freifunkern zu ermöglichen, Kontakt mit dir aufzunehmen. Bitte "
"beachte, dass dieser Hinweis auch öffentlich im Internet, zusammen mit "
"den Koordinaten deines Knotens, einsehbar sein wird."

View File

@ -0,0 +1,23 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-03-19 01:32+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 "Contact info"
msgstr "Contact info"
msgid ""
"You can provide your contact information here to allow others to contact "
"you. Please note that this information will be visible <em>publicly</em> on "
"the internet together with your node's coordinates."
msgstr ""
"You can provide your contact information here to allow others to contact "
"you. Please note that this information will be visible <em>publicly</em> on "
"the internet together with your node's coordinates."

View File

@ -0,0 +1,11 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "Contact info"
msgstr ""
msgid ""
"You can provide your contact information here to allow others to contact "
"you. Please note that this information will be visible <em>publicly</em> on "
"the internet together with your node's coordinates."
msgstr ""