Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 0x4A6F-master
  • 0x4A6F-rpi4
  • autinerd/experimental-openwrt-24.10
  • experimental
  • feature/addMikrotikwAP
  • master
  • nrb/airmax-test
  • nrb/ar9344-reset-sequence
  • nrb/ex400-remove-wps
  • nrb/gluon-master-cpe510
  • nrb/test-radv-filter
  • nrbffs/fastd-remove-delay
  • nrbffs/netgear-ex6120
  • v2018.2.2-ffs
  • v2018.2.3-ffs
  • v2019.1-ffs
  • v2019.1.1-ffs
  • v2019.1.2-ffs
  • v2020.1-ffs
  • v2020.1.1-ffs
  • v2020.1.3-ffs
  • v2020.2-ffs
  • v2020.2.1-ffs
  • v2020.2.2-ffs
  • v2020.2.3-ffs
  • v2021.1-ffs
  • v2021.1.1-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • v2022.1.3-ffs
  • v2022.1.4-ffs
  • v2023.1-ffs
  • v2023.2-ffs
  • v2023.2.2-ffs
  • v2023.2.3-ffs
  • v2023.2.4-ffs
  • v2023.2.5-ffs
  • experimental-2022-09-24
  • experimental-2022-09-24-base
  • experimental-2023-03-11
  • experimental-2023-03-11-base
  • experimental-2023-03-12
  • experimental-2023-03-12-base
  • experimental-2023-03-16
  • experimental-2023-03-16-base
  • experimental-2023-03-20
  • experimental-2023-03-20-base
  • experimental-2023-03-23
  • experimental-2023-03-23-base
  • experimental-2023-03-25
  • experimental-2023-03-25-base
  • experimental-2023-03-26
  • experimental-2023-03-26-base
  • experimental-2023-03-30
  • experimental-2023-03-30-base
  • experimental-2023-03-31
  • experimental-2023-03-31-base
  • experimental-2023-04-01
  • experimental-2023-04-01-base
  • experimental-2023-04-08
  • experimental-2023-04-08-base
  • experimental-2023-04-10
  • experimental-2023-04-10-base
  • experimental-2023-04-13
  • experimental-2023-04-13-base
  • experimental-2023-04-15
  • experimental-2023-04-15-base
  • experimental-2023-04-16
  • experimental-2023-04-16-base
  • experimental-2023-04-18
  • experimental-2023-04-18-base
  • experimental-2023-04-20
  • experimental-2023-04-20-base
  • experimental-2023-04-26
  • experimental-2023-04-26-base
  • experimental-2023-04-28
  • experimental-2023-04-28-base
  • experimental-2023-04-30
  • experimental-2023-04-30-base
  • experimental-2023-05-02
  • experimental-2023-05-02-base
  • experimental-2023-05-03
  • experimental-2023-05-03-base
  • experimental-2023-05-12
  • experimental-2023-05-12-base
  • experimental-2023-05-21
  • experimental-2023-05-21-base
  • experimental-2023-05-25
  • experimental-2023-05-25-base
  • experimental-2023-07-02
  • experimental-2023-07-02-base
  • experimental-2023-07-04
  • experimental-2023-07-04-base
  • experimental-2023-07-12
  • experimental-2023-07-12-base
  • experimental-2023-07-16
  • experimental-2023-07-16-base
  • experimental-2023-08-04
  • experimental-2023-08-04-base
  • experimental-2023-08-10
  • experimental-2023-08-10-base
  • experimental-2023-09-08
  • experimental-2023-09-08-base
  • experimental-2023-09-09
  • experimental-2023-09-09-base
  • experimental-2023-09-10
  • experimental-2023-09-10-base
  • experimental-2023-09-11
  • experimental-2023-09-11-base
  • experimental-2023-09-12
  • experimental-2023-09-12-base
  • experimental-2023-09-13
  • experimental-2023-09-13-base
  • experimental-2023-09-15
  • experimental-2023-09-15-base
  • experimental-2023-09-16
  • experimental-2023-09-16-base
  • experimental-2023-09-18
  • experimental-2023-09-18-base
  • experimental-2023-09-20
  • experimental-2023-09-20-base
  • experimental-2023-09-27
  • experimental-2023-09-27-base
  • experimental-2023-09-28
  • experimental-2023-09-28-base
  • experimental-2023-09-29
  • experimental-2023-09-29-base
  • experimental-2023-10-02
  • experimental-2023-10-02-base
  • experimental-2023-10-13
  • experimental-2023-10-13-base
  • experimental-2023-10-14
  • experimental-2023-10-14-base
  • experimental-2023-10-16
  • experimental-2023-10-16-base
  • experimental-2023-10-23
  • experimental-2023-10-23-base
137 results

Target

Select target project
  • firmware/gluon
  • 0x4A6F/gluon
  • patrick/gluon
3 results
Select Git revision
  • 0x4A6F-master
  • 0x4A6F-rpi4
  • 2014.3.x
  • 2014.4.x
  • babel
  • hoodselector
  • master
  • radv-filterd
  • v2015.1.x
  • v2016.1.x
  • v2016.2.4-batmanbug
  • v2016.2.x
  • v2018.2.2-ffs
  • v2018.2.x
  • v2014.1
  • v2014.2
  • v2014.3
  • v2014.3.1
  • v2014.4
  • v2015.1
  • v2015.1.1
  • v2015.1.2
  • v2016.1
  • v2016.1.1
  • v2016.1.2
  • v2016.1.3
  • v2016.1.4
  • v2016.1.5
  • v2016.1.6
  • v2016.2
  • v2016.2.1
  • v2016.2.2
  • v2016.2.3
  • v2016.2.4
  • v2016.2.5
  • v2016.2.6
  • v2016.2.7
  • v2017.1
  • v2017.1.1
  • v2017.1.2
  • v2017.1.3
  • v2017.1.4
  • v2017.1.5
  • v2017.1.6
  • v2017.1.7
  • v2017.1.8
  • v2018.1
  • v2018.1.1
  • v2018.1.2
  • v2018.1.3
  • v2018.1.4
  • v2018.2
  • v2018.2-ffs0.1
  • v2018.2.1
  • v2018.2.1-ffs0.1
  • v2018.2.2-ffs0.1
56 results
Show changes
Showing
with 166 additions and 127 deletions
...@@ -2,11 +2,11 @@ msgid "" ...@@ -2,11 +2,11 @@ msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8" msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "" msgid ""
"This node will automatically update its firmware when a new version is " "Automatic updates are disabled. They can be enabled in <em>Advanced "
"available." "settings</em>."
msgstr "" msgstr ""
msgid "" msgid ""
"Automatic updates are disabled. They can be enabled in <em>Advanced " "This node will automatically update its firmware when a new version is "
"settings</em>." "available."
msgstr "" msgstr ""
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-config-mode-contact-info PKG_NAME:=gluon-config-mode-contact-info
PKG_VERSION:=1
include ../gluon.mk include ../gluon.mk
......
...@@ -14,20 +14,20 @@ msgid "Contact info" ...@@ -14,20 +14,20 @@ msgid "Contact info"
msgstr "Kontakt" msgstr "Kontakt"
msgid "" msgid ""
"Please provide your contact information here to allow others to contact " "Please provide your contact information here to allow others to contact you. "
"you. Note that this information will be visible <em>publicly</em> on " "Note that this information will be visible <em>publicly</em> on the internet "
"the internet together with your node's coordinates. This means it can " "together with your node's coordinates. This means it can be downloaded and "
"be downloaded and processed by anyone. This information is " "processed by anyone. This information is not required to operate a node. If "
"not required to operate a node. If you chose to enter data, it will be " "you chose to enter data, it will be stored on this node and can be deleted "
"stored on this node and can be deleted by yourself at any time." "by yourself at any time."
msgstr "" msgstr ""
"Bitte hinterlege hier einen Hinweis, um anderen zu ermöglichen, " "Bitte hinterlege hier einen Hinweis, um anderen zu ermöglichen, Kontakt mit "
"Kontakt mit dir aufzunehmen. Beachte, dass dieser Hinweis auch " "dir aufzunehmen. Beachte, dass dieser Hinweis auch <em>öffentlich</em> im "
"<em>öffentlich</em> im Internet, zusammen mit den Koordinaten " "Internet, zusammen mit den Koordinaten deines Knotens, einsehbar sein wird. "
"deines Knotens, einsehbar sein wird. Das bedeutet, dass diese Informationen " "Das bedeutet, dass diese Informationen von jedem heruntergeladen und "
"von jedem heruntergeladen und verarbeitet werden können. Für den Betrieb sind diese " "verarbeitet werden können. Für den Betrieb sind diese Informationen nicht "
"Informationen nicht erforderlich. Eine Speicherung erfolgt auf diesem Knoten. " "erforderlich. Eine Speicherung erfolgt auf diesem Knoten. Die Daten können "
"Die Daten können durch dich in diesem Menü eigenständig gelöscht werden." "durch dich in diesem Menü eigenständig gelöscht werden."
msgid "e.g. E-mail or phone number" msgid "e.g. E-mail or phone number"
msgstr "z.B. E-Mail oder Telefonnummer" msgstr "z.B. E-Mail oder Telefonnummer"
msgid "" msgid ""
msgstr "" msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-08-12 23:30+0100\n" "PO-Revision-Date: 2015-08-12 23:30+0100\n"
"Last-Translator:Tobias Bernot <tqbs@airmail.cc>\n" "Last-Translator:Tobias Bernot <tqbs@airmail.cc>\n"
"Language-Team: French\n" "Language-Team: French\n"
"Language: fr\n" "Language: fr\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
...@@ -14,20 +14,19 @@ msgid "Contact info" ...@@ -14,20 +14,19 @@ msgid "Contact info"
msgstr "Informations de Contact" msgstr "Informations de Contact"
msgid "" msgid ""
"Please provide your contact information here to allow others to contact " "Please provide your contact information here to allow others to contact you. "
"you. Note that this information will be visible <em>publicly</em> on " "Note that this information will be visible <em>publicly</em> on the internet "
"the internet together with your node's coordinates. This means it can " "together with your node's coordinates. This means it can be downloaded and "
"be downloaded and processed by anyone. This information is " "processed by anyone. This information is not required to operate a node. If "
"not required to operate a node. If you chose to enter data, it will be " "you chose to enter data, it will be stored on this node and can be deleted "
"stored on this node and can be deleted by yourself at any time." "by yourself at any time."
msgstr "" msgstr ""
"Entrez vos coordonnées ici si vous souhaitez permettre à d'autres " "Entrez vos coordonnées ici si vous souhaitez permettre à d'autres personnes "
"personnes de communiquer avec vous. Ces informations seront affichées " "de communiquer avec vous. Ces informations seront affichées <em>en ligne</"
"<em>en ligne</em> avec les coordonnées du nœud. Il peut être téléchargé " "em> avec les coordonnées du nœud. Il peut être téléchargé et traité par "
"et traité par tous. Il n'est pas obligatoire " "tous. Il n'est pas obligatoire de fournir ces informations pour pouvoir "
"de fournir ces informations pour pouvoir opérer un nœud. Si vous avez " "opérer un nœud. Si vous avez choisi d'entrer des données, elles seront "
"choisi d'entrer des données, elles seront stockées sur ce nœud et vous " "stockées sur ce nœud et vous pourrez les effacer par vous-même à tout moment."
"pourrez les effacer par vous-même à tout moment."
msgid "e.g. E-mail or phone number" msgid "e.g. E-mail or phone number"
msgstr "Ex : E-mail ou numéro de téléphone" msgstr "Ex : E-mail ou numéro de téléphone"
...@@ -5,12 +5,12 @@ msgid "Contact info" ...@@ -5,12 +5,12 @@ msgid "Contact info"
msgstr "" msgstr ""
msgid "" msgid ""
"Please provide your contact information here to allow others to contact " "Please provide your contact information here to allow others to contact you. "
"you. Note that this information will be visible <em>publicly</em> on " "Note that this information will be visible <em>publicly</em> on the internet "
"the internet together with your node's coordinates. This means it can be " "together with your node's coordinates. This means it can be downloaded and "
"downloaded and processed by anyone. This information is " "processed by anyone. This information is not required to operate a node. If "
"not required to operate a node. If you chose to enter data, it will be " "you chose to enter data, it will be stored on this node and can be deleted "
"stored on this node and can be deleted by yourself at any time." "by yourself at any time."
msgstr "" msgstr ""
msgid "e.g. E-mail or phone number" msgid "e.g. E-mail or phone number"
......
...@@ -2,8 +2,6 @@ return function(form, uci) ...@@ -2,8 +2,6 @@ return function(form, uci)
local pkg_i18n = i18n 'gluon-config-mode-contact-info' local pkg_i18n = i18n 'gluon-config-mode-contact-info'
local site_i18n = i18n 'gluon-site' local site_i18n = i18n 'gluon-site'
local site = require 'gluon.site'
local owner = uci:get_first("gluon-node-info", "owner") local owner = uci:get_first("gluon-node-info", "owner")
local help = site_i18n._translate("gluon-config-mode:contact-help") or pkg_i18n.translate( local help = site_i18n._translate("gluon-config-mode:contact-help") or pkg_i18n.translate(
...@@ -23,7 +21,6 @@ return function(form, uci) ...@@ -23,7 +21,6 @@ return function(form, uci)
o.optional = true o.optional = true
function o:write(data) function o:write(data)
uci:set("gluon-node-info", owner, "contact", data) uci:set("gluon-node-info", owner, "contact", data)
uci:save("gluon-node-info")
end end
return {'gluon-node-info'}
end end
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-config-mode-core PKG_NAME:=gluon-config-mode-core
PKG_VERSION:=2
include ../gluon.mk include ../gluon.mk
......
<h2><%:Your node's setup is now complete.%></h2> <h2><%:Your node's setup is now complete.%></h2>
<% <%
local fs = require "nixio.fs" local util = require "gluon.util"
local util = require "nixio.util"
local parts_dir = "/lib/gluon/config-mode/reboot/"
local files = util.consume(fs.dir(parts_dir) or function() end)
table.sort(files)
local parts = {} local parts = {}
for _, entry in ipairs(files) do for _, entry in ipairs(util.glob('/lib/gluon/config-mode/reboot/*')) do
if entry:sub(1, 1) ~= '.' then local p = assert(loadfile(entry))
local p = assert(loadfile(parts_dir .. entry))
setfenv(p, getfenv()) setfenv(p, getfenv())
table.insert(parts, p) table.insert(parts, p)
end end
end
for _, p in ipairs(parts) do for _, p in ipairs(parts) do
p() p()
......
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html lang="">
<head> <head>
<meta http-equiv="refresh" content="0; URL=/cgi-bin/config" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<meta http-equiv="refresh" content="0; URL=/cgi-bin/config">
</head> </head>
<body> <body>
</body> </body>
......
msgid "" msgid ""
msgstr "" msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-08-12 23:30+0100\n" "PO-Revision-Date: 2015-08-12 23:30+0100\n"
"Last-Translator:Tobias Bernot <tqbs@airmail.cc>\n" "Last-Translator:Tobias Bernot <tqbs@airmail.cc>\n"
"Language-Team: French\n" "Language-Team: French\n"
"Language: fr\n" "Language: fr\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
......
local fs = require "nixio.fs"
local util = require "gluon.util" local util = require "gluon.util"
local nixio_util = require "nixio.util"
local uci = require("simple-uci").cursor() local uci = require("simple-uci").cursor()
local wizard_dir = "/lib/gluon/config-mode/wizard/"
local files = nixio_util.consume(fs.dir(wizard_dir) or function() end)
table.sort(files)
local wizard = {}
for _, entry in ipairs(files) do
if entry:sub(1, 1) ~= '.' then
local f = assert(loadfile(wizard_dir .. entry))
setfenv(f, getfenv())
local w = f()
table.insert(wizard, w)
end
end
local f = Form(translate("Welcome!")) local f = Form(translate("Welcome!"))
f.submit = translate('Save & restart') f.submit = translate('Save & restart')
f.reset = false f.reset = false
...@@ -27,48 +9,35 @@ local s = f:section(Section) ...@@ -27,48 +9,35 @@ local s = f:section(Section)
s.template = "wizard/welcome" s.template = "wizard/welcome"
s.package = "gluon-config-mode-core" s.package = "gluon-config-mode-core"
local commit = {'gluon-setup-mode'} for _, entry in ipairs(util.glob('/lib/gluon/config-mode/wizard/*')) do
local run = {} local section = assert(loadfile(entry))
setfenv(section, getfenv())
for _, w in ipairs(wizard) do section()(f, uci)
for _, c in ipairs(w(f, uci) or {}) do
if type(c) == 'string' then
if not util.contains(commit, c) then
table.insert(commit, c)
end
elseif type(c) == 'function' then
table.insert(run, c)
else
error('invalid wizard module return')
end
end
end end
function f:write() function f:write()
local nixio = require "nixio" local fcntl = require 'posix.fcntl'
local unistd = require 'posix.unistd'
uci:set("gluon-setup-mode", uci:get_first("gluon-setup-mode", "setup_mode"), "configured", true) uci:set("gluon-setup-mode", uci:get_first("gluon-setup-mode", "setup_mode"), "configured", true)
uci:save("gluon-setup-mode")
for _, c in ipairs(commit) do os.execute('exec gluon-reconfigure >/dev/null')
uci:commit(c)
end
for _, r in ipairs(run) do
r()
end
f.template = "wizard/reboot" f.template = "wizard/reboot"
f.package = "gluon-config-mode-core" f.package = "gluon-config-mode-core"
f.hidenav = true f.hidenav = true
if nixio.fork() == 0 then if unistd.fork() == 0 then
-- Replace stdout with /dev/null -- Replace stdout with /dev/null
nixio.dup(nixio.open('/dev/null', 'w'), nixio.stdout) local null = fcntl.open('/dev/null', fcntl.O_WRONLY)
unistd.dup2(null, unistd.STDOUT_FILENO)
-- Sleep a little so the browser can fetch everything required to -- Sleep a little so the browser can fetch everything required to
-- display the reboot page, then reboot the device. -- display the reboot page, then reboot the device.
nixio.nanosleep(1) unistd.sleep(1)
nixio.execp("reboot") unistd.execp('reboot', {[0] = 'reboot'})
end end
end end
......
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-config-mode-domain-select PKG_NAME:=gluon-config-mode-domain-select
PKG_VERSION:=1
include ../gluon.mk include ../gluon.mk
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
return function(form, uci) return function(form, uci)
local site_i18n = i18n 'gluon-site' local site_i18n = i18n 'gluon-site'
local fs = require 'nixio.fs'
local json = require 'jsonc' local json = require 'jsonc'
local site = require 'gluon.site' local site = require 'gluon.site'
local util = require 'gluon.util' local util = require 'gluon.util'
local selected_domain = uci:get('gluon', 'core', 'domain') local selected_domain = uci:get('gluon', 'core', 'domain')
local configured = uci:get_first('gluon-setup-mode','setup_mode', 'configured') == '1' or (selected_domain ~= site.default_domain()) local configured = uci:get_first('gluon-setup-mode','setup_mode', 'configured') == '1' or
(selected_domain ~= site.default_domain())
local function hide_domain_code(domain, code) local function hide_domain_code(domain, code)
if configured and code == selected_domain then if configured and code == selected_domain then
...@@ -22,7 +22,7 @@ return function(form, uci) ...@@ -22,7 +22,7 @@ return function(form, uci)
local function get_domain_list() local function get_domain_list()
local list = {} local list = {}
for domain_path in fs.glob('/lib/gluon/domains/*.json') do for _, domain_path in ipairs(util.glob('/lib/gluon/domains/*.json')) do
local domain_code = domain_path:match('([^/]+)%.json$') local domain_code = domain_path:match('([^/]+)%.json$')
local domain = assert(json.load(domain_path)) local domain = assert(json.load(domain_path))
...@@ -49,20 +49,8 @@ return function(form, uci) ...@@ -49,20 +49,8 @@ return function(form, uci)
o:value(domain.domain_code, domain.domain_name) o:value(domain.domain_code, domain.domain_name)
end end
local domain_changed = false
function o:write(data) function o:write(data)
if data ~= selected_domain then
domain_changed = true
uci:set('gluon', 'core', 'domain', data) uci:set('gluon', 'core', 'domain', data)
uci:save('gluon')
end end
end end
local function reconfigure()
if domain_changed then
os.execute('gluon-reconfigure')
end
end
return {'gluon', reconfigure}
end
include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-config-mode-geo-location-osm
include ../gluon.mk
define Package/gluon-config-mode-geo-location-osm
TITLE:=Set geographic location of a node (map support)
DEPENDS:=+gluon-config-mode-geo-location +gluon-web-osm
endef
define Package/gluon-config-mode-geo-location-osm/install
$(Gluon/Build/Install)
$(INSTALL_DIR) $(1)/lib/gluon/config-mode/www/static/
$(LN) /lib/gluon/web/www/static/gluon-web-osm.js $(1)/lib/gluon/config-mode/www/static/
endef
$(eval $(call BuildPackageGluon,gluon-config-mode-geo-location-osm))
need_number(in_site({'config_mode', 'geo_location', 'osm', 'center', 'lon'}))
need_number(in_site({'config_mode', 'geo_location', 'osm', 'center', 'lat'}))
need_number(in_site({'config_mode', 'geo_location', 'osm', 'zoom'}), false)
need_string(in_site({'config_mode', 'geo_location', 'osm', 'openlayers_url'}), false)
if need_table(in_site({'config_mode', 'geo_location', 'osm', 'tile_layer'}), nil, false) then
need_one_of(in_site({'config_mode', 'geo_location', 'osm', 'tile_layer', 'type'}), {'XYZ'})
need_string(in_site({'config_mode', 'geo_location', 'osm', 'tile_layer', 'url'}))
need_string(in_site({'config_mode', 'geo_location', 'osm', 'tile_layer', 'attributions'}))
end
msgid ""
msgstr ""
"Project-Id-Version: gluon-config-mode-geo-location\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 ""
"You may also select the position on the map displayed below if your computer "
"is connected to the internet at the moment."
msgstr ""
"Wenn dein Computer aktuell mit dem Internet verbunden ist, kann die Position "
"auch auf der hier angezeigten Karte ausgewählt werden."
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid ""
"You may also select the position on the map displayed below if your computer "
"is connected to the internet at the moment."
msgstr ""
local osm = require 'gluon.web.model.osm'
local site = require 'gluon.site'
local M = {}
M.MapValue = osm.MapValue
function M.help(i18n)
local pkg_i18n = i18n 'gluon-config-mode-geo-location-osm'
return pkg_i18n.translate(
'You may also select the position on the map displayed below '
.. 'if your computer is connected to the internet at the moment.'
)
end
function M.options()
local config = site.config_mode.geo_location.osm
return {
openlayers_url = config.openlayers_url(),
tile_layer = config.tile_layer(),
zoom = config.zoom(12),
pos = config.center(),
}
end
return M
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-config-mode-geo-location PKG_NAME:=gluon-config-mode-geo-location
PKG_VERSION:=1
include ../gluon.mk include ../gluon.mk
......
...@@ -10,12 +10,18 @@ msgstr "" ...@@ -10,12 +10,18 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Advertise node position"
msgstr "Knotenposition veröffentlichen"
msgid "Altitude"
msgstr "Höhe"
msgid "" msgid ""
"If you want the location of your node to be displayed on the map, you can " "If you want the location of your node to be displayed on public maps, you "
"enter its coordinates here." "can enter its coordinates here."
msgstr "" msgstr ""
"Um deinen Knoten auf der Karte anzeigen zu können, benötigen wir seine " "Um deinen Knoten auf öffentlichen Karten anzeigen zu können, benötigen wir "
"Koordinaten. Hier hast du die Möglichkeit, diese zu hinterlegen." "seine Koordinaten. Hier hast du die Möglichkeit, diese zu hinterlegen."
msgid "Latitude" msgid "Latitude"
msgstr "Breitengrad" msgstr "Breitengrad"
...@@ -23,8 +29,15 @@ msgstr "Breitengrad" ...@@ -23,8 +29,15 @@ msgstr "Breitengrad"
msgid "Longitude" msgid "Longitude"
msgstr "Längengrad" msgstr "Längengrad"
msgid "Show node on the map" msgid "Set node position"
msgstr "Knoten auf der Karte anzeigen" msgstr "Knotenposition setzen"
msgid ""
"Specifying the altitude is optional; it should only be filled in if an "
"accurate value is known."
msgstr ""
"Die Höhenangabe ist optional und sollte nur gesetzt werden, wenn ein exakter "
"Wert bekannt ist."
msgid "e.g. %s" msgid "e.g. %s"
msgstr "z.B. %s" msgstr "z.B. %s"