121000 fix bad merge
This commit is contained in:
parent
710f2cc2f0
commit
a22e8745fe
@ -26,16 +26,6 @@ class helper
|
||||
|
||||
public static function translate($text)
|
||||
{
|
||||
$target = 'blog';
|
||||
/** Collecte des dialogues des modules */
|
||||
$url = $_SERVER['QUERY_STRING'];
|
||||
$module = explode('/', $url);
|
||||
if ($module === $target)
|
||||
{
|
||||
$dialogues = json_decode(file_get_contents('module/' . $target . '/i18n/fr_FR.json' ), true);
|
||||
$data = array_merge($dialogues,[$text => '']);
|
||||
file_put_contents ('module/' . $target . '/i18n/fr_FR.json', json_encode($data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT), LOCK_EX);
|
||||
}
|
||||
return (array_key_exists($text, core::$dialog) && !empty(core::$dialog[$text]) ? core::$dialog[$text] : $text);
|
||||
}
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user