Centralize language loading with English fallback (#361)

This commit is contained in:
Fabian
2026-07-31 06:12:33 +01:00
committed by GitHub
parent 4f9bc3c37c
commit a1a714b062
19 changed files with 260 additions and 40 deletions
+4 -3
View File
@@ -17,8 +17,9 @@
#################################################################################
include("../GameEngine/config.php");
include("../GameEngine/Lang/".LANG.".php");
include("lang/".LANG.".php");
require_once dirname(__DIR__) . "/GameEngine/Lang/loader.php";
tz_load_language(LANG);
include(__DIR__ . "/lang/".LANG.".php");
if(T4_COMING==true){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -161,4 +162,4 @@ if(T4_COMING==true){
header("Location: ../index.php");
exit;
}
?>
?>