traduction module page

This commit is contained in:
Fred Tempez 2022-09-17 17:45:52 +02:00
parent b6e122cf45
commit 89933ed14e
2 changed files with 18 additions and 7 deletions

View File

@ -17,7 +17,8 @@
*/ */
$("#pageEditDelete").on("click", function() { $("#pageEditDelete").on("click", function() {
var _this = $(this); var _this = $(this);
return core.confirm("Confirmez-vous la suppression de cette page ?", function() { var message_delete = "<?php echo template::topic('Confirmer la suppression de la page'); ?>";
return core.confirm(message_delete, function() {
$(location).attr("href", _this.attr("href")); $(location).attr("href", _this.attr("href"));
}); });
}); });
@ -33,7 +34,8 @@ function protectModule() {
if ( oldModule !== "" && if ( oldModule !== "" &&
oldModule !== newModule) { oldModule !== newModule) {
var _this = $(this); var _this = $(this);
core.confirm("Les données du module " + oldModuleText + " seront effacées. Confirmez-vous ?", var message_delete = "<?php echo template::topic('Confirmer la suppression des données du module'); ?>";
core.confirm(message_delete + " " + oldModuleText,
function() { function() {
$(location).attr("href", _this.attr("href")); $(location).attr("href", _this.attr("href"));
return true; return true;
@ -646,9 +648,12 @@ function buildPagesList(extraPosition) {
var positionInitial = <?php echo $this->getData(['page',$this->getUrl(2),"position"]); ?>; var positionInitial = <?php echo $this->getData(['page',$this->getUrl(2),"position"]); ?>;
var extraPosition = $("#pageEditExtraPosition").val(); var extraPosition = $("#pageEditExtraPosition").val();
var positionDOM = $("#pageEditPosition"); var positionDOM = $("#pageEditPosition");
var message_none = "<?php echo template::topic('Ne pas afficher'); ?>";
var message_begin = "<?php echo template::topic('Au début'); ?>";
var message_after = "<?php echo template::topic('Après'); ?>";
positionDOM.empty().append( positionDOM.empty().append(
$("<option>").val(0).text("Ne pas afficher"), $("<option>").val(0).text(message_none),
$("<option>").val(1).text("Au début") $("<option>").val(1).text(message_begin)
); );
var parentSelected = $("#pageEditParentPageId").val(); var parentSelected = $("#pageEditParentPageId").val();
var positionSelected = 0; var positionSelected = 0;
@ -670,7 +675,7 @@ function buildPagesList(extraPosition) {
positionPrevious++; positionPrevious++;
// Ajout à la liste // Ajout à la liste
positionDOM.append( positionDOM.append(
$("<option>").val(positionPrevious).html("Après \"" + (pages[key].title) + "\"") $("<option>").val(positionPrevious).html(message_after + " \"" + (pages[key].title) + "\"")
); );
} }
@ -695,7 +700,7 @@ function buildPagesList(extraPosition) {
positionPrevious++; positionPrevious++;
// Ajout à la liste // Ajout à la liste
positionDOM.append( positionDOM.append(
$("<option>").val(positionPrevious).html("Après \"" + (pages[hierarchy[parentSelected][i]].title) + "\"") $("<option>").val(positionPrevious).html(message_after + " \"" + (pages[hierarchy[parentSelected][i]].title) + "\"")
); );
} }
} }

View File

@ -285,6 +285,12 @@
"Préparation de la mise à jour": "", "Préparation de la mise à jour": "",
"Téléchargement et validation de l'archive": "", "Téléchargement et validation de l'archive": "",
"Installation": "", "Installation": "",
"Configuration": "" "Configuration": "",
"Confirmer la suppression de la page": "",
"Confirmer la suppression des données du module": "",
"Ne pas afficher": "",
"Au début": "",
"Après": ""
} }