From 57ee2763c789314109205265cbdffbb8c7c11e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 24 Oct 2025 12:29:28 +0200 Subject: [PATCH] fix translations --- .../modCaptchaGooglerecaptcha.class.php | 26 +++---------------- langs/fr_FR/googlerecaptcha.lang | 1 + 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/core/modules/security/captcha/modCaptchaGooglerecaptcha.class.php b/core/modules/security/captcha/modCaptchaGooglerecaptcha.class.php index 55e86cf..6de6fa3 100644 --- a/core/modules/security/captcha/modCaptchaGooglerecaptcha.class.php +++ b/core/modules/security/captcha/modCaptchaGooglerecaptcha.class.php @@ -19,7 +19,7 @@ */ /** - * \file htdocs/core/modules/security/captcha/modCaptchaEasytooltip.class.php + * \file htdocs/core/modules/security/captcha/modCaptchaGooglerecaptcha.class.php * \ingroup core * \brief File to manage captcha generation according to dolibarr native code */ @@ -71,7 +71,7 @@ public function __construct($db, $conf, $langs, $user) public function getDescription() { global $langs; - return $langs->trans("DolibarrEasytooltipCaptcha"); + return $langs->trans("DolibarrGoogleRecaptchaCaptcha"); } /** @@ -81,8 +81,6 @@ public function getDescription() */ public function getExample() { - global $db, $langs, $user; - $out = ''; $out .= "'; - $out .= "\n"; - - return $out; + return $this->getExample(); } diff --git a/langs/fr_FR/googlerecaptcha.lang b/langs/fr_FR/googlerecaptcha.lang index fe8f451..7b49fe3 100644 --- a/langs/fr_FR/googlerecaptcha.lang +++ b/langs/fr_FR/googlerecaptcha.lang @@ -39,3 +39,4 @@ ValidScore=Validé avec un score de %s (Valeur comprise entre 0 et 1) # GoogleRecaptchaAbout=À propos de GoogleRecaptcha GoogleRecaptchaAboutPage=Page à propos de GoogleRecaptcha +DolibarrGoogleRecaptchaCaptcha=Recaptcha Google pour Dolibarr