Fix translations fallback for bad keys
This commit is contained in:
parent
d73d527ffc
commit
2f3fb1ee8b
@ -13,7 +13,7 @@ function translate($text, $translations) {
|
|||||||
if (array_key_exists($text, $translations)) {
|
if (array_key_exists($text, $translations)) {
|
||||||
return $translations[$text];
|
return $translations[$text];
|
||||||
} else {
|
} else {
|
||||||
require_once 'en.php';
|
require 'en.php';
|
||||||
if (array_key_exists($text, $i18n)) {
|
if (array_key_exists($text, $i18n)) {
|
||||||
return $i18n[$text];
|
return $i18n[$text];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user