forked from ZwiiCMS-Team/ZwiiCMS
12100 dialogue translation templates
This commit is contained in:
parent
a97a215e0b
commit
fff26fd561
@ -25,7 +25,10 @@ class template
|
|||||||
'help' => ''
|
'help' => ''
|
||||||
], $attributes);
|
], $attributes);
|
||||||
// Traduction de l'aide et de l'étiquette
|
// 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']);
|
$attributes['help'] = helper::translate($attributes['help']);
|
||||||
// Retourne le html
|
// Retourne le html
|
||||||
return sprintf(
|
return sprintf(
|
||||||
@ -752,7 +755,7 @@ class template
|
|||||||
*/
|
*/
|
||||||
public static function speech($text)
|
public static function speech($text)
|
||||||
{
|
{
|
||||||
return '<div class="speech"><div class="speechBubble">' . $text . '</div>' . template::ico('mimi speechMimi', ['fontSize' => '7em']) . '</div>';
|
return '<div class="speech"><div class="speechBubble">' . helper::translate($text) . '</div>' . template::ico('mimi speechMimi', ['fontSize' => '7em']) . '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user