Fix for mobile translations file
This commit is contained in:
parent
3e4bd48ed3
commit
5255997eba
1 changed files with 2 additions and 1 deletions
|
|
@ -94,9 +94,10 @@ class MobileLocalization extends Command
|
|||
|
||||
$start = strpos($data, '\'en\': {') + 8;
|
||||
$end = strpos($data, '},', $start);
|
||||
$data = substr($data, $start, $end - $start - 6);
|
||||
$data = substr($data, $start, $end - $start - 5);
|
||||
|
||||
$data = str_replace("\n", "", $data);
|
||||
$data = str_replace("\"", "\'", $data);
|
||||
$data = str_replace("'", "\"", $data);
|
||||
|
||||
return json_decode('{' . $data . '}');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue