missing french translations in admin settings

merge-requests/1/head
Julien Veyssier 2016-12-15 19:45:22 +01:00
parent 3b50d85718
commit c90ab1d9d6
4 changed files with 18 additions and 5 deletions

View File

@ -10,7 +10,8 @@ function addLogoLine(name){
var nameWe = name.replace(/\.png$/, '');
$('div#extraSymbols table').append('<tr class="extraSymbol" id="'+nameWe+'">'+
'<td><img src="'+fullurl+'"></td><td><label> '+nameWe+' </label></td>'+
'<td><button class="delExtraSymbol icon-delete icon" name="'+name+'" title="Remove"></button></td></tr>');
'<td><button class="delExtraSymbol icon-delete icon" name="'+name+
'" title="'+t('gpxedit','Delete')+'"></button></td></tr>');
}
function deleteLogo(button){

View File

@ -22,6 +22,14 @@
"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"
"Clear map before loading" : "Vider la carte avant de charger",
"Extra symbols" : "Symboles supplémentaires",
"Those symbols will be available in GpxEdit." : "Ces symboles seront disponibles dans GpxEdit",
"Keep in mind that only symbol names are saved in gpx files. Other programs will display default symbol if they do not know a symbol name." : "Gardez à l'esprit que seuls les noms de symboles sont sauvés dans les fichiers gpx. D'autres programmes afficheront un symbole par défaut s'ils ne connaissent pas un nom de symbole.",
"Recommended image ratio : 1:1" : "Ratio d'image recommendé : 1:1",
"Recommended image resolution : between 24x24 and 50x50" : "Résolution d'image recommendée : entre 24x24 et 50x50",
"Accepted image format : png" : "Format d'image accepté : png",
"New symbol name" : "Nom du nouveau symbole",
"Upload new symbol image" : "Téléverser une nouvelle image de symbole"
},"pluralForm" :"nplurals=2; plural=(n > 1);"
}

View File

@ -4,6 +4,7 @@ namespace OCA\GpxEdit\Settings;
use bantu\IniGetWrapper\IniGetWrapper;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IRequest;
use OCP\IL10N;
use OCP\IConfig;
use OCP\Settings\ISettings;
use OCP\Util;
@ -42,15 +43,18 @@ class Admin implements ISettings {
private $config;
private $dataDirPath;
private $urlGenerator;
private $l;
public function __construct(
IniGetWrapper $iniWrapper,
IL10N $l,
IRequest $request,
IConfig $config,
IURLGenerator $urlGenerator) {
$this->urlGenerator = $urlGenerator;
$this->iniWrapper = $iniWrapper;
$this->request = $request;
$this->l = $l;
$this->config = $config;
$this->dataDirPath = $this->config->getSystemValue('datadirectory').'/gpxedit';
if (! is_dir($this->dataDirPath)){

View File

@ -24,7 +24,7 @@ OCP\Util::addstyle('gpxedit', 'admin');
echo ' </label></td><td>';
echo '<button class="delExtraSymbol icon-delete icon" name="';
p($symbol['name']);
echo '" title="Remove"></button>';
echo '" title="'.$l->t('Delete').'"></button>';
echo '</td></tr>';
}
?>
@ -33,9 +33,9 @@ OCP\Util::addstyle('gpxedit', 'admin');
<label><?php p($l->t('Recommended image ratio : 1:1')); ?></label><br/>
<label><?php p($l->t('Recommended image resolution : between 24x24 and 50x50')); ?></label><br/>
<label><?php p($l->t('Image format : png')); ?></label><br/>
<label><?php p($l->t('Accepted image format : png')); ?></label><br/>
<form class="uploadButton" method="post" action="<?php p($_['uploadPath']) ?>">
<label for="addExtraSymbolName">New symbol name :</label>
<label for="addExtraSymbolName"><?php p($l->t('New symbol name')); ?> :</label>
<input type="text" name="addExtraSymbolName" id="addExtraSymbolName"></input>
<input id="uploadsymbol" class="upload-symbol-field" name="uploadsymbol" type="file"></input>