french translation

merge-requests/1/head
Julien Veyssier 2016-12-14 19:15:40 +01:00
parent 20dace5880
commit ce61b730f4
6 changed files with 99 additions and 29 deletions

View File

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- file description field - file description field
- 'destination' readonly field indicating full save path - 'destination' readonly field indicating full save path
- admin setting section to add extra symbols - admin setting section to add extra symbols
- french translation
### Changed ### Changed
- keep time information in loaded tracks/routes/waypoints, written in saved files - keep time information in loaded tracks/routes/waypoints, written in saved files

View File

@ -793,7 +793,6 @@ h2.popupTitle{
color: red; color: red;
} }
#saveButton{ #saveButton{
width:18%;
display:block; display:block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -802,7 +801,7 @@ h2.popupTitle{
float:left; float:left;
} }
#saveName, #savePath{ #saveName, #savePath{
width: 78%; width: 100%;
float: right; float: right;
} }
#savePath{ #savePath{

View File

@ -370,8 +370,29 @@ function load_map() {
} }
}; };
L.drawLocal.draw.toolbar.buttons.polyline = 'Draw a track'; L.drawLocal.draw.toolbar.buttons.polyline = t('gpxedit','Draw a track');
L.drawLocal.draw.toolbar.buttons.marker = 'Add a waypoint'; L.drawLocal.draw.toolbar.buttons.marker = t('gpxedit','Add a waypoint');
L.drawLocal.edit.toolbar.buttons.edit = t('gpxedit','Edit');
L.drawLocal.edit.toolbar.buttons.editDisabled = t('gpxedit','Nothing to edit');
L.drawLocal.edit.toolbar.buttons.remove = t('gpxedit','Delete');
L.drawLocal.edit.toolbar.buttons.removeDisabled = t('gpxedit','Nothing to delete');
L.drawLocal.edit.toolbar.actions.save.title = t('gpxedit','Validate changes');
L.drawLocal.edit.toolbar.actions.save.text = t('gpxedit','Ok');
L.drawLocal.edit.toolbar.actions.cancel.title = t('gpxedit','Discard all changes');
L.drawLocal.edit.toolbar.actions.cancel.text = t('gpxedit','Cancel');
L.drawLocal.edit.handlers.edit.tooltip.text = t('gpxedit','Drag to move elements,<br/>click to remove a point');
L.drawLocal.edit.handlers.edit.tooltip.subtext = t('gpxedit','Click cancel to undo changes');
L.drawLocal.edit.handlers.remove.tooltip.text = t('gpxedit','Click on an element to delete it');
L.drawLocal.draw.handlers.marker.tooltip.start = t('gpxedit','Click map to add waypoint');
L.drawLocal.draw.handlers.polyline.tooltip.start = t('gpxedit','Click to start drawing track');
L.drawLocal.draw.handlers.polyline.tooltip.cont = t('gpxedit','Click to continue drawing track');
L.drawLocal.draw.handlers.polyline.tooltip.end = t('gpxedit','Click last point to finish track');
L.drawLocal.draw.toolbar.actions.text = t('gpxedit','Cancel');
L.drawLocal.draw.toolbar.actions.title = t('gpxedit','Cancel drawing');
L.drawLocal.draw.toolbar.finish.text = t('gpxedit','Finish');
L.drawLocal.draw.toolbar.finish.title = t('gpxedit','Finish drawing');
L.drawLocal.draw.toolbar.undo.text = t('gpxedit','Delete last point');
L.drawLocal.draw.toolbar.undo.title = t('gpxedit','Delete last point drawn');
var drawControl = new L.Control.Draw(options); var drawControl = new L.Control.Draw(options);
gpxedit.drawControl = drawControl; gpxedit.drawControl = drawControl;
gpxedit.map.addControl(drawControl); gpxedit.map.addControl(drawControl);

View File

@ -1,6 +1,28 @@
OC.L10N.register( OC.L10N.register(
"gpxedit", "gpxedit",
{ {
"Draw a track" : "Dessiner une trace",
"Add a waypoint" : "Ajouter une étape",
"Edit" : "Éditer",
"Nothing to edit" : "Rien à éditer",
"Delete" : "Effacer",
"Nothing to delete" : "Rien à effacer",
"Cancel" : "Annuler",
"Discard all changes" : "Annuler tous les changements",
"Validate changes" : "Valider les changements",
"Drag to move elements,<br/>click to remove a point" : "Déplacer par glisser-déposer,<br/>cliquer sur un point pour le supprimer",
"Click cancel to undo changes": "Cliquer sur annuler pour défaire les changements",
"Click on an element to delete it" : "Cliquer sur un élément pour l'effacer",
"Click map to add waypoint" : "Cliquer sur la carte pour ajouter une étape",
"Click to start drawing track" : "Cliquer pour commencer à dessiner une trace",
"Click to continue drawing track" : "Cliquer pour continuer à dessiner une trace",
"Click last point to finish track" : "Cliquer sur le dernier point pour terminer la trace",
"Cancel drawing" : "Annuler le dessin",
"Finish" : "Terminer",
"Finish drawing" : "Terminer le dessin",
"Delete last point" : "Supprimer le dernier point",
"Delete last point drawn" : "Supprimer le dernier point dessiné"
}, },
"nplurals=2; plural=(n > 1);"); "nplurals=2; plural=(n > 1);");

View File

@ -1,3 +1,26 @@
{ "translations": { { "translations": {
"Load and save files" : "Charger et enregistrer des fichiers",
"About GpxEdit" : "À propos de GpxEdit",
"Load" : "Charger",
"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",
"Waypoint style" : "Style des étapes",
"Tooltip" : "Info-bulle",
"Tooltip" : "Info-bulle",
"on hover" : "au survol",
"Use defined symbols instead of default symbol" : "Utilise les symboles définis au lieu du symbole par défaut",
"Use defined symbols" : "Utiliser les symboles définis",
"Custom tile servers" : "Serveurs de tuiles personnels",
"Server name (for example 'my custom server')" : "Nom du serveur ('mon super serveur' par exemple)",
"Server url ('http://tile.server.org/cycle/{z}/{x}/{y}.png')" : "URL du serveur ('http://tile.server.org/cycle/{z}/{x}/{y}.png')",
"Add" : "Ajouter",
"Your servers" : "Vos serveurs",
"Delete" : "Supprimer",
"Default symbol for waypoints when value is not set" : "Symbole par défaut pour les étapes si non défini",
"Clear map before loading" : "Vider la carte avant de charger"
},"pluralForm" :"nplurals=2; plural=(n > 1);" },"pluralForm" :"nplurals=2; plural=(n > 1);"
} }

View File

@ -1,8 +1,8 @@
<div id="sidebar" class="sidebar"> <div id="sidebar" class="sidebar">
<!-- Nav tabs --> <!-- Nav tabs -->
<ul class="sidebar-tabs" role="tablist"> <ul class="sidebar-tabs" role="tablist">
<li class="active" title="<?php p($l->t('Folder and tracks selection')); ?>"><a href="#ho" role="tab"><i class="fa fa-bars"></i></a></li> <li class="active" title="<?php p($l->t('Load and save files')); ?>"><a href="#ho" role="tab"><i class="fa fa-bars"></i></a></li>
<li title="<?php p($l->t('Settings and extra actions')); ?>"><a href="#settings" role="tab"><i class="fa fa-gear"></i></a></li> <li title="<?php p($l->t('Options')); ?>"><a href="#settings" role="tab"><i class="fa fa-gear"></i></a></li>
<li title="<?php p($l->t('About GpxEdit')); ?>"><a href="#help" role="tab"><i class="fa fa-question"></i></a></li> <li title="<?php p($l->t('About GpxEdit')); ?>"><a href="#help" role="tab"><i class="fa fa-question"></i></a></li>
</ul> </ul>
<!-- Tab panes --> <!-- Tab panes -->
@ -24,41 +24,41 @@ p($_['gpxedit_version']);
<div style="clear:both"></div> <div style="clear:both"></div>
</form> </form>
<hr/> <hr/>
<h2 id="loadtitle">Load <b id="loadoptiontoggle"><i class="fa fa-expand"></i></b></h2> <h2 id="loadtitle"><?php p($l->t('Load'));?> <b id="loadoptiontoggle"><i class="fa fa-expand"></i></b></h2>
<div id="loaddiv" style="display:none;"> <div id="loaddiv" style="display:none;">
<p>Select a gpx file to load it on the map</p> <p><?php p($l->t('Select a file to load it on the map'));?></p>
<div> <div>
<input type="checkbox" id="clearbeforeload" checked></input> <input type="checkbox" id="clearbeforeload" checked></input>
<label for="clearbeforeload">Clear map before loading</label> <label for="clearbeforeload"><?php p($l->t('Clear map before loading'));?></label>
</div> </div>
<br/> <br/>
<div id="loadtree"></div> <div id="loadtree"></div>
</div> </div>
<hr/> <hr/>
<h2 id="savetitle">Save <b id="saveoptiontoggle"><i class="fa fa-expand"></i></b></h2> <h2 id="savetitle"><?php p($l->t('Save'));?> <b id="saveoptiontoggle"><i class="fa fa-expand"></i></b></h2>
<div id="savediv" style="display:none;"> <div id="savediv" style="display:none;">
<p>Select a folder, set a name and click "Save" button</p><br/> <p><?php p($l->t('Select a folder, set a name and click "Save" button'));?></p><br/>
<div id="savetree"></div> <div id="savetree"></div>
<br/> <br/>
<div> <div>
<label id="saveNameLabel">File name :</label> <label id="saveNameLabel"><?php p($l->t('File name'));?> :</label><br/>
<input id="saveName" type="text"></input> <input id="saveName" type="text"></input>
</div> </div>
<div style="clear:both"></div> <div style="clear:both"></div>
<div> <div>
<label id="savePathLabel">Destination :</label> <label id="savePathLabel">Destination :</label><br/>
<input id="savePath" type="text" readonly></input> <input id="savePath" type="text" readonly></input>
</div> </div>
<br/><br/> <br/><br/>
<label>Description (optional) :</label><br/> <label><?php p($l->t('Description (optional)'));?> :</label><br/>
<textarea id="desctext"></textarea> <textarea id="desctext"></textarea>
<button id="saveButton"><i class="fa fa-save"></i> Save</button> <button id="saveButton"><i class="fa fa-save"></i> <?php p($l->t('Save'));?></button>
<br/> <br/>
</div> </div>
<div style="clear:both"></div> <div style="clear:both"></div>
<hr/> <hr/>
<br/> <br/>
<button id="clearButton"><i class="fa fa-bomb"></i> Clear map</button> <button id="clearButton"><i class="fa fa-bomb"></i> <?php p($l->t('Clear map'));?></button>
<div id="saved"><p> <div id="saved"><p>
<i class="fa fa-save fa-spin fa-3x fa-fw"></i> <i class="fa fa-save fa-spin fa-3x fa-fw"></i>
<b id="content"></b></p> <b id="content"></b></p>
@ -85,21 +85,25 @@ echo '</ul>'."\n";
?> ?>
</div> </div>
<div class="sidebar-pane" id="settings"> <div class="sidebar-pane" id="settings">
<h1 class="sectiontitle"><?php p($l->t('Settings and extra actions')); ?></h1> <h1 class="sectiontitle"><?php p($l->t('Options')); ?></h1>
<hr/> <hr/>
<br/> <br/>
<label>Waypoint style:</label> <div title="<?php p($l->t('Default symbol for waypoints when value is not set'));?>">
<select id="markerstyleselect"> <label><?php p($l->t('Waypoint style'));?>:</label>
</select> <select id="markerstyleselect">
<br/> </select>
<label>Tooltip style:</label> </div>
<select id="tooltipstyleselect"> <div>
<label><?php p($l->t('Tooltip'));?>:</label>
<select id="tooltipstyleselect">
<option value="h"><?php p($l->t('on hover')); ?></option> <option value="h"><?php p($l->t('on hover')); ?></option>
<option value="p"><?php p($l->t('permanent')); ?></option> <option value="p"><?php p($l->t('permanent')); ?></option>
</select> </select>
<br/> </div>
<input id="symboloverwrite" type="checkbox" checked></input> <div title="<?php p($l->t('Use defined symbols instead of default symbol')); ?>">
<label for="symboloverwrite">Use gpx symbol if set</label> <input id="symboloverwrite" type="checkbox" checked></input>
<label for="symboloverwrite"><?php p($l->t('Use defined symbols')); ?></label>
</div>
<br/> <br/>
<hr/> <hr/>
<br/> <br/>