Traudction des boutons

This commit is contained in:
Fred Tempez 2023-01-23 14:40:03 +01:00
parent aba48be013
commit ad6fac8450
1 changed files with 1 additions and 4 deletions

View File

@ -25,10 +25,7 @@ class template
'help' => ''
], $attributes);
// Traduction de l'aide et de l'étiquette
if (strpos($attributes['value'], '<span>') === 0 ) {
// Le contenu n'est pas une icône
$attributes['value'] = helper::translate($attributes['value']);
}
$attributes['value'] = helper::translate($attributes['value']);
$attributes['help'] = helper::translate($attributes['help']);
// Retourne le html
return sprintf(