Skip to content
Snippets Groups Projects
Commit 613dceaa authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-config-mode-geo-location: add translations

parent 325eeb4f
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,9 @@ PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) ...@@ -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-geo-location define Package/gluon-config-mode-geo-location
SECTION:=gluon SECTION:=gluon
CATEGORY:=Gluon CATEGORY:=Gluon
...@@ -22,10 +25,12 @@ define Build/Configure ...@@ -22,10 +25,12 @@ define Build/Configure
endef endef
define Build/Compile define Build/Compile
$(call GluonBuildI18N,gluon-config-mode-geo-location)
endef endef
define Package/gluon-config-mode-geo-location/install define Package/gluon-config-mode-geo-location/install
$(CP) ./files/* $(1)/ $(CP) ./files/* $(1)/
$(call GluonInstallI18N,gluon-config-mode-geo-location,$(1))
endef endef
$(eval $(call BuildPackage,gluon-config-mode-geo-location)) $(eval $(call BuildPackage,gluon-config-mode-geo-location))
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,
[[Um deinen Knoten auf der Karte anzeigen zu können, benötigen i18n.translate("If you want your node to be displayed on the map, you can enter its coodinates here."))
wir seine Koordinaten. Hier hast du die Möglichkeit, diese zu
hinterlegen.]])
local o local o
o = s:option(cbi.Flag, "_location", "Knoten auf der Karte anzeigen") o = s:option(cbi.Flag, "_location", i18n.translate("Show node on the map"))
o.default = uci:get_first("gluon-node-info", "location", "share_location", o.disabled) o.default = uci:get_first("gluon-node-info", "location", "share_location", o.disabled)
o.rmempty = false o.rmempty = false
o = s:option(cbi.Value, "_latitude", "Breitengrad") o = s:option(cbi.Value, "_latitude", i18n.translate("Latitude"))
o.default = uci:get_first("gluon-node-info", "location", "latitude") o.default = uci:get_first("gluon-node-info", "location", "latitude")
o:depends("_location", "1") o:depends("_location", "1")
o.rmempty = false o.rmempty = false
o.datatype = "float" o.datatype = "float"
o.description = "z.B. 53.873621" o.description = i18n.translatef("e.g. %s", "53.873621")
o = s:option(cbi.Value, "_longitude", "Längengrad") o = s:option(cbi.Value, "_longitude", i18n.translate("Longitude"))
o.default = uci:get_first("gluon-node-info", "location", "longitude") o.default = uci:get_first("gluon-node-info", "location", "longitude")
o:depends("_location", "1") o:depends("_location", "1")
o.rmempty = false o.rmempty = false
o.datatype = "float" o.datatype = "float"
o.description = "z.B. 10.689901" o.description = i18n.translatef("e.g. %s", "10.689901")
end end
function M.handle(data) function M.handle(data)
......
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-03-19 01:05+0100\n"
"Last-Translator: Matthias Schiffer <mschiffer@universe-factory.net>\n"
"Language-Team: German\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid ""
"If you want your node to be displayed on the map, you can enter its "
"coodinates here."
msgstr ""
"Um deinen Knoten auf der Karte anzeigen zu können, benötigen wir seine "
"Koordinaten. Hier hast du die Möglichkeit, diese zu hinterlegen."
msgid "Latitude"
msgstr "Breitengrad"
msgid "Longitude"
msgstr "Längengrad"
msgid "Show node on the map"
msgstr "Knoten auf der Karte anzeigen"
msgid "e.g. %s"
msgstr "z.B. %s"
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-03-19 01:04+0100\n"
"Last-Translator: Matthias Schiffer <mschiffer@universe-factory.net>\n"
"Language-Team: English\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid ""
"If you want your node to be displayed on the map, you can enter its "
"coodinates here."
msgstr ""
"If you want your node to be displayed on the map, you can enter its "
"coodinates here."
msgid "Latitude"
msgstr "Latitude"
msgid "Longitude"
msgstr "Longitude"
msgid "Show node on the map"
msgstr "Show node on the map"
msgid "e.g. %s"
msgstr "e.g. %s"
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid ""
"If you want your node to be displayed on the map, you can enter its "
"coodinates here."
msgstr ""
msgid "Latitude"
msgstr ""
msgid "Longitude"
msgstr ""
msgid "Show node on the map"
msgstr ""
msgid "e.g. %s"
msgstr ""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment