summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6f418cf)
Signed-off-by: Jerome Jutteau <mojo@couak.net>
\r
/* Decode JSON. */\r
$trans = json_decode ($trans_j, true);\r
\r
/* Decode JSON. */\r
$trans = json_decode ($trans_j, true);\r
- error_log(print_r($trans, true));\r
if ($trans === NULL)\r
return $text;\r
\r
/* Try to find translation. */\r
if ($trans === NULL)\r
return $text;\r
\r
/* Try to find translation. */\r
- $translation = $trans[$text];\r
- if (empty ($translation))\r
+ if (!array_key_exists ($text, $trans))\r
+ return $trans[$text];\r