From 6aa10572622efde2ee9ea41808c48124c51ee479 Mon Sep 17 00:00:00 2001 From: bastianonm Date: Mon, 11 Mar 2013 08:43:53 +0000 Subject: [PATCH] = 1.1.41 = * Added Polish translation, thanks to Sebastian * Fix: Spanish translation * Minor javascript improvement --- WP-GPX-Maps.js | 11 ++-- languages/wp-gpx-maps-pl_PL.mo | Bin 0 -> 1399 bytes languages/wp-gpx-maps-pl_PL.po | 95 +++++++++++++++++++++++++++++++++ readme.txt | 7 ++- wp-gpx-maps.php | 4 +- 5 files changed, 106 insertions(+), 11 deletions(-) create mode 100644 languages/wp-gpx-maps-pl_PL.mo create mode 100644 languages/wp-gpx-maps-pl_PL.po diff --git a/WP-GPX-Maps.js b/WP-GPX-Maps.js index 8e76e40..35cdf91 100644 --- a/WP-GPX-Maps.js +++ b/WP-GPX-Maps.js @@ -410,14 +410,9 @@ function _wpgpxmaps(params) if (mapData[i] == null) { - if ( polyline_number < color1.length ) - { - color=color1[polyline_number]; - } - else - { - color=color1[color1.length-1]; - } + + color=color1[polyline_number % color1.length]; + var poly = new google.maps.Polyline({ path: points.slice(lastCut,i), diff --git a/languages/wp-gpx-maps-pl_PL.mo b/languages/wp-gpx-maps-pl_PL.mo new file mode 100644 index 0000000000000000000000000000000000000000..5c2806a9a5764f39339ed8ddf35c3d0c609e2d1c GIT binary patch literal 1399 zcmY+CJ&YSg6vqb=zRXt=5E2rIsfote=R`_2qPX*2l2gvGiXDOi%4u%*#UAf^W;HWD z-aBLIU~LO?R)d)z5m;tKhK=}iebG9 zdjoa|dlUBY6L?_#3O)<|2EGXX0lozO4L$?@3!Vc114G`aCl~(fV90wLtbrH7=fO=d z)QKzJ248@mSNkRS6#RQ&IQIn@>U<4`bKh6~L+~5){0R(sADvvxa0d+jCt%R?85s0^ zS;fBt!>m7mq3@62)8H?a|2r7+|El;882X-osKC=;nB%R=KMTGF|04Jb7=vfP6okBa z4`99rsSM@j`yqBZJg~xiLF;k_eajVkh823g40{e1<~soky2C#RdeLsN)^o4?I3>2e zPgeGcyMicX8#2kbH#{Nj$+EUgNhieGV`~xNv2n^PquHjJ=-kMZZ5=4jFOTz_cN0sb z*%kAcdzGa1+)7XEs!EA(kI>Aqjy&L$)4rTn>nOeAb>%+s_CV^8*d3V3@=$j!v1h!@ zc~6aqEnbscjrNr8S8hr!s9$=@c^O8Ctr=3{#daz_AnPzh#3zO57YAY_3s<{Ng|S|A zTwkSPW88P5XChvU-|vaGrMXVAi7_I+)@ZJYW<#_Zym>A<*F4*3HX2A2*J)pc!pC_n z(P$x+H`k(8Ymv7jofkbTwacY97AhzB8du`Z_%$7rL_N<(i>^(W0 zl(R!OEqO84nGXT2Rs*+Wq1=>DM@s4v4Kq1AT%L|s^v*s#x|dARIhjfqrpv1FAT}M! cY5McS$;!}tx{S5u>~3Zz%9lJX!>x7fe{IldPXGV_ literal 0 HcmV?d00001 diff --git a/languages/wp-gpx-maps-pl_PL.po b/languages/wp-gpx-maps-pl_PL.po new file mode 100644 index 0000000..498ffd8 --- /dev/null +++ b/languages/wp-gpx-maps-pl_PL.po @@ -0,0 +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" diff --git a/readme.txt b/readme.txt index e8fb565..146cd6a 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: 3.5 -Stable tag: 1.1.40 +Stable tag: 1.1.41 Draws a gpx track with altitude graph. You can also display your nextgen gallery images in the map. @@ -43,6 +43,7 @@ Translated into 7 languages: - Turkish tr_TR - Hungarian hu_HU - French fr_FR +- Polish pl_PL (many thanks to all the guys who helped me with the translations) @@ -179,6 +180,10 @@ Yes! 1. Altitude & Speed & Hearth rate == Changelog == += 1.1.41 = +* Added Polish translation, thanks to Sebastian +* Fix: Spanish translation +* Minor javascript improvement = 1.1.40 = * Improved italian translation * Added grade chart (beta) diff --git a/wp-gpx-maps.php b/wp-gpx-maps.php index d415d3d..7aaf4af 100644 --- a/wp-gpx-maps.php +++ b/wp-gpx-maps.php @@ -3,7 +3,7 @@ Plugin Name: WP-GPX-Maps Plugin URI: http://www.darwinner.it/ Description: Draws a gpx track with altitude graph -Version: 1.1.40 +Version: 1.1.41 Author: Bastianon Massimo Author URI: http://www.pedemontanadelgrappa.it/ */ @@ -54,7 +54,7 @@ function enqueue_WP_GPX_Maps_scripts() wp_enqueue_script( 'highcharts' ); wp_deregister_script( 'WP-GPX-Maps' ); - wp_register_script( 'WP-GPX-Maps', plugins_url('/WP-GPX-Maps.js', __FILE__), array('jquery','googlemaps','highcharts'), "1.1.40"); + wp_register_script( 'WP-GPX-Maps', plugins_url('/WP-GPX-Maps.js', __FILE__), array('jquery','googlemaps','highcharts'), "1.1.41"); wp_enqueue_script( 'WP-GPX-Maps' ); }