浏览代码

Fix: Missing translation

Laurent Destailleur 12 年之前
父节点
当前提交
7cf47b2e24
共有 3 个文件被更改,包括 4 次插入1 次删除
  1. 1 0
      htdocs/langs/en_US/errors.lang
  2. 1 0
      htdocs/langs/fr_FR/errors.lang
  3. 2 1
      htdocs/user/passwordforgotten.php

+ 1 - 0
htdocs/langs/en_US/errors.lang

@@ -115,6 +115,7 @@ ErrorFileRequired=It takes a package Dolibarr file
 ErrorPhpCurlNotInstalled=The PHP CURL is not installed, this is essential to talk with Paypal
 ErrorFailedToAddToMailmanList=Failed to add record to Mailman list or SPIP base
 ErrorNewVaueCantMatchOldValue=New value can't be equal to old one
+ErrorFailedToValidatePasswordReset=Failed to reinit password. May be the reinit was already done (this link can be used only one time). If not, try to restart the reinit process.
 
 # Warnings
 WarningMandatorySetupNotComplete=Mandatory setup parameters are not yet defined

+ 1 - 0
htdocs/langs/fr_FR/errors.lang

@@ -116,6 +116,7 @@ ErrorFileRequired=Il faut un fichier de package Dolibarr
 ErrorPhpCurlNotInstalled=L'extension PHP CURL n'est pas installée, ceci est indispensable pour dialoguer avec Paypal.
 ErrorFailedToAddToMailmanList=Echec de l'ajout à une liste Mailman ou base SPIP
 ErrorNewVaueCantMatchOldValue=La nouvelle valeur ne peut être égale à l'ancienne
+ErrorFailedToValidatePasswordReset=Echec de la réinitialisation du mot de passe. Il est possible que ce lien ait déjà été utilisé (l'utilisation de ce lien ne fonctionne qu'une fois). Si ce n'est pas le cas, essayer de recommencer le processus de réinit de mot de passe depuis le début.
 
 # Warnings
 WarningMandatorySetupNotComplete=Les informations de configuration obligatoire doivent être renseignées

+ 2 - 1
htdocs/user/passwordforgotten.php

@@ -84,7 +84,8 @@ if ($action == 'validatenewpassword' && $username && $passwordmd5)
         }
         else
         {
-            $message = '<div class="error">'.$langs->trans("ErrorFailedToValidatePassword").'</div>';
+        	$langs->load("errors");
+            $message = '<div class="error">'.$langs->trans("ErrorFailedToValidatePasswordReset").'</div>';
         }
     }
 }