git.p6c8.net
/
jirafeau.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Translated using Weblate (Italian)
[jirafeau.git]
/
lib
/
lang.php
diff --git
a/lib/lang.php
b/lib/lang.php
index fba5dbed809895926efa5ea90b29bdd8caa88e1a..79387366c8f102372e094bf5d8a885667affa73d 100644
(file)
--- a/
lib/lang.php
+++ b/
lib/lang.php
@@
-52,16
+52,14
@@
function t ($text)
\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 $text;
\r
\r
return $text;
\r
\r
- return $trans
lation
;
\r
+ return $trans
[$text]
;
\r
}
\r
\r
?>
\r
}
\r
\r
?>
\r
patrick-canterino.de