Fermer la captation
This commit is contained in:
parent
8ba635624e
commit
0eac2b11c9
@ -26,6 +26,7 @@ class helper {
|
||||
public static function translate($text) {
|
||||
|
||||
// Captation
|
||||
/*
|
||||
$data = json_decode(file_get_contents('site/i18n/template.json'), true);
|
||||
if (!array_key_exists($text, $data) ) {
|
||||
if ($text !== '' ) {
|
||||
@ -33,6 +34,7 @@ class helper {
|
||||
file_put_contents ('site/i18n/template.json', json_encode($data, JSON_UNESCAPED_UNICODE), LOCK_EX);
|
||||
}
|
||||
}
|
||||
*/
|
||||
$r = (array_key_exists($text, core::$dialog)) ? core::$dialog[$text] : $text;
|
||||
return ($r);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user