From b048311f53f3be549ccdfe29dbf6852517f2d479 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 19 Mar 2015 01:39:45 +0100 Subject: [PATCH] gluon-config-mode-contact-info: add translations --- gluon/gluon-config-mode-contact-info/Makefile | 5 ++++ .../config-mode/wizard/0500-contact-info.lua | 17 +++++++------ .../gluon-config-mode-contact-info/i18n/de.po | 24 +++++++++++++++++++ .../gluon-config-mode-contact-info/i18n/en.po | 23 ++++++++++++++++++ .../i18n/gluon-config-mode-contact-info.pot | 11 +++++++++ 5 files changed, 73 insertions(+), 7 deletions(-) create mode 100644 gluon/gluon-config-mode-contact-info/i18n/de.po create mode 100644 gluon/gluon-config-mode-contact-info/i18n/en.po create mode 100644 gluon/gluon-config-mode-contact-info/i18n/gluon-config-mode-contact-info.pot diff --git a/gluon/gluon-config-mode-contact-info/Makefile b/gluon/gluon-config-mode-contact-info/Makefile index 8d4b74f..6a22fe8 100644 --- a/gluon/gluon-config-mode-contact-info/Makefile +++ b/gluon/gluon-config-mode-contact-info/Makefile @@ -7,6 +7,9 @@ PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) include $(GLUONDIR)/include/package.mk +PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG) + + define Package/gluon-config-mode-contact-info SECTION:=gluon CATEGORY:=Gluon @@ -22,10 +25,12 @@ define Build/Configure endef define Build/Compile + $(call GluonBuildI18N,gluon-config-mode-geo-contact-info) endef define Package/gluon-config-mode-contact-info/install $(CP) ./files/* $(1)/ + $(call GluonInstallI18N,gluon-config-mode-geo-contact-info,$(1)) endef $(eval $(call BuildPackage,gluon-config-mode-contact-info)) diff --git a/gluon/gluon-config-mode-contact-info/files/lib/gluon/config-mode/wizard/0500-contact-info.lua b/gluon/gluon-config-mode-contact-info/files/lib/gluon/config-mode/wizard/0500-contact-info.lua index 6c070bd..f6e3ead 100644 --- a/gluon/gluon-config-mode-contact-info/files/lib/gluon/config-mode/wizard/0500-contact-info.lua +++ b/gluon/gluon-config-mode-contact-info/files/lib/gluon/config-mode/wizard/0500-contact-info.lua @@ -1,20 +1,23 @@ local cbi = require "luci.cbi" +local i18n = require "luci.i18n" local uci = luci.model.uci.cursor() local M = {} function M.section(form) - local s = form:section(cbi.SimpleSection, nil, - [[Hier kannst du einen öffentlichen 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.]]) + local s = form:section(cbi.SimpleSection, nil, i18n.translate( + 'You can provide your contact information here to ' + .. 'allow others to contact you. Please note that ' + .. 'this information will be visible publicly ' + .. '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.rmempty = true o.datatype = "string" - o.description = "z.B. E-Mail oder Telefonnummer" + o.description = "e.g. E-mail or phone number" o.maxlen = 140 end diff --git a/gluon/gluon-config-mode-contact-info/i18n/de.po b/gluon/gluon-config-mode-contact-info/i18n/de.po new file mode 100644 index 0000000..4cf4253 --- /dev/null +++ b/gluon/gluon-config-mode-contact-info/i18n/de.po @@ -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 \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 publicly on " +"the internet together with your node's coordinates." +msgstr "" +"Hier kannst du einen öffentlichen 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." diff --git a/gluon/gluon-config-mode-contact-info/i18n/en.po b/gluon/gluon-config-mode-contact-info/i18n/en.po new file mode 100644 index 0000000..fdf8805 --- /dev/null +++ b/gluon/gluon-config-mode-contact-info/i18n/en.po @@ -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 \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 publicly 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 publicly on " +"the internet together with your node's coordinates." diff --git a/gluon/gluon-config-mode-contact-info/i18n/gluon-config-mode-contact-info.pot b/gluon/gluon-config-mode-contact-info/i18n/gluon-config-mode-contact-info.pot new file mode 100644 index 0000000..eace2af --- /dev/null +++ b/gluon/gluon-config-mode-contact-info/i18n/gluon-config-mode-contact-info.pot @@ -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 publicly on " +"the internet together with your node's coordinates." +msgstr ""