From 9ad01e2454d073da92dfb7f8c7e5fd175e1a16c7 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Fri, 5 May 2017 02:19:38 +0200 Subject: [PATCH] add checkTranslations script and update all french translations --- js/admin.js | 4 +- js/gpxedit.js | 14 +-- l10n/fr.js | 8 ++ l10n/fr.json | 15 +++- templates/gpxcontent.php | 2 +- tools/checkTranslations.py | 170 +++++++++++++++++++++++++++++++++++++ 6 files changed, 204 insertions(+), 9 deletions(-) create mode 100755 tools/checkTranslations.py diff --git a/js/admin.js b/js/admin.js index 8433770..9a85565 100644 --- a/js/admin.js +++ b/js/admin.js @@ -11,7 +11,9 @@ function addLogoLine(name){ $('div#extraSymbols table').append(''+ ''+ ''); + '" title="' + + t('gpxedit','Delete') + + '">'); } function deleteLogo(button){ diff --git a/js/gpxedit.js b/js/gpxedit.js index 364b365..382a8cc 100644 --- a/js/gpxedit.js +++ b/js/gpxedit.js @@ -1176,7 +1176,8 @@ '
  • ' + sname + '
  • ' + t('gpxedit', 'Delete') + + '' ); $('#tileserverlist ul li[name="' + sname + '"]').fadeIn('slow'); @@ -1275,7 +1276,7 @@ optionsValues = response.values; //alert('option values: '+optionsValues); }).fail(function() { - OC.dialogs.alert(t('gpxedit', 'failed to restore options values'), + OC.dialogs.alert(t('gpxedit', 'Failed to restore options values'), t('gpxedit', 'Error')); }); optionsValues = $.parseJSON(optionsValues); @@ -1319,7 +1320,7 @@ }).done(function (response) { //alert(response); }).fail(function() { - OC.dialogs.alert(t('gpxedit', 'failed to save options values'), + OC.dialogs.alert(t('gpxedit', 'Failed to save options values'), t('gpxedit', 'Error')); }); } @@ -1517,7 +1518,9 @@ } var type = $('select#loadtypeselect').val(); OC.dialogs.filepicker( - t('gpxedit', 'Load folder ('+type+')'), + t('gpxedit', 'Load folder') + ' (' + + t('gpxedit', type) + + ')', function(targetPath) { loadFolderAction(targetPath); }, @@ -1532,7 +1535,8 @@ else{ var filename = $('#saveName').val(); OC.dialogs.filepicker( - t('gpxedit', 'Where to save') + ' ' + filename + '', + t('gpxedit', 'Where to save') + + ' ' + filename + '', function(targetPath) { saveAction(targetPath); }, diff --git a/l10n/fr.js b/l10n/fr.js index e8af3e2..b5d9765 100644 --- a/l10n/fr.js +++ b/l10n/fr.js @@ -1,6 +1,14 @@ OC.L10N.register( "gpxedit", { + "Lat" : "Lat", + "Lon" : "Lon", + "all" : "tout", + "Description" : "Description", + "Ok" : "Ok", + "Route" : "Route", + "Load folder" : "Charger un dossier", + "Unknown symbol" : "Symbole inconnu", "Where to save" : "Où enregistrer", "Track" : "Trace", "Waypoint" : "Étape", diff --git a/l10n/fr.json b/l10n/fr.json index a11546f..b647c93 100644 --- a/l10n/fr.json +++ b/l10n/fr.json @@ -1,4 +1,17 @@ { "translations": { + "GpxEdit" : "GpxEdit", + "Options" : "Options", + "Shortcuts" : "Raccourcis clavier", + "Documentation" : "Documentation", + "toggle sidebar" : "montrer/cacher la barre latérale", + "toggle minimap" : "montrer/cacher la mini carte", + "Authors" : "Auteurs", + "Features" : "Fonctionnalités", + "exporting file to gpx" : "export en gpx", + "permanent" : "permanent", + "all files" : "tous les fichiers", + "Source management" : "Gestion des sources", + "saving file" : "sauvegarde du fichier", "Load and save files" : "Charger et enregistrer des fichiers", "loading file" : "chargement du fichier", "Choose directory and save" : "Choisir un dossier et sauver", @@ -6,8 +19,6 @@ "Load file" : "Charger un fichier", "Load directory" : "Charger un dossier", "Save" : "Enregistrer", - "Select a file to load it on the map" : "Sélectionner un fichier pour le charger sur la carte", - "Select a folder, set a name and click \"Save\" button" : "Sélectionner un dossier, entrer un nom et cliquer sur le bouton \"Enregistrer\"", "File name" : "Nom de fichier", "Description (optional)" : "Description (facultatif)", "Clear map" : "Vider la carte", diff --git a/templates/gpxcontent.php b/templates/gpxcontent.php index 102a67b..07e6852 100644 --- a/templates/gpxcontent.php +++ b/templates/gpxcontent.php @@ -24,7 +24,7 @@