From f94a6438bbd06335e3a8e1d099f45fb26574c5c0 Mon Sep 17 00:00:00 2001 From: matograine <matograine@zaclys.net> Date: Wed, 12 Jan 2022 22:21:59 +0100 Subject: [PATCH] fix a FR translation and remove useless comment --- www/i18n/locale-fr-FR.json | 2 ++ www/js/controllers/wot-controllers.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/www/i18n/locale-fr-FR.json b/www/i18n/locale-fr-FR.json index b47915e88..3644d93f1 100644 --- a/www/i18n/locale-fr-FR.json +++ b/www/i18n/locale-fr-FR.json @@ -828,6 +828,8 @@ "POPUP_TITLE": "<b>Confirmation</b>", "POPUP_WARNING_TITLE": "<b>Avertissement</b>", "POPUP_SECURITY_WARNING_TITLE": "<i class=\"icon ion-alert-circled\"></i> <b>Avertissement de sécurité</b>", + "CERTIFY_RULES_TITLE_UID": "Certifier {{uid}}", + "CERTIFY_RULES": "<b class=\"assertive\">Ne PAS certifier</b> un compte si vous pensez que :<br/><br/><ul><li>1.) il ne correspond pas à une personne <b>physique et vivante</b>.<li>2.) son propriétaire <b>possède un autre compte</b> déjà certifié.<li>3.) son propriétaire viole (volontairement ou non) la règle 1 ou 2 (par exemple en certifiant des comptes factices ou en double).</ul><br/><b>Êtes-vous sûr</b> de vouloir néanmoins certifier cette identité ?", "FULLSCREEN": "Afficher l'application en plein écran ?", "EXIT_APP": "Fermer l'application ?", "TRANSFER": "<b>Récapitulatif du virement</b> :<br/><br/><ul><li> - De : {{from}}</li><li> - A : <b>{{to}}</b></li><li> - Montant : <b>{{amount}} {{unit}}</b></li><li> - Commentaire : <i>{{comment}}</i></li></ul><br/><b>Êtes-vous sûr de vouloir effectuer ce virement ?</b>", diff --git a/www/js/controllers/wot-controllers.js b/www/js/controllers/wot-controllers.js index 91c936387..45e1902a0 100644 --- a/www/js/controllers/wot-controllers.js +++ b/www/js/controllers/wot-controllers.js @@ -862,7 +862,7 @@ function WotIdentityAbstractController($scope, $rootScope, $state, $translate, $ } $scope.certRenewalConfirmationModal = function (answers_are_right) { - return UIUtils.alert.confirm('CONFIRM.CERTIFY_RULES', 'CONFIRM.POPUP_SECURITY_WARNING_TITLE', { + return UIUtils.alert.confirm('CONFIRM.CERTIFY_RULES', 'CONFIRM.CERTIFY_RULES_TITLE_UID', { cssClass: 'warning', okText: 'WOT.BTN_YES_CERTIFY', okType: 'button-assertive' @@ -912,7 +912,7 @@ function WotIdentityAbstractController($scope, $rootScope, $state, $translate, $ .then(function (identity) { if (!identity) return; // cancelled UIUtils.loading.hide(); - if (!identity || !identity.hasSelf) { // MATOGRAINE (!identity) is no need to be tested here, it is tested above. + if (!identity || !identity.hasSelf) { UIUtils.alert.error('ERROR.IDENTITY_TO_CERTIFY_HAS_NO_SELF'); return; } -- GitLab