Fix translations fallback for bad keys

This commit is contained in:
ellite 2024-01-24 15:58:43 +01:00
parent d73d527ffc
commit 2f3fb1ee8b

View File

@ -13,7 +13,7 @@ function translate($text, $translations) {
if (array_key_exists($text, $translations)) {
return $translations[$text];
} else {
require_once 'en.php';
require 'en.php';
if (array_key_exists($text, $i18n)) {
return $i18n[$text];
} else {