gluon-config-mode-geo-location-with-map: fix spelling and indentation

This commit is contained in:
Jan-Tarek Butt 2018-07-21 00:51:16 +02:00
parent 0218bb6cee
commit cfa68a4fd9
5 changed files with 16 additions and 16 deletions

View File

@ -10,14 +10,14 @@ It is possible to include ``gluon-config-mode-geo-location`` or
gluon-config-mode-geo-location-with-map
---------------------------------------
The package ``gluon-config-mode-geo-location-with-map`` will additionally and a
map where users can pick a position. This map will only shown if the users
computer will have an internet connection.
The package ``gluon-config-mode-geo-location-with-map`` will additionally add a
map where users can pick a position. This map will only be shown if the users
computer has an internet connection.
site.conf
^^^^^^^^^
This option is valid for both typ of package.
This option is valid for both package variants.
config_mode.geo_location.show_altitude \: optional
- ``true`` the altitude section in config mode is shown
@ -35,8 +35,8 @@ config_mode.geo_location.map_lat \: optional
- represents the default latitude center of the location picker map.
- defaults to ``0.0``
The above 2 options will usually shown on a factory flashed Router. If a node
is reenter the config mode the maps center will be on the last defined
The above 2 options will usually be shown on a factory flashed Router. If a node
is reentered the config mode the map's center will be on the last defined
position.
config_mode.geo_location.olurl \: optional

View File

@ -1,8 +1,8 @@
return function(form, uci)
local pkg_i18n = i18n 'gluon-config-mode-geo-location'
local site_i18n = i18n 'gluon-site'
local pkg_i18n = i18n 'gluon-config-mode-geo-location'
local site_i18n = i18n 'gluon-site'
local site = require 'gluon.site'
local site = require 'gluon.site'
local location = uci:get_first("gluon-node-info", "location")
local uci_latitude = uci:get("gluon-node-info", location, "latitude")
@ -30,7 +30,7 @@ return function(form, uci)
#endif
-- show altitude if site.json retruns true or nil and uci an value. Dont show if site.json retruns false or uci nil!
-- show altitude if site.json returns true or nil and uci an value. Don't show if site.json returns false or uci nil!
local function show_altitude()
return site.config_mode.geo_location.show_altitude(uci:get("gluon-node-info", location, "altitude") ~= nil)
end
@ -41,7 +41,7 @@ return function(form, uci)
#ifdef WITHMAP
'If your PC is connected to the internet you can also click on the map displayed below. ' ..
'If your PC is connected to the internet you may also click on the map displayed below. ' ..
#endif

View File

@ -18,12 +18,12 @@ msgid ""
"If you want the location of your node to be displayed on the map, you can "
"enter its coordinates here. "
#ifdef WITHMAP
"If your PC is connected to the internet you can also click on the map displayed below. "
"If your PC is connected to the internet you may also click on the map displayed below. "
#endif
"Please keep in mind setting a location can also enhance the network quality."
msgstr ""
"Um Deinen Router auf der Karte anzeigen zu können, benötigen wir seine "
"Koordinaten. Hier hast Du die Möglichkeit, "
"Um deinen Router auf der Karte anzeigen zu können, benötigen wir seine "
"Koordinaten. Hier hast du die Möglichkeit, "
"die Koordinaten händisch zu hinterlegen."
#ifdef WITHMAP
"Wenn dein Computer mit dem du den Router einrichtest eine Internetverbindung hat, "

View File

@ -18,7 +18,7 @@ msgid ""
"If you want the location of your node to be displayed on the map, you can "
"enter its coordinates here. "
#ifdef WITHMAP
"If your PC is connected to the internet you can also click on the map displayed below. "
"If your PC is connected to the internet you may also click on the map displayed below. "
#endif
"Please keep in mind setting a location can also enhance the network quality."
msgstr ""

View File

@ -5,7 +5,7 @@ msgid ""
"If you want the location of your node to be displayed on the map, you can "
"enter its coordinates here. "
#ifdef WITHMAP
"If your PC is connected to the internet you can also click on the map displayed below. "
"If your PC is connected to the internet you may also click on the map displayed below. "
#endif
"Please keep in mind setting a location can also enhance the network quality."
msgstr ""