diff --git a/application/controllers/admin/ExpressionValidate.php b/application/controllers/admin/ExpressionValidate.php index 97f739efdd5..9e16ad8923f 100644 --- a/application/controllers/admin/ExpressionValidate.php +++ b/application/controllers/admin/ExpressionValidate.php @@ -1,13 +1,13 @@ sLang=$sLang; $aExpressions['name_'.$sLang]=array( - 'title'=>sprintf("Quota name (%s)",$sLang), - 'expression'=> $this->getHtmlExpression($oQuotaLanguageSetting->quotals_name,array(),__METHOD__), + 'title'=>sprintf(gT("Quota name (%s)"),$sLang), + 'expression'=> $this->getHtmlExpression($oQuotaLanguageSetting->quotals_name,array(),__METHOD__), ); $aExpressions['message_'.$sLang]=array( - 'title'=>sprintf("Quota message (%s)",$sLang), - 'expression'=> $this->getHtmlExpression($oQuotaLanguageSetting->quotals_message,array(),__METHOD__), + 'title'=>sprintf(gT("Quota message (%s)"),$sLang), + 'expression'=> $this->getHtmlExpression($oQuotaLanguageSetting->quotals_message,array(),__METHOD__), ); $aExpressions['url_'.$sLang]=array( - 'title'=>sprintf("URL (%s)",$sLang), - 'expression'=> $this->getHtmlExpression($oQuotaLanguageSetting->quotals_url,array(),__METHOD__), + 'title'=>sprintf(gT("URL (%s)"),$sLang), + 'expression'=> $this->getHtmlExpression($oQuotaLanguageSetting->quotals_url,array(),__METHOD__), ); $aExpressions['urldescrip_'.$sLang]=array( - 'title'=>sprintf("URL description (%s)",$sLang), - 'expression'=> $this->getHtmlExpression($oQuotaLanguageSetting->quotals_urldescrip,array(),__METHOD__), + 'title'=>sprintf(gT("URL description (%s)"),$sLang), + 'expression'=> $this->getHtmlExpression($oQuotaLanguageSetting->quotals_urldescrip,array(),__METHOD__), ); } } @@ -91,7 +91,7 @@ public function quota($iSurveyId,$quota,$lang=null) * Check the Expression in email * @param integer $iSurveyId : the survey id : can be sid/surveyid url GET parameters * @param string $lang : the mail language - * + * * @author Denis Chenu * @version 1.1 */ @@ -174,7 +174,7 @@ public function email($iSurveyId,$lang) // Not needed : templatereplace do the job : but this can/must be fixed for invitaton/reminder/registration (#9424) $aReplacement["SURVEYNAME"] = gT("Name of the survey"); $aReplacement["SURVEYDESCRIPTION"] = gT("Description of the survey"); - // Replaced when sending email with Survey + // Replaced when sending email with Survey $aAttributes = getTokenFieldsAndNames($iSurveyId,true); $aReplacement["TOKEN"] = gT("Token code for this participant"); $aReplacement["TOKEN:EMAIL"] = gT("Email from the token");