diff --git a/WP-GPX-Maps.js b/WP-GPX-Maps.js index e0a1c73..7bdb924 100644 --- a/WP-GPX-Maps.js +++ b/WP-GPX-Maps.js @@ -2,7 +2,7 @@ Plugin Name: WP-GPX-Maps Plugin URI: http://www.devfarm.it/ Description: Draws a gpx track with altitude graph -Version: 1.3.9 +Version: 1.3.14 Author: Bastianon Massimo Author URI: http://www.pedemontanadelgrappa.it/ */ @@ -122,7 +122,10 @@ Author URI: http://www.pedemontanadelgrappa.it/ var pluginUrl = params.pluginUrl; var usegpsposition = params.usegpsposition; var currentpositioncon= params.currentpositioncon; + var ThunderforestApiKey = params.TFApiKey; + var hasThunderforestApiKey = (ThunderforestApiKey + '').length > 0; + // Unit of measure settings var l_s; var l_x; @@ -195,7 +198,10 @@ Author URI: http://www.pedemontanadelgrappa.it/ map.mapTypes.set("OSM2", new google.maps.ImageMapType({ getTileUrl: function(coord, zoom) { - return "http://a.tile.opencyclemap.org/cycle/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; + if (hasThunderforestApiKey) + return "http://a.tile.thunderforest.com/cycle/" + zoom + "/" + coord.x + "/" + coord.y + ".png?apikey=" + ThunderforestApiKey; + else + return "http://a.tile.opencyclemap.org/cycle/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; }, tileSize: new google.maps.Size(256, 256), name: "OCM", @@ -205,7 +211,10 @@ Author URI: http://www.pedemontanadelgrappa.it/ map.mapTypes.set("OSM4", new google.maps.ImageMapType({ getTileUrl: function(coord, zoom) { - return "http://a.tile2.opencyclemap.org/transport/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; + if (hasThunderforestApiKey) + return "http://a.tile.thunderforest.com/transport/" + zoom + "/" + coord.x + "/" + coord.y + ".png?apikey=" + ThunderforestApiKey; + else + return "http://a.tile2.opencyclemap.org/transport/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; }, tileSize: new google.maps.Size(256, 256), name: "OCM-Tran", @@ -215,7 +224,10 @@ Author URI: http://www.pedemontanadelgrappa.it/ map.mapTypes.set("OSM5", new google.maps.ImageMapType({ getTileUrl: function(coord, zoom) { - return "http://a.tile3.opencyclemap.org/landscape/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; + if (hasThunderforestApiKey) + return "http://a.tile.thunderforest.com/landscape/" + zoom + "/" + coord.x + "/" + coord.y + ".png?apikey=" + ThunderforestApiKey; + else + return "http://a.tile3.opencyclemap.org/landscape/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; }, tileSize: new google.maps.Size(256, 256), name: "OCM-Land", @@ -938,10 +950,7 @@ Author URI: http://www.pedemontanadelgrappa.it/ } if (graphSpeed != '') { - if (unitspeed == '6') /* min/100m */ - { - l_s = { suf : "min/100m", dec : 2 }; - } + if (unitspeed == '6') /* min/100m */ { l_s = { suf : "min/100m", dec : 2 }; } else if (unitspeed == '5') /* knots */ { l_s = { suf : "knots", dec : 2 }; diff --git a/languages/wp-gpx-maps-bg_BG.po b/languages/wp-gpx-maps-bg_BG.po index 3e52bad..9a15969 100644 --- a/languages/wp-gpx-maps-bg_BG.po +++ b/languages/wp-gpx-maps-bg_BG.po @@ -1,93 +1,93 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:41+0100\n" -"PO-Revision-Date: 2013-11-16 23:13+0200\n" -"Last-Translator: Svilen Savov \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Generator: Poedit 1.5.7\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Височина" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Текуща Позиция" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Скорост" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Пулс" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Ритъм" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Покажи на цял екран" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Изход от цял екран" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "Скрий Снимките" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "Покажи Снкмките" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "Центрирай" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "Обща дистанция" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Максимална височина" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Минимална височина" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Общо изкачване" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Общо спускане" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Средна скорост" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "Общо Време" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Свали" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Запази Промените" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:41+0100\n" +"PO-Revision-Date: 2013-11-16 23:13+0200\n" +"Last-Translator: Svilen Savov \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Generator: Poedit 1.5.7\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Височина" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Текуща Позиция" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Скорост" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Пулс" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Ритъм" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Покажи на цял екран" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Изход от цял екран" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "Скрий Снимките" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "Покажи Снкмките" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "Центрирай" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "Обща дистанция" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Максимална височина" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Минимална височина" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Общо изкачване" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Общо спускане" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Средна скорост" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "Общо Време" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Свали" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Запази Промените" diff --git a/languages/wp-gpx-maps-ca.po b/languages/wp-gpx-maps-ca.po index 6380bbd..b478100 100644 --- a/languages/wp-gpx-maps-ca.po +++ b/languages/wp-gpx-maps-ca.po @@ -1,93 +1,93 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:41+0100\n" -"PO-Revision-Date: 2013-12-14 21:43+0100\n" -"Last-Translator: edgar \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Generator: Poedit 1.5.5\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Altitud" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Posició actual" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Velocitat" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Ritme cardíac" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Cadència" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Anar a pantalla completa" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Sortir de pantalla completa" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "Amagar imatges" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "Mostrar imatges" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "Centrar" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "Distància total" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Altitud màxima" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Altitud mínima" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Ascensió total" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Descens total" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Velocitat mitjana" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "Temps total" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Descarregar" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Desar canvis" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:41+0100\n" +"PO-Revision-Date: 2013-12-14 21:43+0100\n" +"Last-Translator: edgar \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Generator: Poedit 1.5.5\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Altitud" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Posició actual" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Velocitat" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Ritme cardíac" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Cadència" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Anar a pantalla completa" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Sortir de pantalla completa" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "Amagar imatges" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "Mostrar imatges" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "Centrar" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "Distància total" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Altitud màxima" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Altitud mínima" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Ascensió total" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Descens total" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Velocitat mitjana" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "Temps total" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Descarregar" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Desar canvis" diff --git a/languages/wp-gpx-maps-cs_CZ.po b/languages/wp-gpx-maps-cs_CZ.po index 439b1f8..90e4d51 100644 --- a/languages/wp-gpx-maps-cs_CZ.po +++ b/languages/wp-gpx-maps-cs_CZ.po @@ -1,95 +1,95 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-11-21 11:14+0100\n" -"PO-Revision-Date: 2015-11-21 11:18+0100\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Generator: Poedit 1.8.6\n" -"Last-Translator: \n" -"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" -"Language: cs_CZ\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Nadmořská výška" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Aktuální pozice" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Rychlost" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Srdeční tep" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Kadence" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Zvětšit" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Zmenšit" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "Skrýt obrázky" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "Zobrazit obrázky" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "Vycentrovat" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "Celková vzdálenost" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Max. výška" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Min. výška" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Celkem nastoupáno" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Celkem naklesáno" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Průměrná rychlost" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "Celkový čas" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Stáhnout" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Uložit změny" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-21 11:14+0100\n" +"PO-Revision-Date: 2015-11-21 11:18+0100\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Generator: Poedit 1.8.6\n" +"Last-Translator: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" +"Language: cs_CZ\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Nadmořská výška" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Aktuální pozice" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Rychlost" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Srdeční tep" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Kadence" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Zvětšit" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Zmenšit" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "Skrýt obrázky" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "Zobrazit obrázky" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "Vycentrovat" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "Celková vzdálenost" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Max. výška" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Min. výška" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Celkem nastoupáno" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Celkem naklesáno" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Průměrná rychlost" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "Celkový čas" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Stáhnout" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Uložit změny" diff --git a/languages/wp-gpx-maps-de_DE.po b/languages/wp-gpx-maps-de_DE.po index 710f9e8..a1be1ac 100644 --- a/languages/wp-gpx-maps-de_DE.po +++ b/languages/wp-gpx-maps-de_DE.po @@ -1,95 +1,95 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:41+0100\n" -"PO-Revision-Date: 2016-01-18 10:44+0100\n" -"Last-Translator: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"Language: de_DE\n" -"X-Generator: Poedit 1.7.5\n" -"X-Poedit-SearchPath-0: ..\n" -"X-Poedit-SearchPath-1: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Höhe" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Aktuelle Position" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Geschwindigkeit" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Herzfrequenz" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Trittfrequenz" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Vollbildansicht" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Vollbildansicht beenden" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "Bilder verbergen" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "Bilder anzeigen" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "Zurück zur Mitte" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "volle Distanz" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Maximale Höhe" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Minimale Höhe" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Gesamtanstieg" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Gesamtabstieg" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Durchschnittsgeschwindigkeit" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "Gesamtzeit" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Download" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Änderungen speichern" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:41+0100\n" +"PO-Revision-Date: 2016-01-18 10:44+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"Language: de_DE\n" +"X-Generator: Poedit 1.7.5\n" +"X-Poedit-SearchPath-0: ..\n" +"X-Poedit-SearchPath-1: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Höhe" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Aktuelle Position" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Geschwindigkeit" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Herzfrequenz" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Trittfrequenz" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Vollbildansicht" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Vollbildansicht beenden" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "Bilder verbergen" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "Bilder anzeigen" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "Zurück zur Mitte" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "volle Distanz" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Maximale Höhe" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Minimale Höhe" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Gesamtanstieg" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Gesamtabstieg" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Durchschnittsgeschwindigkeit" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "Gesamtzeit" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Download" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Änderungen speichern" diff --git a/languages/wp-gpx-maps-es_ES.po b/languages/wp-gpx-maps-es_ES.po index e903af9..491d7a5 100644 --- a/languages/wp-gpx-maps-es_ES.po +++ b/languages/wp-gpx-maps-es_ES.po @@ -1,93 +1,93 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:42+0100\n" -"PO-Revision-Date: 2013-12-14 21:43+0100\n" -"Last-Translator: edgar \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Generator: Poedit 1.5.5\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Altitud" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Posición actual" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Velocidad" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Ritmo cardíaco" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Cadencia" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Ir a pantalla completa" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Salir de pantalla completa" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "Ocultar Imágenes" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "Mostrar Imágenes" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "Centrar" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "Distancia total" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Elevación máxima" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Elevación mínima" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Total ascendido" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Total descendido" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Velocidad media" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "Tiempo total" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Descargar" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Salvar cambios" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:42+0100\n" +"PO-Revision-Date: 2013-12-14 21:43+0100\n" +"Last-Translator: edgar \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Generator: Poedit 1.5.5\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Altitud" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Posición actual" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Velocidad" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Ritmo cardíaco" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Cadencia" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Ir a pantalla completa" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Salir de pantalla completa" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "Ocultar Imágenes" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "Mostrar Imágenes" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "Centrar" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "Distancia total" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Elevación máxima" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Elevación mínima" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Total ascendido" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Total descendido" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Velocidad media" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "Tiempo total" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Descargar" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Salvar cambios" diff --git a/languages/wp-gpx-maps-fr_FR.po b/languages/wp-gpx-maps-fr_FR.po index 4826fe5..d24f36a 100644 --- a/languages/wp-gpx-maps-fr_FR.po +++ b/languages/wp-gpx-maps-fr_FR.po @@ -1,81 +1,81 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-08-01 13:41+0100\n" -"PO-Revision-Date: 2012-11-01 22:02+0100\n" -"Last-Translator: Hervé \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Generator: Poedit 1.5.4\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:473 -msgid "Altitude" -msgstr "Altitude" - -#: ../wp-gpx-maps.php:474 -msgid "Current Position" -msgstr "Position actuelle" - -#: ../wp-gpx-maps.php:475 -msgid "Speed" -msgstr "Vitesse" - -#: ../wp-gpx-maps.php:476 -msgid "Heart rate" -msgstr "Fréquence cardiaque" - -#: ../wp-gpx-maps.php:477 -msgid "Cadence" -msgstr "Cadence" - -#: ../wp-gpx-maps.php:478 -msgid "Go Full Screen" -msgstr "Plein écran" - -#: ../wp-gpx-maps.php:479 -msgid "Exit Full Screen" -msgstr "Sortir du plein écran" - -#: ../wp-gpx-maps.php:492 -msgid "Total distance" -msgstr "Distance totale" - -#: ../wp-gpx-maps.php:497 -msgid "Max elevation" -msgstr "Altitude maximum" - -#: ../wp-gpx-maps.php:499 -msgid "Min elevation" -msgstr "Altitude minimum" - -#: ../wp-gpx-maps.php:501 -msgid "Total climbing" -msgstr "Denivelé total positif " - -#: ../wp-gpx-maps.php:503 -msgid "Total descent" -msgstr "Denivelé total négatif" - -#: ../wp-gpx-maps.php:507 -msgid "Average speed" -msgstr "Vitesse moyenne" - -#: ../wp-gpx-maps.php:512 -msgid "Total Time" -msgstr "Durée totale" - -#: ../wp-gpx-maps.php:528 -msgid "Download" -msgstr "Télécharger" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Enregistrer" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-08-01 13:41+0100\n" +"PO-Revision-Date: 2012-11-01 22:02+0100\n" +"Last-Translator: Hervé \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Generator: Poedit 1.5.4\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:473 +msgid "Altitude" +msgstr "Altitude" + +#: ../wp-gpx-maps.php:474 +msgid "Current Position" +msgstr "Position actuelle" + +#: ../wp-gpx-maps.php:475 +msgid "Speed" +msgstr "Vitesse" + +#: ../wp-gpx-maps.php:476 +msgid "Heart rate" +msgstr "Fréquence cardiaque" + +#: ../wp-gpx-maps.php:477 +msgid "Cadence" +msgstr "Cadence" + +#: ../wp-gpx-maps.php:478 +msgid "Go Full Screen" +msgstr "Plein écran" + +#: ../wp-gpx-maps.php:479 +msgid "Exit Full Screen" +msgstr "Sortir du plein écran" + +#: ../wp-gpx-maps.php:492 +msgid "Total distance" +msgstr "Distance totale" + +#: ../wp-gpx-maps.php:497 +msgid "Max elevation" +msgstr "Altitude maximum" + +#: ../wp-gpx-maps.php:499 +msgid "Min elevation" +msgstr "Altitude minimum" + +#: ../wp-gpx-maps.php:501 +msgid "Total climbing" +msgstr "Denivelé total positif " + +#: ../wp-gpx-maps.php:503 +msgid "Total descent" +msgstr "Denivelé total négatif" + +#: ../wp-gpx-maps.php:507 +msgid "Average speed" +msgstr "Vitesse moyenne" + +#: ../wp-gpx-maps.php:512 +msgid "Total Time" +msgstr "Durée totale" + +#: ../wp-gpx-maps.php:528 +msgid "Download" +msgstr "Télécharger" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Enregistrer" diff --git a/languages/wp-gpx-maps-hu_HU.po b/languages/wp-gpx-maps-hu_HU.po index 5a446a2..f1d433d 100644 --- a/languages/wp-gpx-maps-hu_HU.po +++ b/languages/wp-gpx-maps-hu_HU.po @@ -1,92 +1,92 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:42+0100\n" -"PO-Revision-Date: 2012-10-30 14:43+0100\n" -"Last-Translator: Biró Tamás \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Magasság" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Aktuális pozíció" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Sebesség" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Szívritmus" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Kadencia" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Teljes képernyő BE" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Teljes képernyő KI" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "Teljes távolság" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Max magasság" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Min magasság" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Össz. emelkedés" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Össz. ereszkedés" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Átlagsebesség" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "Teljes Idő" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Letöltés" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Beállítások mentése" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:42+0100\n" +"PO-Revision-Date: 2012-10-30 14:43+0100\n" +"Last-Translator: Biró Tamás \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Magasság" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Aktuális pozíció" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Sebesség" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Szívritmus" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Kadencia" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Teljes képernyő BE" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Teljes képernyő KI" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "Teljes távolság" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Max magasság" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Min magasság" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Össz. emelkedés" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Össz. ereszkedés" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Átlagsebesség" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "Teljes Idő" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Letöltés" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Beállítások mentése" diff --git a/languages/wp-gpx-maps-it_IT.po b/languages/wp-gpx-maps-it_IT.po index 98c2443..bef55d0 100644 --- a/languages/wp-gpx-maps-it_IT.po +++ b/languages/wp-gpx-maps-it_IT.po @@ -1,94 +1,94 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:48+0100\n" -"PO-Revision-Date: 2013-02-04 09:22+0100\n" -"Last-Translator: \n" -"Language-Team: \n" -"Language: it_IT\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Generator: Poedit 1.5.4\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Altitudine" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Posizione Corrente" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Velocità" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Battito Cardiaco" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Cadenza" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Schermo intero" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Torna a dimensioni originali" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "Nascondi immagini" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "Mostra immagini" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "Ritorna al centro della mappa" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "Distanza totale" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Altitudine massima" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Altitudine minima" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Totale salita" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Totale discesa" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Velocità media" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "Tempo totale" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Scarica" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Salva" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:48+0100\n" +"PO-Revision-Date: 2013-02-04 09:22+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: it_IT\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Generator: Poedit 1.5.4\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Altitudine" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Posizione Corrente" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Velocità" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Battito Cardiaco" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Cadenza" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Schermo intero" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Torna a dimensioni originali" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "Nascondi immagini" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "Mostra immagini" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "Ritorna al centro della mappa" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "Distanza totale" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Altitudine massima" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Altitudine minima" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Totale salita" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Totale discesa" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Velocità media" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "Tempo totale" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Scarica" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Salva" diff --git a/languages/wp-gpx-maps-nl_NL.po b/languages/wp-gpx-maps-nl_NL.po index 51bfdfc..b6e1af0 100644 --- a/languages/wp-gpx-maps-nl_NL.po +++ b/languages/wp-gpx-maps-nl_NL.po @@ -1,93 +1,93 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:41+0100\n" -"PO-Revision-Date: 2012-10-30 14:41+0100\n" -"Last-Translator: Simon Koelewijn\n" -"Language-Team: \n" -"Language: nl_NL\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Hoogte" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Huidige Positie" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Snelheid" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Hartslag" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Cadans" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Volledige Scherm" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Verlaat Volledige Scherm" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Download" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Wijzigingen Opslaan" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:41+0100\n" +"PO-Revision-Date: 2012-10-30 14:41+0100\n" +"Last-Translator: Simon Koelewijn\n" +"Language-Team: \n" +"Language: nl_NL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Hoogte" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Huidige Positie" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Snelheid" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Hartslag" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Cadans" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Volledige Scherm" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Verlaat Volledige Scherm" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Download" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Wijzigingen Opslaan" diff --git a/languages/wp-gpx-maps-pl_PL.po b/languages/wp-gpx-maps-pl_PL.po index 498ffd8..855ed80 100644 --- a/languages/wp-gpx-maps-pl_PL.po +++ b/languages/wp-gpx-maps-pl_PL.po @@ -1,95 +1,95 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:41+0100\n" -"PO-Revision-Date: 2013-03-10 12:33+0100\n" -"Last-Translator: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Generator: Poedit 1.5.5\n" -"Language: pl_PL\n" -"X-Poedit-SourceCharset: UTF-8\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Wysokość" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Aktualna pozycja" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Prędkość" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Tętno" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Kadencja" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Pełny ekran" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Zamknij pełny ekran" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "Ukryj obrazy" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "Pokaż obrazy" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "Wyśrodkuj" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "Całkowity dystans" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Najwyższy punkt" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Najniższy punkt" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Wyskokość podjazdów" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Wysokość zjazdów" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Średnia prędkość" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "Łączny czas" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Pobieranie" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Zapisz zmiany" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:41+0100\n" +"PO-Revision-Date: 2013-03-10 12:33+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Generator: Poedit 1.5.5\n" +"Language: pl_PL\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Wysokość" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Aktualna pozycja" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Prędkość" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Tętno" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Kadencja" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Pełny ekran" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Zamknij pełny ekran" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "Ukryj obrazy" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "Pokaż obrazy" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "Wyśrodkuj" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "Całkowity dystans" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Najwyższy punkt" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Najniższy punkt" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Wyskokość podjazdów" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Wysokość zjazdów" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Średnia prędkość" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "Łączny czas" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Pobieranie" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Zapisz zmiany" diff --git a/languages/wp-gpx-maps-pt_BR.po b/languages/wp-gpx-maps-pt_BR.po index 3e9701c..8e9c352 100644 --- a/languages/wp-gpx-maps-pt_BR.po +++ b/languages/wp-gpx-maps-pt_BR.po @@ -1,93 +1,93 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:42+0100\n" -"PO-Revision-Date: 2013-04-23 18:36-0300\n" -"Last-Translator: André Ramos \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Generator: Poedit 1.5.4\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Altitude" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Posição atual" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Velocidade" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Ritmo cardíaco" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Cadência" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Tela cheia" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Restaura janela" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "Ocultar imagens" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "Centralizar" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "Distância total" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Elevação máxima" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Elevação mínima" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Total subida" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Total descida" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Velocidade média" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "Tempo total" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Baixar arquivo" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Salvar alterações" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:42+0100\n" +"PO-Revision-Date: 2013-04-23 18:36-0300\n" +"Last-Translator: André Ramos \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Generator: Poedit 1.5.4\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Altitude" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Posição atual" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Velocidade" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Ritmo cardíaco" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Cadência" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Tela cheia" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Restaura janela" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "Ocultar imagens" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "Centralizar" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "Distância total" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Elevação máxima" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Elevação mínima" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Total subida" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Total descida" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Velocidade média" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "Tempo total" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Baixar arquivo" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Salvar alterações" diff --git a/languages/wp-gpx-maps-ru_RU.po b/languages/wp-gpx-maps-ru_RU.po index 38a12d6..2e9576e 100644 --- a/languages/wp-gpx-maps-ru_RU.po +++ b/languages/wp-gpx-maps-ru_RU.po @@ -1,93 +1,93 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:41+0100\n" -"PO-Revision-Date: 2013-07-17 20:50+0400\n" -"Last-Translator: G.A.P \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Generator: Poedit 1.5.7\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Высота" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Текущая позиция" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Скорость" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Пульс" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Каденс" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "На весь экран" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Свернуть в окно" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "Скрыть картинки" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "Показать картинки" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "По центру" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "Дистанция" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Максимальная высота" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Минимальная высота" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Подъём" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Спуск" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Средняя скорость" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "Время" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Скачать" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Сохранить изменения" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:41+0100\n" +"PO-Revision-Date: 2013-07-17 20:50+0400\n" +"Last-Translator: G.A.P \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Generator: Poedit 1.5.7\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Высота" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Текущая позиция" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Скорость" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Пульс" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Каденс" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "На весь экран" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Свернуть в окно" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "Скрыть картинки" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "Показать картинки" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "По центру" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "Дистанция" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Максимальная высота" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Минимальная высота" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Подъём" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Спуск" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Средняя скорость" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "Время" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Скачать" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Сохранить изменения" diff --git a/languages/wp-gpx-maps-sv_SE.po b/languages/wp-gpx-maps-sv_SE.po index 2965727..bd697c0 100644 --- a/languages/wp-gpx-maps-sv_SE.po +++ b/languages/wp-gpx-maps-sv_SE.po @@ -1,93 +1,93 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:41+0100\n" -"PO-Revision-Date: 2012-10-30 14:41+0100\n" -"Last-Translator: Per Bjälevik \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Höjd" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Aktuell position" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Hastighet" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Hjärtfrekvens" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Kadens" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Gå till fullskärm" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Avsluta fullskärm" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "Total distans" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Max höjd" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Min höjd" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Höjdstigning" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Höjdförlust" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Medelhastighet" - -#: ../wp-gpx-maps.php:509 -#, fuzzy -msgid "Total Time" -msgstr "Total distans" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "Ladda ner" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Spara ändringar" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:41+0100\n" +"PO-Revision-Date: 2012-10-30 14:41+0100\n" +"Last-Translator: Per Bjälevik \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Höjd" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Aktuell position" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Hastighet" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Hjärtfrekvens" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Kadens" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Gå till fullskärm" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Avsluta fullskärm" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "Total distans" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Max höjd" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Min höjd" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Höjdstigning" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Höjdförlust" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Medelhastighet" + +#: ../wp-gpx-maps.php:509 +#, fuzzy +msgid "Total Time" +msgstr "Total distans" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "Ladda ner" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Spara ändringar" diff --git a/languages/wp-gpx-maps-tr_TR.po b/languages/wp-gpx-maps-tr_TR.po index 516d3f3..3c4c4b7 100644 --- a/languages/wp-gpx-maps-tr_TR.po +++ b/languages/wp-gpx-maps-tr_TR.po @@ -1,94 +1,94 @@ -msgid "" -msgstr "" -"Project-Id-Version: wp-gpx-maps\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-30 14:42+0100\n" -"PO-Revision-Date: 2012-10-30 14:42+0100\n" -"Last-Translator: \n" -"Language-Team: \n" -"Language: tr_TR\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Generator: Poedit 1.5.4\n" -"X-Poedit-SearchPath-0: ..\n" - -#: ../wp-gpx-maps.php:467 -msgid "Altitude" -msgstr "Rakım" - -#: ../wp-gpx-maps.php:468 -msgid "Current Position" -msgstr "Güncel Pozisyon" - -#: ../wp-gpx-maps.php:469 -msgid "Speed" -msgstr "Hız" - -#: ../wp-gpx-maps.php:470 -msgid "Heart rate" -msgstr "Nabız" - -#: ../wp-gpx-maps.php:471 -msgid "Cadence" -msgstr "Kadans" - -#: ../wp-gpx-maps.php:472 -msgid "Go Full Screen" -msgstr "Tam Ekran Gör" - -#: ../wp-gpx-maps.php:473 -msgid "Exit Full Screen" -msgstr "Tam Ekrandan Çık" - -#: ../wp-gpx-maps.php:474 -msgid "Hide Images" -msgstr "" - -#: ../wp-gpx-maps.php:475 -msgid "Show Images" -msgstr "" - -#: ../wp-gpx-maps.php:476 -msgid "Back to center" -msgstr "" - -#: ../wp-gpx-maps.php:489 -msgid "Total distance" -msgstr "Toplam Mesafe" - -#: ../wp-gpx-maps.php:494 -msgid "Max elevation" -msgstr "Maks. İrtifa" - -#: ../wp-gpx-maps.php:496 -msgid "Min elevation" -msgstr "Min. İrtifa" - -#: ../wp-gpx-maps.php:498 -msgid "Total climbing" -msgstr "Toplam Tırmanış" - -#: ../wp-gpx-maps.php:500 -msgid "Total descent" -msgstr "Toplam İniş" - -#: ../wp-gpx-maps.php:504 -msgid "Average speed" -msgstr "Ortalama Hız" - -#: ../wp-gpx-maps.php:509 -msgid "Total Time" -msgstr "Toplam Süre" - -#: ../wp-gpx-maps.php:525 -msgid "Download" -msgstr "İndir" - -#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 -#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 -#: ../wp-gpx-maps_admin_settings.php:364 -msgid "Save Changes" -msgstr "Değişiklikleri Kaydet" +msgid "" +msgstr "" +"Project-Id-Version: wp-gpx-maps\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-30 14:42+0100\n" +"PO-Revision-Date: 2012-10-30 14:42+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: tr_TR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Generator: Poedit 1.5.4\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-gpx-maps.php:467 +msgid "Altitude" +msgstr "Rakım" + +#: ../wp-gpx-maps.php:468 +msgid "Current Position" +msgstr "Güncel Pozisyon" + +#: ../wp-gpx-maps.php:469 +msgid "Speed" +msgstr "Hız" + +#: ../wp-gpx-maps.php:470 +msgid "Heart rate" +msgstr "Nabız" + +#: ../wp-gpx-maps.php:471 +msgid "Cadence" +msgstr "Kadans" + +#: ../wp-gpx-maps.php:472 +msgid "Go Full Screen" +msgstr "Tam Ekran Gör" + +#: ../wp-gpx-maps.php:473 +msgid "Exit Full Screen" +msgstr "Tam Ekrandan Çık" + +#: ../wp-gpx-maps.php:474 +msgid "Hide Images" +msgstr "" + +#: ../wp-gpx-maps.php:475 +msgid "Show Images" +msgstr "" + +#: ../wp-gpx-maps.php:476 +msgid "Back to center" +msgstr "" + +#: ../wp-gpx-maps.php:489 +msgid "Total distance" +msgstr "Toplam Mesafe" + +#: ../wp-gpx-maps.php:494 +msgid "Max elevation" +msgstr "Maks. İrtifa" + +#: ../wp-gpx-maps.php:496 +msgid "Min elevation" +msgstr "Min. İrtifa" + +#: ../wp-gpx-maps.php:498 +msgid "Total climbing" +msgstr "Toplam Tırmanış" + +#: ../wp-gpx-maps.php:500 +msgid "Total descent" +msgstr "Toplam İniş" + +#: ../wp-gpx-maps.php:504 +msgid "Average speed" +msgstr "Ortalama Hız" + +#: ../wp-gpx-maps.php:509 +msgid "Total Time" +msgstr "Toplam Süre" + +#: ../wp-gpx-maps.php:525 +msgid "Download" +msgstr "İndir" + +#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151 +#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333 +#: ../wp-gpx-maps_admin_settings.php:364 +msgid "Save Changes" +msgstr "Değişiklikleri Kaydet" diff --git a/readme.txt b/readme.txt index 04c5430..745ca40 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i Tags: maps, gpx, gps, graph, chart, google maps, track, garmin, image, nextgen-gallery, nextgen, exif, OpenStreetMap, OpenCycleMap, Hike&Bike, heart rate, heartrate, cadence Requires at least: 2.0.0 Tested up to: 4.7.2 -Stable tag: 1.3.13 +Stable tag: 1.3.14 Draws a gpx track with altitude graph. You can also display your nextgen gallery images in the map. @@ -153,7 +153,10 @@ Yes! 1. Altitude & Speed 1. Altitude & Speed & Hearth rate -== Changelog === 1.3.13 = +== Changelog == += 1.3.14 = +* Added Thunderforest Api Key on settings: for OpenCycleMap += 1.3.13 = * Added google maps api key on settings * Removed parameter 'sensor' on google maps js * Added unit of measure of speed for swimmers: min/100 meters diff --git a/wp-gpx-maps.php b/wp-gpx-maps.php index 9e1c6d2..c3fad5d 100644 --- a/wp-gpx-maps.php +++ b/wp-gpx-maps.php @@ -3,7 +3,7 @@ Plugin Name: WP-GPX-Maps Plugin URI: http://www.devfarm.it/ Description: Draws a GPX track with altitude chart -Version: 1.3.13 +Version: 1.3.14 Author: Bastianon Massimo Author URI: http://www.pedemontanadelgrappa.it/ */ @@ -51,7 +51,7 @@ function enqueue_WP_GPX_Maps_scripts() wp_enqueue_script( 'jquery' ); if ($wpgpxmaps_googlemapsv3_apikey) { wp_enqueue_script( 'googlemaps', '//maps.googleapis.com/maps/api/js?key='.$wpgpxmaps_googlemapsv3_apikey, null, null); } else { wp_enqueue_script( 'googlemaps', '//maps.googleapis.com/maps/api/js', null, null); } wp_enqueue_script( 'highcharts', "//code.highcharts.com/3.0.10/highcharts.js", array('jquery'), "3.0.10", true); - wp_enqueue_script( 'WP-GPX-Maps', plugins_url('/WP-GPX-Maps.js', __FILE__), array('jquery','googlemaps','highcharts'), "1.3.13"); + wp_enqueue_script( 'WP-GPX-Maps', plugins_url('/WP-GPX-Maps.js', __FILE__), array('jquery','googlemaps','highcharts'), "1.3.14"); } function print_WP_GPX_Maps_styles() @@ -669,6 +669,7 @@ function handle_WP_GPX_Maps_Shortcodes($attr, $content='') ngGalleries : ['.$ngGalleries.'], ngImages : ['.$ngImages.'], pluginUrl : "'.plugins_url().'", + TFApiKey : "'.get_option('wpgpxmaps_openstreetmap_apikey').'", langs : { altitude : "'.__("Altitude", "wp-gpx-maps").'", currentPosition : "'.__("Current Position", "wp-gpx-maps").'", speed : "'.__("Speed", "wp-gpx-maps").'", @@ -744,8 +745,7 @@ function convertSeconds($s){ function convertSpeed($speed,$uomspeed, $addUom = false){ $uom = ''; - if ($uomspeed == '6') /* min/100 meters */ - { + if ($uomspeed == '6') /* min/100 meters */ { $speed = 1 / $speed * 100 / 60 ; $uom = " min/100m"; } else if ($uomspeed == '5') /* knots */ { @@ -766,6 +766,7 @@ function convertSpeed($speed,$uomspeed, $addUom = false){ } else /* dafault m/s */ { $uom = " m/s"; } + if ($addUom == true) { return number_format ( $speed , 2 , '.' , '' ) . $uom; } else { diff --git a/wp-gpx-maps_admin_settings.php b/wp-gpx-maps_admin_settings.php index 420095e..475c57f 100644 --- a/wp-gpx-maps_admin_settings.php +++ b/wp-gpx-maps_admin_settings.php @@ -36,8 +36,8 @@ $total_time = get_option("wpgpxmaps_summary_total_time"); $usegpsposition = get_option("wpgpxmaps_usegpsposition"); - $distanceType = get_option("wpgpxmaps_distance_type"); $distanceType = get_option("wpgpxmaps_googlemapsv3_apikey"); - + $distanceType = get_option("wpgpxmaps_distance_type"); + if (empty($showEle)) $showEle = "true"; @@ -102,11 +102,23 @@ onchange="this.value = (this.checked)" /> Allow users to use browser GPS in order to display their current position on map - Google maps api key: Go to the Google API Console and click ‘Get A Key’ + + Google maps api key: + + Go to the Google API Console and click ‘Get A Key’ + + + + Thunderforest api key (Open Cycle Map): + + Go to Thunderforest API Keys and click ‘signing in to your Thunderforest account’ + + +

- + " />

diff --git a/wp-gpx-maps_admin_tracks.php b/wp-gpx-maps_admin_tracks.php index 3b269a9..9b3af0a 100644 --- a/wp-gpx-maps_admin_tracks.php +++ b/wp-gpx-maps_admin_tracks.php @@ -1,153 +1,153 @@ - - -
-
- Choose a file to upload: - ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; - } else{ - echo "There was an error uploading the file, please try again!"; - } - } - else - { - echo "file not supported!"; - } - } - ?> -
- -
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileLast modifiedFile size (Byte)
FileLast modifiedFile size (Byte)
- - - - - -
- Delete - | - Download - | - Shortcode: [sgpx gpx=""] -
- - - -
- -
+ + +
+
+ Choose a file to upload: + ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; + } else{ + echo "There was an error uploading the file, please try again!"; + } + } + else + { + echo "file not supported!"; + } + } + ?> +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileLast modifiedFile size (Byte)
FileLast modifiedFile size (Byte)
+ + + + + +
+ Delete + | + Download + | + Shortcode: [sgpx gpx=""] +
+ + + +
+ +
diff --git a/wp-gpx-maps_utils.php b/wp-gpx-maps_utils.php index 1e0bdda..ff094bb 100644 --- a/wp-gpx-maps_utils.php +++ b/wp-gpx-maps_utils.php @@ -1,691 +1,691 @@ - get_the_ID(), - 'post_type' => 'attachment', - 'numberposts' => -1, // show all -1 - 'post_status' => 'inherit', - 'post_mime_type' => 'image', - 'order' => 'ASC', - 'orderby' => 'menu_order ASC') - ); - - foreach ($attachments as $attachment_id => $attachment) { - - $img_src = wp_get_attachment_image_src($attachment_id,'full'); - $img_thmb = wp_get_attachment_image_src($attachment_id,'thumbnail'); - $img_metadata = wp_get_attachment_metadata( $attachment_id); - - $item = array(); - $item["data"] = wp_get_attachment_link( $attachment_id, array(105,105) ); - - if (is_callable('exif_read_data')) { - $exif = @exif_read_data($img_src[0]); - if ($exif !== false) - { - $item["lon"] = getExifGps($exif["GPSLongitude"], $exif['GPSLongitudeRef']); - $item["lat"] = getExifGps($exif["GPSLatitude"], $exif['GPSLatitudeRef']); - if (($item["lat"] != 0) || ($item["lon"] != 0)) - { - $result[] = $item; - } - else if (isset($p->imagedate)) - { - $_dt = strtotime($p->imagedate) + $dtoffset; - $_item = findItemCoordinate($_dt, $dt, $lat, $lon); - if ($_item != null) - { - $item["lat"] = $_item["lat"]; - $item["lon"] = $_item["lon"]; - $result[] = $item; - } - } - } - } - else - { - $error .= "Sorry, exif_read_data function not found! check your hosting..
"; - } - } - - } catch (Exception $e) { - $error .= 'Error When Retrieving attached images: $e
'; - } - - return $result; - } - - function sitePath() - { - return substr(substr(__FILE__, 0, strrpos(__FILE__,'wp-content')), 0, -1); - // $uploadsPath = substr($uploadsPath, 0, -1); - } - - function gpxFolderPath() - { - $upload_dir = wp_upload_dir(); - $uploadsPath = $upload_dir['basedir']; - - - if ( current_user_can('manage_options') ){ - $ret = $uploadsPath.DIRECTORY_SEPARATOR."gpx"; - } - else if ( current_user_can('publish_posts') ) { - global $current_user; - get_currentuserinfo(); - $ret = $uploadsPath.DIRECTORY_SEPARATOR."gpx".DIRECTORY_SEPARATOR.$current_user->user_login; - } - - return str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $ret); - } - - function gpxCacheFolderPath() - { - $upload_dir = wp_upload_dir(); - $uploadsPath = $upload_dir['basedir']; - $ret = $uploadsPath.DIRECTORY_SEPARATOR."gpx".DIRECTORY_SEPARATOR."~cache"; - return str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $ret); - } - - function relativeGpxFolderPath() - { - $sitePath = sitePath(); - $realGpxPath = gpxFolderPath(); - $ret = str_replace($sitePath,'',$realGpxPath).DIRECTORY_SEPARATOR; - return str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $ret); - } - - function recursive_remove_directory($directory, $empty=FALSE) - { - if(substr($directory,-1) == '/') - { - $directory = substr($directory,0,-1); - } - if(!file_exists($directory) || !is_dir($directory)) - { - return FALSE; - }elseif(is_readable($directory)) - { - $handle = opendir($directory); - while (FALSE !== ($item = readdir($handle))) - { - if($item != '.' && $item != '..') - { - $path = $directory.'/'.$item; - if(is_dir($path)) - { - recursive_remove_directory($path); - }else{ - unlink($path); - } - } - } - closedir($handle); - if($empty == FALSE) - { - if(!rmdir($directory)) - { - return FALSE; - } - } - } - return TRUE; - } - - function getPoints($gpxPath, $gpxOffset = 10, $donotreducegpx, $distancetype) - { - - $points = array(); - $dist=0; - - $lastLat=0; - $lastLon=0; - $lastEle=0; - $lastOffset=0; - - if (file_exists($gpxPath)) - { - $points = @parseXml($gpxPath, $gpxOffset, $distancetype); - } - else - { - echo "WP GPX Maps Error: File $gpxPath not found!"; - } - - // reduce the points to around 200 to speedup - if ( $donotreducegpx != true) - { - $count=sizeof($points->lat); - if ($count>200) - { - $f = round($count/200); - if ($f>1) - for($i=$count;$i>0;$i--) - if ($i % $f != 0 && $points->lat[$i] != null) - { - unset($points->dt[$i]); - unset($points->lat[$i]); - unset($points->lon[$i]); - unset($points->ele[$i]); - unset($points->dist[$i]); - unset($points->speed[$i]); - unset($points->hr[$i]); - unset($points->atemp[$i]); - unset($points->cad[$i]); - unset($points->grade[$i]); - } - } - } - return $points; - } - - function parseXml($filePath, $gpxOffset, $distancetype) - { - - $points = null; - - $points->dt = array(); - $points->lat = array(); - $points->lon = array(); - $points->ele = array(); - $points->dist = array(); - $points->speed = array(); - $points->hr = array(); - $points->atemp = array(); - $points->cad = array(); - $points->grade = array(); - - $points->maxTime = 0; - $points->minTime = 0; - $points->maxEle = 0; - $points->minEle = 0; - $points->totalEleUp = 0; - $points->totalEleDown = 0; - $points->avgSpeed = 0; - $points->totalLength = 0; - - $gpx = simplexml_load_file($filePath); - - if($gpx === FALSE) - return; - - $gpx->registerXPathNamespace('a', 'http://www.topografix.com/GPX/1/0'); - $gpx->registerXPathNamespace('b', 'http://www.topografix.com/GPX/1/1'); - $gpx->registerXPathNamespace('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1'); - - $nodes = $gpx->xpath('//trk | //a:trk | //b:trk'); - //normal gpx - - if ( count($nodes) > 0 ) - { - - foreach($nodes as $_trk) - { - - $trk = simplexml_load_string($_trk->asXML()); - - $trk->registerXPathNamespace('a', 'http://www.topografix.com/GPX/1/0'); - $trk->registerXPathNamespace('b', 'http://www.topografix.com/GPX/1/1'); - $trk->registerXPathNamespace('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1'); - - $trkpts = $trk->xpath('//trkpt | //a:trkpt | //b:trkpt'); - - $lastLat = 0; - $lastLon = 0; - $lastEle = 0; - $lastTime = 0; - //$dist = 0; - $lastOffset = 0; - $speedBuffer = array(); - - foreach($trkpts as $trkpt) - { - - $lat = $trkpt['lat']; - $lon = $trkpt['lon']; - $ele = $trkpt->ele; - $time = $trkpt->time; - $speed = (float)$trkpt->speed; - $hr = 0; - $atemp = 0; - $cad = 0; - $grade = 0; - - if (isset($trkpt->extensions)) - { - - $arr = json_decode( json_encode($trkpt->extensions) , 1); - - if (isset($arr['gpxtpx:TrackPointExtension'])) - { - $tpe = $arr['gpxtpx:TrackPointExtension']; - $hr = @$tpe["gpxtpx:hr"]; - $atemp = @$tpe["gpxtpx:atemp"]; - $cad = @$tpe["gpxtpx:cad"]; - } - else if (isset($arr['TrackPointExtension'])) - { - $tpe = $arr['TrackPointExtension']; - $hr = @$tpe["hr"]; - $atemp = @$tpe["atemp"]; - $cad = @$tpe["cad"]; - } - - } - - if ($lastLat == 0 && $lastLon == 0) - { - //Base Case - - array_push($points->dt, strtotime($time)); - array_push($points->lat, (float)$lat); - array_push($points->lon, (float)$lon); - array_push($points->ele, (float)round($ele,2)); - array_push($points->dist, (float)round($dist,2)); - array_push($points->speed, 0); - array_push($points->hr, (float)$hr); - array_push($points->atemp, (float)$atemp); - array_push($points->cad, (float)$cad); - array_push($points->grade, $grade); - - $lastLat=$lat; - $lastLon=$lon; - $lastEle=$ele; - $lastTime=$time; - } - else - { - //Normal Case - $offset = calculateDistance((float)$lat, (float)$lon, (float)$ele, (float)$lastLat, (float)$lastLon, (float)$lastEle, $distancetype); - $dist = $dist + $offset; - - $points->totalLength = $dist; - - if ($speed == 0) - { - $datediff = (float)my_date_diff($lastTime,$time); - if ($datediff>0) - { - $speed = $offset / $datediff; - } - } - - if ($ele != 0 && $lastEle != 0) - { - - $deltaEle = (float)($ele - $lastEle); - - if ((float)$ele > (float)$lastEle) - { - $points->totalEleUp += $deltaEle; - } - else - { - $points->totalEleDown += $deltaEle; - } - - $grade = $deltaEle / $offset * 100; - - } - - array_push($speedBuffer, $speed); - - if (((float) $offset + (float) $lastOffset) > $gpxOffset) - { - //Bigger Offset -> write coordinate - $avgSpeed = 0; - - foreach($speedBuffer as $s) - { - $avgSpeed += $s; - } - - $avgSpeed = $avgSpeed / count($speedBuffer); - $speedBuffer = array(); - - $lastOffset=0; - - array_push($points->dt, strtotime($time)); - array_push($points->lat, (float)$lat ); - array_push($points->lon, (float)$lon ); - array_push($points->ele, (float)round($ele, 2) ); - array_push($points->dist, (float)round($dist, 2) ); - array_push($points->speed, (float)round($avgSpeed, 1) ); - array_push($points->hr, $hr); - array_push($points->atemp, $atemp); - - - array_push($points->cad, $cad); - array_push($points->grade, (float)round($grade, 2) ); - - } - else - { - //Smoller Offset -> continue.. - $lastOffset = (float) $lastOffset + (float) $offset ; - } - } - $lastLat=$lat; - $lastLon=$lon; - $lastEle=$ele; - $lastTime=$time; - - } - - array_push($points->dt, null); - array_push($points->lat, null); - array_push($points->lon, null); - array_push($points->ele, null); - array_push($points->dist, null); - array_push($points->speed, null); - array_push($points->hr, null); - array_push($points->atemp, null); - array_push($points->cad, null); - array_push($points->grade, null); - - unset($trkpts); - - } - - unset($nodes); - - try { - - array_pop($points->dt, null); - array_pop($points->lat, null); - array_pop($points->lon, null); - array_pop($points->ele, null); - array_pop($points->dist, null); - array_pop($points->speed, null); - array_pop($points->hr, null); - array_pop($points->atemp, null); - array_pop($points->cad, null); - array_pop($points->grade, null); - - $_time = array_filter($points->dt); - $_ele = array_filter($points->ele); - $_dist = array_filter($points->dist); - $_speed = array_filter($points->speed); - $points->maxEle = max($_ele); - $points->minEle = min($_ele); - $points->totalLength = max($_dist); - $points->maxTime = max($_time); - $points->minTime = min($_time); - - $points->avgSpeed = array_sum($_speed) / count($_speed); - } catch (Exception $e) { } - - } - else - { - - // gpx garmin case - $gpx->registerXPathNamespace('gpxx', 'http://www.garmin.com/xmlschemas/GpxExtensions/v3'); - - $nodes = $gpx->xpath('//gpxx:rpt'); - - if ( count($nodes) > 0 ) - { - - $lastLat = 0; - $lastLon = 0; - $lastEle = 0; - $dist = 0; - $lastOffset = 0; - - // Garmin case - foreach($nodes as $rpt) - { - - $lat = $rpt['lat']; - $lon = $rpt['lon']; - if ($lastLat == 0 && $lastLon == 0) - { - //Base Case - array_push($points->lat, (float)$lat ); - array_push($points->lon, (float)$lon ); - array_push($points->ele, 0 ); - array_push($points->dist, 0 ); - array_push($points->speed, 0 ); - array_push($points->hr, 0 ); - array_push($points->atemp, 0 ); - array_push($points->cad, 0 ); - array_push($points->grade, 0 ); - $lastLat=$lat; - $lastLon=$lon; - } - else - { - //Normal Case - $offset = calculateDistance($lat, $lon, 0,$lastLat, $lastLon, 0, $distancetype); - $dist = $dist + $offset; - if (((float) $offset + (float) $lastOffset) > $gpxOffset) - { - //Bigger Offset -> write coordinate - $lastOffset=0; - array_push($points->lat, (float)$lat ); - array_push($points->lon, (float)$lon ); - array_push($points->ele, 0 ); - array_push($points->dist, 0 ); - array_push($points->speed, 0 ); - array_push($points->hr, 0 ); - array_push($points->atemp, 0 ); - array_push($points->cad, 0 ); - array_push($points->grade, 0 ); - } - else - { - //Smoller Offset -> continue.. - $lastOffset= (float) $lastOffset + (float) $offset; - } - } - $lastLat=$lat; - $lastLon=$lon; - } - unset($nodes); - - } - else - { - - //gpx strange case - - $nodes = $gpx->xpath('//rtept | //a:rtept | //b:rtept'); - if ( count($nodes) > 0 ) - { - - $lastLat = 0; - $lastLon = 0; - $lastEle = 0; - $dist = 0; - $lastOffset = 0; - - // Garmin case - foreach($nodes as $rtept) - { - - $lat = $rtept['lat']; - $lon = $rtept['lon']; - if ($lastLat == 0 && $lastLon == 0) - { - //Base Case - array_push($points->lat, (float)$lat ); - array_push($points->lon, (float)$lon ); - array_push($points->ele, 0 ); - array_push($points->dist, 0 ); - array_push($points->speed, 0 ); - array_push($points->hr, 0 ); - array_push($points->atemp, 0 ); - array_push($points->cad, 0 ); - array_push($points->grade, 0 ); - $lastLat=$lat; - $lastLon=$lon; - } - else - { - //Normal Case - $offset = calculateDistance($lat, $lon, 0,$lastLat, $lastLon, 0, $distancetype); - $dist = $dist + $offset; - if (((float) $offset + (float) $lastOffset) > $gpxOffset) - { - //Bigger Offset -> write coordinate - $lastOffset=0; - array_push($points->lat, (float)$lat ); - array_push($points->lon, (float)$lon ); - array_push($points->ele, 0 ); - array_push($points->dist, 0 ); - array_push($points->speed, 0 ); - array_push($points->hr, 0 ); - array_push($points->atemp, 0 ); - array_push($points->cad, 0 ); - array_push($points->grade, 0 ); - } - else - { - //Smoller Offset -> continue.. - $lastOffset= (float) $lastOffset + (float) $offset; - } - } - $lastLat=$lat; - $lastLon=$lon; - } - unset($nodes); - - } - - } - - } - - unset($gpx); - return $points; - } - - function getWayPoints($gpxPath) - { - $points = array(); - if (file_exists($gpxPath)) - { - try { - $gpx = simplexml_load_file($gpxPath); - } catch (Exception $e) { - echo "WP GPX Maps Error: Cant parse xml file " . $gpxPath; - return $points; - } - - $gpx->registerXPathNamespace('a', 'http://www.topografix.com/GPX/1/0'); - $gpx->registerXPathNamespace('b', 'http://www.topografix.com/GPX/1/1'); - $nodes = $gpx->xpath('//wpt | //a:wpt | //b:wpt'); - global $wpdb; - - if ( count($nodes) > 0 ) - { - // normal case - foreach($nodes as $wpt) - { - $lat = $wpt['lat']; - $lon = $wpt['lon']; - $ele = (string) $wpt->ele; - $time = (string) $wpt->time; - $name = (string) $wpt->name; - $desc = (string) $wpt->desc; - $sym = (string) $wpt->sym; - $type = (string) $wpt->type; - $img = ''; - - $img_name = 'map-marker-' . $sym; - $query = "SELECT ID FROM {$wpdb->prefix}posts WHERE post_name LIKE '{$img_name}' AND post_type LIKE 'attachment'"; - $img_id = $wpdb->get_var($query); - if (!is_null($img_id)) { - $img = wp_get_attachment_url($img_id); - } - - array_push($points, array( - "lat" => (float)$lat, - "lon" => (float)$lon, - "ele" => (float)$ele, - "time" => $time, - "name" => $name, - "desc" => $desc, - "sym" => $sym, - "type" => $type, - "img" => $img - )); - } - } - } - return $points; - } - - function toRadians($degrees) - { - return (float)($degrees * 3.1415926535897932385 / 180); - } - - function calculateDistance($lat1,$lon1,$ele1,$lat2,$lon2,$ele2,$distancetype) - { - - if ($distancetype == '2') // climb - { - return (float)$ele1 - (float)$ele2; - } - else if ($distancetype == '1') // flat - { - $alpha = (float)sin((float)toRadians((float) $lat2 - (float) $lat1) / 2); - $beta = (float)sin((float)toRadians((float) $lon2 - (float) $lon1) / 2); - //Distance in meters - $a = (float) ( (float)$alpha * (float)$alpha) + (float) ( (float)cos( (float)toRadians($lat1)) * (float)cos( (float)toRadians($lat2)) * (float)$beta * (float)$beta ); - $dist = 2 * 6369628.75 * (float)atan2((float)sqrt((float)$a), (float)sqrt(1 - (float) $a)); - return (float)sqrt((float)pow((float)$dist, 2) + pow((float) $lat1 - (float)$lat2, 2)); - } - else // normal - { - $alpha = (float)sin((float)toRadians((float) $lat2 - (float) $lat1) / 2); - $beta = (float)sin((float)toRadians((float) $lon2 - (float) $lon1) / 2); - //Distance in meters - $a = (float) ( (float)$alpha * (float)$alpha) + (float) ( (float)cos( (float)toRadians($lat1)) * (float)cos( (float)toRadians($lat2)) * (float)$beta * (float)$beta ); - $dist = 2 * 6369628.75 * (float)atan2((float)sqrt((float)$a), (float)sqrt(1 - (float) $a)); - $d = (float)sqrt((float)pow((float)$dist, 2) + pow((float) $lat1 - (float)$lat2, 2)); - return sqrt((float)pow((float)$ele1-(float)$ele2,2)+(float)pow((float)$d,2)); - } - - } - - function my_date_diff($old_date, $new_date) { - - $t1 = strtotime($new_date); - $t2 = strtotime($old_date); - - // milliceconds fix - $t1 += date_getDecimals($new_date); - $t2 += date_getDecimals($old_date); - - $offset = (float)($t1 - $t2); - - //echo "$offset = $new_date - $old_date; ".strtotime($new_date)." ".strtotime($old_date)."
"; - - return $offset; - } - - function date_getDecimals($date) - { - if (preg_match('(\.([0-9]{2})Z?)', $date, $matches)) - { - return (float)((float)$matches[1] / 100); - } - else - { - return 0; - } - } - - - -?> + get_the_ID(), + 'post_type' => 'attachment', + 'numberposts' => -1, // show all -1 + 'post_status' => 'inherit', + 'post_mime_type' => 'image', + 'order' => 'ASC', + 'orderby' => 'menu_order ASC') + ); + + foreach ($attachments as $attachment_id => $attachment) { + + $img_src = wp_get_attachment_image_src($attachment_id,'full'); + $img_thmb = wp_get_attachment_image_src($attachment_id,'thumbnail'); + $img_metadata = wp_get_attachment_metadata( $attachment_id); + + $item = array(); + $item["data"] = wp_get_attachment_link( $attachment_id, array(105,105) ); + + if (is_callable('exif_read_data')) { + $exif = @exif_read_data($img_src[0]); + if ($exif !== false) + { + $item["lon"] = getExifGps($exif["GPSLongitude"], $exif['GPSLongitudeRef']); + $item["lat"] = getExifGps($exif["GPSLatitude"], $exif['GPSLatitudeRef']); + if (($item["lat"] != 0) || ($item["lon"] != 0)) + { + $result[] = $item; + } + else if (isset($p->imagedate)) + { + $_dt = strtotime($p->imagedate) + $dtoffset; + $_item = findItemCoordinate($_dt, $dt, $lat, $lon); + if ($_item != null) + { + $item["lat"] = $_item["lat"]; + $item["lon"] = $_item["lon"]; + $result[] = $item; + } + } + } + } + else + { + $error .= "Sorry, exif_read_data function not found! check your hosting..
"; + } + } + + } catch (Exception $e) { + $error .= 'Error When Retrieving attached images: $e
'; + } + + return $result; + } + + function sitePath() + { + return substr(substr(__FILE__, 0, strrpos(__FILE__,'wp-content')), 0, -1); + // $uploadsPath = substr($uploadsPath, 0, -1); + } + + function gpxFolderPath() + { + $upload_dir = wp_upload_dir(); + $uploadsPath = $upload_dir['basedir']; + + + if ( current_user_can('manage_options') ){ + $ret = $uploadsPath.DIRECTORY_SEPARATOR."gpx"; + } + else if ( current_user_can('publish_posts') ) { + global $current_user; + get_currentuserinfo(); + $ret = $uploadsPath.DIRECTORY_SEPARATOR."gpx".DIRECTORY_SEPARATOR.$current_user->user_login; + } + + return str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $ret); + } + + function gpxCacheFolderPath() + { + $upload_dir = wp_upload_dir(); + $uploadsPath = $upload_dir['basedir']; + $ret = $uploadsPath.DIRECTORY_SEPARATOR."gpx".DIRECTORY_SEPARATOR."~cache"; + return str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $ret); + } + + function relativeGpxFolderPath() + { + $sitePath = sitePath(); + $realGpxPath = gpxFolderPath(); + $ret = str_replace($sitePath,'',$realGpxPath).DIRECTORY_SEPARATOR; + return str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $ret); + } + + function recursive_remove_directory($directory, $empty=FALSE) + { + if(substr($directory,-1) == '/') + { + $directory = substr($directory,0,-1); + } + if(!file_exists($directory) || !is_dir($directory)) + { + return FALSE; + }elseif(is_readable($directory)) + { + $handle = opendir($directory); + while (FALSE !== ($item = readdir($handle))) + { + if($item != '.' && $item != '..') + { + $path = $directory.'/'.$item; + if(is_dir($path)) + { + recursive_remove_directory($path); + }else{ + unlink($path); + } + } + } + closedir($handle); + if($empty == FALSE) + { + if(!rmdir($directory)) + { + return FALSE; + } + } + } + return TRUE; + } + + function getPoints($gpxPath, $gpxOffset = 10, $donotreducegpx, $distancetype) + { + + $points = array(); + $dist=0; + + $lastLat=0; + $lastLon=0; + $lastEle=0; + $lastOffset=0; + + if (file_exists($gpxPath)) + { + $points = @parseXml($gpxPath, $gpxOffset, $distancetype); + } + else + { + echo "WP GPX Maps Error: File $gpxPath not found!"; + } + + // reduce the points to around 200 to speedup + if ( $donotreducegpx != true) + { + $count=sizeof($points->lat); + if ($count>200) + { + $f = round($count/200); + if ($f>1) + for($i=$count;$i>0;$i--) + if ($i % $f != 0 && $points->lat[$i] != null) + { + unset($points->dt[$i]); + unset($points->lat[$i]); + unset($points->lon[$i]); + unset($points->ele[$i]); + unset($points->dist[$i]); + unset($points->speed[$i]); + unset($points->hr[$i]); + unset($points->atemp[$i]); + unset($points->cad[$i]); + unset($points->grade[$i]); + } + } + } + return $points; + } + + function parseXml($filePath, $gpxOffset, $distancetype) + { + + $points = null; + + $points->dt = array(); + $points->lat = array(); + $points->lon = array(); + $points->ele = array(); + $points->dist = array(); + $points->speed = array(); + $points->hr = array(); + $points->atemp = array(); + $points->cad = array(); + $points->grade = array(); + + $points->maxTime = 0; + $points->minTime = 0; + $points->maxEle = 0; + $points->minEle = 0; + $points->totalEleUp = 0; + $points->totalEleDown = 0; + $points->avgSpeed = 0; + $points->totalLength = 0; + + $gpx = simplexml_load_file($filePath); + + if($gpx === FALSE) + return; + + $gpx->registerXPathNamespace('a', 'http://www.topografix.com/GPX/1/0'); + $gpx->registerXPathNamespace('b', 'http://www.topografix.com/GPX/1/1'); + $gpx->registerXPathNamespace('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1'); + + $nodes = $gpx->xpath('//trk | //a:trk | //b:trk'); + //normal gpx + + if ( count($nodes) > 0 ) + { + + foreach($nodes as $_trk) + { + + $trk = simplexml_load_string($_trk->asXML()); + + $trk->registerXPathNamespace('a', 'http://www.topografix.com/GPX/1/0'); + $trk->registerXPathNamespace('b', 'http://www.topografix.com/GPX/1/1'); + $trk->registerXPathNamespace('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1'); + + $trkpts = $trk->xpath('//trkpt | //a:trkpt | //b:trkpt'); + + $lastLat = 0; + $lastLon = 0; + $lastEle = 0; + $lastTime = 0; + //$dist = 0; + $lastOffset = 0; + $speedBuffer = array(); + + foreach($trkpts as $trkpt) + { + + $lat = $trkpt['lat']; + $lon = $trkpt['lon']; + $ele = $trkpt->ele; + $time = $trkpt->time; + $speed = (float)$trkpt->speed; + $hr = 0; + $atemp = 0; + $cad = 0; + $grade = 0; + + if (isset($trkpt->extensions)) + { + + $arr = json_decode( json_encode($trkpt->extensions) , 1); + + if (isset($arr['gpxtpx:TrackPointExtension'])) + { + $tpe = $arr['gpxtpx:TrackPointExtension']; + $hr = @$tpe["gpxtpx:hr"]; + $atemp = @$tpe["gpxtpx:atemp"]; + $cad = @$tpe["gpxtpx:cad"]; + } + else if (isset($arr['TrackPointExtension'])) + { + $tpe = $arr['TrackPointExtension']; + $hr = @$tpe["hr"]; + $atemp = @$tpe["atemp"]; + $cad = @$tpe["cad"]; + } + + } + + if ($lastLat == 0 && $lastLon == 0) + { + //Base Case + + array_push($points->dt, strtotime($time)); + array_push($points->lat, (float)$lat); + array_push($points->lon, (float)$lon); + array_push($points->ele, (float)round($ele,2)); + array_push($points->dist, (float)round($dist,2)); + array_push($points->speed, 0); + array_push($points->hr, (float)$hr); + array_push($points->atemp, (float)$atemp); + array_push($points->cad, (float)$cad); + array_push($points->grade, $grade); + + $lastLat=$lat; + $lastLon=$lon; + $lastEle=$ele; + $lastTime=$time; + } + else + { + //Normal Case + $offset = calculateDistance((float)$lat, (float)$lon, (float)$ele, (float)$lastLat, (float)$lastLon, (float)$lastEle, $distancetype); + $dist = $dist + $offset; + + $points->totalLength = $dist; + + if ($speed == 0) + { + $datediff = (float)my_date_diff($lastTime,$time); + if ($datediff>0) + { + $speed = $offset / $datediff; + } + } + + if ($ele != 0 && $lastEle != 0) + { + + $deltaEle = (float)($ele - $lastEle); + + if ((float)$ele > (float)$lastEle) + { + $points->totalEleUp += $deltaEle; + } + else + { + $points->totalEleDown += $deltaEle; + } + + $grade = $deltaEle / $offset * 100; + + } + + array_push($speedBuffer, $speed); + + if (((float) $offset + (float) $lastOffset) > $gpxOffset) + { + //Bigger Offset -> write coordinate + $avgSpeed = 0; + + foreach($speedBuffer as $s) + { + $avgSpeed += $s; + } + + $avgSpeed = $avgSpeed / count($speedBuffer); + $speedBuffer = array(); + + $lastOffset=0; + + array_push($points->dt, strtotime($time)); + array_push($points->lat, (float)$lat ); + array_push($points->lon, (float)$lon ); + array_push($points->ele, (float)round($ele, 2) ); + array_push($points->dist, (float)round($dist, 2) ); + array_push($points->speed, (float)round($avgSpeed, 1) ); + array_push($points->hr, $hr); + array_push($points->atemp, $atemp); + + + array_push($points->cad, $cad); + array_push($points->grade, (float)round($grade, 2) ); + + } + else + { + //Smoller Offset -> continue.. + $lastOffset = (float) $lastOffset + (float) $offset ; + } + } + $lastLat=$lat; + $lastLon=$lon; + $lastEle=$ele; + $lastTime=$time; + + } + + array_push($points->dt, null); + array_push($points->lat, null); + array_push($points->lon, null); + array_push($points->ele, null); + array_push($points->dist, null); + array_push($points->speed, null); + array_push($points->hr, null); + array_push($points->atemp, null); + array_push($points->cad, null); + array_push($points->grade, null); + + unset($trkpts); + + } + + unset($nodes); + + try { + + array_pop($points->dt, null); + array_pop($points->lat, null); + array_pop($points->lon, null); + array_pop($points->ele, null); + array_pop($points->dist, null); + array_pop($points->speed, null); + array_pop($points->hr, null); + array_pop($points->atemp, null); + array_pop($points->cad, null); + array_pop($points->grade, null); + + $_time = array_filter($points->dt); + $_ele = array_filter($points->ele); + $_dist = array_filter($points->dist); + $_speed = array_filter($points->speed); + $points->maxEle = max($_ele); + $points->minEle = min($_ele); + $points->totalLength = max($_dist); + $points->maxTime = max($_time); + $points->minTime = min($_time); + + $points->avgSpeed = array_sum($_speed) / count($_speed); + } catch (Exception $e) { } + + } + else + { + + // gpx garmin case + $gpx->registerXPathNamespace('gpxx', 'http://www.garmin.com/xmlschemas/GpxExtensions/v3'); + + $nodes = $gpx->xpath('//gpxx:rpt'); + + if ( count($nodes) > 0 ) + { + + $lastLat = 0; + $lastLon = 0; + $lastEle = 0; + $dist = 0; + $lastOffset = 0; + + // Garmin case + foreach($nodes as $rpt) + { + + $lat = $rpt['lat']; + $lon = $rpt['lon']; + if ($lastLat == 0 && $lastLon == 0) + { + //Base Case + array_push($points->lat, (float)$lat ); + array_push($points->lon, (float)$lon ); + array_push($points->ele, 0 ); + array_push($points->dist, 0 ); + array_push($points->speed, 0 ); + array_push($points->hr, 0 ); + array_push($points->atemp, 0 ); + array_push($points->cad, 0 ); + array_push($points->grade, 0 ); + $lastLat=$lat; + $lastLon=$lon; + } + else + { + //Normal Case + $offset = calculateDistance($lat, $lon, 0,$lastLat, $lastLon, 0, $distancetype); + $dist = $dist + $offset; + if (((float) $offset + (float) $lastOffset) > $gpxOffset) + { + //Bigger Offset -> write coordinate + $lastOffset=0; + array_push($points->lat, (float)$lat ); + array_push($points->lon, (float)$lon ); + array_push($points->ele, 0 ); + array_push($points->dist, 0 ); + array_push($points->speed, 0 ); + array_push($points->hr, 0 ); + array_push($points->atemp, 0 ); + array_push($points->cad, 0 ); + array_push($points->grade, 0 ); + } + else + { + //Smoller Offset -> continue.. + $lastOffset= (float) $lastOffset + (float) $offset; + } + } + $lastLat=$lat; + $lastLon=$lon; + } + unset($nodes); + + } + else + { + + //gpx strange case + + $nodes = $gpx->xpath('//rtept | //a:rtept | //b:rtept'); + if ( count($nodes) > 0 ) + { + + $lastLat = 0; + $lastLon = 0; + $lastEle = 0; + $dist = 0; + $lastOffset = 0; + + // Garmin case + foreach($nodes as $rtept) + { + + $lat = $rtept['lat']; + $lon = $rtept['lon']; + if ($lastLat == 0 && $lastLon == 0) + { + //Base Case + array_push($points->lat, (float)$lat ); + array_push($points->lon, (float)$lon ); + array_push($points->ele, 0 ); + array_push($points->dist, 0 ); + array_push($points->speed, 0 ); + array_push($points->hr, 0 ); + array_push($points->atemp, 0 ); + array_push($points->cad, 0 ); + array_push($points->grade, 0 ); + $lastLat=$lat; + $lastLon=$lon; + } + else + { + //Normal Case + $offset = calculateDistance($lat, $lon, 0,$lastLat, $lastLon, 0, $distancetype); + $dist = $dist + $offset; + if (((float) $offset + (float) $lastOffset) > $gpxOffset) + { + //Bigger Offset -> write coordinate + $lastOffset=0; + array_push($points->lat, (float)$lat ); + array_push($points->lon, (float)$lon ); + array_push($points->ele, 0 ); + array_push($points->dist, 0 ); + array_push($points->speed, 0 ); + array_push($points->hr, 0 ); + array_push($points->atemp, 0 ); + array_push($points->cad, 0 ); + array_push($points->grade, 0 ); + } + else + { + //Smoller Offset -> continue.. + $lastOffset= (float) $lastOffset + (float) $offset; + } + } + $lastLat=$lat; + $lastLon=$lon; + } + unset($nodes); + + } + + } + + } + + unset($gpx); + return $points; + } + + function getWayPoints($gpxPath) + { + $points = array(); + if (file_exists($gpxPath)) + { + try { + $gpx = simplexml_load_file($gpxPath); + } catch (Exception $e) { + echo "WP GPX Maps Error: Cant parse xml file " . $gpxPath; + return $points; + } + + $gpx->registerXPathNamespace('a', 'http://www.topografix.com/GPX/1/0'); + $gpx->registerXPathNamespace('b', 'http://www.topografix.com/GPX/1/1'); + $nodes = $gpx->xpath('//wpt | //a:wpt | //b:wpt'); + global $wpdb; + + if ( count($nodes) > 0 ) + { + // normal case + foreach($nodes as $wpt) + { + $lat = $wpt['lat']; + $lon = $wpt['lon']; + $ele = (string) $wpt->ele; + $time = (string) $wpt->time; + $name = (string) $wpt->name; + $desc = (string) $wpt->desc; + $sym = (string) $wpt->sym; + $type = (string) $wpt->type; + $img = ''; + + $img_name = 'map-marker-' . $sym; + $query = "SELECT ID FROM {$wpdb->prefix}posts WHERE post_name LIKE '{$img_name}' AND post_type LIKE 'attachment'"; + $img_id = $wpdb->get_var($query); + if (!is_null($img_id)) { + $img = wp_get_attachment_url($img_id); + } + + array_push($points, array( + "lat" => (float)$lat, + "lon" => (float)$lon, + "ele" => (float)$ele, + "time" => $time, + "name" => $name, + "desc" => $desc, + "sym" => $sym, + "type" => $type, + "img" => $img + )); + } + } + } + return $points; + } + + function toRadians($degrees) + { + return (float)($degrees * 3.1415926535897932385 / 180); + } + + function calculateDistance($lat1,$lon1,$ele1,$lat2,$lon2,$ele2,$distancetype) + { + + if ($distancetype == '2') // climb + { + return (float)$ele1 - (float)$ele2; + } + else if ($distancetype == '1') // flat + { + $alpha = (float)sin((float)toRadians((float) $lat2 - (float) $lat1) / 2); + $beta = (float)sin((float)toRadians((float) $lon2 - (float) $lon1) / 2); + //Distance in meters + $a = (float) ( (float)$alpha * (float)$alpha) + (float) ( (float)cos( (float)toRadians($lat1)) * (float)cos( (float)toRadians($lat2)) * (float)$beta * (float)$beta ); + $dist = 2 * 6369628.75 * (float)atan2((float)sqrt((float)$a), (float)sqrt(1 - (float) $a)); + return (float)sqrt((float)pow((float)$dist, 2) + pow((float) $lat1 - (float)$lat2, 2)); + } + else // normal + { + $alpha = (float)sin((float)toRadians((float) $lat2 - (float) $lat1) / 2); + $beta = (float)sin((float)toRadians((float) $lon2 - (float) $lon1) / 2); + //Distance in meters + $a = (float) ( (float)$alpha * (float)$alpha) + (float) ( (float)cos( (float)toRadians($lat1)) * (float)cos( (float)toRadians($lat2)) * (float)$beta * (float)$beta ); + $dist = 2 * 6369628.75 * (float)atan2((float)sqrt((float)$a), (float)sqrt(1 - (float) $a)); + $d = (float)sqrt((float)pow((float)$dist, 2) + pow((float) $lat1 - (float)$lat2, 2)); + return sqrt((float)pow((float)$ele1-(float)$ele2,2)+(float)pow((float)$d,2)); + } + + } + + function my_date_diff($old_date, $new_date) { + + $t1 = strtotime($new_date); + $t2 = strtotime($old_date); + + // milliceconds fix + $t1 += date_getDecimals($new_date); + $t2 += date_getDecimals($old_date); + + $offset = (float)($t1 - $t2); + + //echo "$offset = $new_date - $old_date; ".strtotime($new_date)." ".strtotime($old_date)."
"; + + return $offset; + } + + function date_getDecimals($date) + { + if (preg_match('(\.([0-9]{2})Z?)', $date, $matches)) + { + return (float)((float)$matches[1] / 100); + } + else + { + return 0; + } + } + + + +?> diff --git a/wp-gpx-maps_utils_nggallery.php b/wp-gpx-maps_utils_nggallery.php index 0c98a12..8c6c90b 100644 --- a/wp-gpx-maps_utils_nggallery.php +++ b/wp-gpx-maps_utils_nggallery.php @@ -1,147 +1,147 @@ -thumbHTML; - - if (is_callable('exif_read_data')) - { - $exif = @exif_read_data($p->imagePath); - if ($exif !== false) - { - $item["lon"] = getExifGps($exif["GPSLongitude"], $exif['GPSLongitudeRef']); - $item["lat"] = getExifGps($exif["GPSLatitude"], $exif['GPSLatitudeRef']); - if (($item["lat"] != 0) || ($item["lon"] != 0)) - { - $result[] = $item; - } - else if (isset($p->imagedate)) - { - $_dt = strtotime($p->imagedate) + $dtoffset; - $_item = findItemCoordinate($_dt, $dt, $lat, $lon); - if ($_item != null) - { - $item["lat"] = $_item["lat"]; - $item["lon"] = $_item["lon"]; - $result[] = $item; - } - } - } - } - else - { - $error .= "Sorry, exif_read_data function not found! check your hosting..
"; - } - } - - -/* START FIX NEXT GEN GALLERY 2.x */ - - if ( class_exists("C_Component_Registry") ) - { - - $renderer = C_Component_Registry::get_instance()->get_utility('I_Displayed_Gallery_Renderer'); - $params['gallery_ids'] = $ngGalleries; - $params['image_ids'] = $ngImages; - $params['display_type'] = NEXTGEN_GALLERY_BASIC_THUMBNAILS; - $params['images_per_page'] = 999; - // also add js references to get the gallery working - $dummy = $renderer->display_images($params, $inner_content); - - /* START FIX NEXT GEN GALLERY PRO */ - - if (preg_match("/data-nplmodal-gallery-id=[\"'](.*?)[\"']/", $dummy, $m)) - { - $galid = $m[1]; - if ($galid) - { - for($i = 0; $i < count($result); ++$i) - { - $result[$i]["data"] = str_replace("%PRO_LIGHTBOX_GALLERY_ID%", $galid, $result[$i]["data"]); - } - } - } - /* END FIX NEXT GEN GALLERY PRO */ - } - -/* END FIX NEXT GEN GALLERY 2.x */ - - } catch (Exception $e) { - $error .= 'Error When Retrieving NextGen Gallery galleries/images: $e
'; - } - - return $result; - } - - function findItemCoordinate($imgdt, $dt, $lat, $lon) - { - foreach(array_keys($dt) as $i) - { - if ($i!=0 && $imgdt >= $dt[$i-1] && $imgdt <= $dt[$i]) - { - if ($lat[$i] != 0 && $lon[$i] != 0) - return array( "lat" => $lat[$i], "lon" => $lon[$i] ); - } - } - return null; - } - - function getExifGps($exifCoord, $hemi) - { - $degrees = count($exifCoord) > 0 ? gps2Num($exifCoord[0]) : 0; - $minutes = count($exifCoord) > 1 ? gps2Num($exifCoord[1]) : 0; - $seconds = count($exifCoord) > 2 ? gps2Num($exifCoord[2]) : 0; - $flip = ($hemi == 'W' or $hemi == 'S') ? -1 : 1; - return $flip * ($degrees + $minutes / 60 + $seconds / 3600); - } - - function gps2Num($coordPart) - { - $parts = explode('/', $coordPart); - if (count($parts) <= 0) - return 0; - if (count($parts) == 1) - return $parts[0]; - $lat = floatval($parts[0]); - $lon = floatval($parts[1]); - if ($lon == 0) - return $lat; - return $lat / $lon; - } - +thumbHTML; + + if (is_callable('exif_read_data')) + { + $exif = @exif_read_data($p->imagePath); + if ($exif !== false) + { + $item["lon"] = getExifGps($exif["GPSLongitude"], $exif['GPSLongitudeRef']); + $item["lat"] = getExifGps($exif["GPSLatitude"], $exif['GPSLatitudeRef']); + if (($item["lat"] != 0) || ($item["lon"] != 0)) + { + $result[] = $item; + } + else if (isset($p->imagedate)) + { + $_dt = strtotime($p->imagedate) + $dtoffset; + $_item = findItemCoordinate($_dt, $dt, $lat, $lon); + if ($_item != null) + { + $item["lat"] = $_item["lat"]; + $item["lon"] = $_item["lon"]; + $result[] = $item; + } + } + } + } + else + { + $error .= "Sorry, exif_read_data function not found! check your hosting..
"; + } + } + + +/* START FIX NEXT GEN GALLERY 2.x */ + + if ( class_exists("C_Component_Registry") ) + { + + $renderer = C_Component_Registry::get_instance()->get_utility('I_Displayed_Gallery_Renderer'); + $params['gallery_ids'] = $ngGalleries; + $params['image_ids'] = $ngImages; + $params['display_type'] = NEXTGEN_GALLERY_BASIC_THUMBNAILS; + $params['images_per_page'] = 999; + // also add js references to get the gallery working + $dummy = $renderer->display_images($params, $inner_content); + + /* START FIX NEXT GEN GALLERY PRO */ + + if (preg_match("/data-nplmodal-gallery-id=[\"'](.*?)[\"']/", $dummy, $m)) + { + $galid = $m[1]; + if ($galid) + { + for($i = 0; $i < count($result); ++$i) + { + $result[$i]["data"] = str_replace("%PRO_LIGHTBOX_GALLERY_ID%", $galid, $result[$i]["data"]); + } + } + } + /* END FIX NEXT GEN GALLERY PRO */ + } + +/* END FIX NEXT GEN GALLERY 2.x */ + + } catch (Exception $e) { + $error .= 'Error When Retrieving NextGen Gallery galleries/images: $e
'; + } + + return $result; + } + + function findItemCoordinate($imgdt, $dt, $lat, $lon) + { + foreach(array_keys($dt) as $i) + { + if ($i!=0 && $imgdt >= $dt[$i-1] && $imgdt <= $dt[$i]) + { + if ($lat[$i] != 0 && $lon[$i] != 0) + return array( "lat" => $lat[$i], "lon" => $lon[$i] ); + } + } + return null; + } + + function getExifGps($exifCoord, $hemi) + { + $degrees = count($exifCoord) > 0 ? gps2Num($exifCoord[0]) : 0; + $minutes = count($exifCoord) > 1 ? gps2Num($exifCoord[1]) : 0; + $seconds = count($exifCoord) > 2 ? gps2Num($exifCoord[2]) : 0; + $flip = ($hemi == 'W' or $hemi == 'S') ? -1 : 1; + return $flip * ($degrees + $minutes / 60 + $seconds / 3600); + } + + function gps2Num($coordPart) + { + $parts = explode('/', $coordPart); + if (count($parts) <= 0) + return 0; + if (count($parts) == 1) + return $parts[0]; + $lat = floatval($parts[0]); + $lon = floatval($parts[1]); + if ($lon == 0) + return $lat; + return $lat / $lon; + } + ?> \ No newline at end of file