From 3b50d85718d813d64e0119eed37e2065afaaf7b2 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 15 Dec 2016 19:22:45 +0100 Subject: [PATCH] missing french translations in main UI --- CHANGELOG.md | 2 -- js/gpxedit.js | 53 +++++++++++++++++++++++++++++++-------------------- l10n/fr.js | 15 +++++++++++++++ 3 files changed, 47 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c96db97..dd3902f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,13 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Added - file description field -- 'destination' readonly field indicating full save path - admin setting section to add extra symbols - french translation ### Changed - keep time information in loaded tracks/routes/waypoints, written in saved files -- design : borders around file trees, button icons - improve load and save : use OC dialogs instead of jqueryfiletree ## 0.0.2 – 2016-12-08 diff --git a/js/gpxedit.js b/js/gpxedit.js index cd2f806..e7191eb 100644 --- a/js/gpxedit.js +++ b/js/gpxedit.js @@ -444,25 +444,25 @@ function onCreated(type, layer){ var popupTitle; var layerType; if (type === 'polyline' || type === 'track'){ - popupTitle = 'Track'; + popupTitle = t('gpxedit', 'Track'); layerType = 'track'; } else if (type === 'route') { - popupTitle = 'Route'; + popupTitle = t('gpxedit', 'Route'); layerType = 'route'; } else if (type === 'marker') { - popupTitle = 'Waypoint'; + popupTitle = t('gpxedit', 'Waypoint'); layerType = 'marker'; } var popupTxt = '

'+popupTitle+'

'+ - ''+ - ''+ - ''; + ''+ + ''+ + ''; if (type === 'marker') { - popupTxt = popupTxt + '
Name
Description
Comment
'+t('gpxedit', 'Name')+'
'+t('gpxedit', 'Description')+'
'+t('gpxedit', 'Comment')+'
Symbol
'+t('gpxedit', 'Symbol')+'