diff options
Diffstat (limited to 'ratatoeskr')
-rw-r--r-- | ratatoeskr/sys/translation.php | 2 | ||||
-rw-r--r-- | ratatoeskr/translations/de.php | 2 | ||||
-rw-r--r-- | ratatoeskr/translations/en.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ratatoeskr/sys/translation.php b/ratatoeskr/sys/translation.php index 30f32e3..5a763ce 100644 --- a/ratatoeskr/sys/translation.php +++ b/ratatoeskr/sys/translation.php @@ -58,7 +58,7 @@ function load_language($lang=null) */ $lang = implode("", array_filter(str_split($lang, 1), "ctype_alpha")); - require(dirname(__FILE__) . "/../translations/$lang.php"); + $translation = require(dirname(__FILE__) . "/../translations/$lang.php"); $GLOBALS["translation"] = $translation; } diff --git a/ratatoeskr/translations/de.php b/ratatoeskr/translations/de.php index 114fc58..84ec9f2 100644 --- a/ratatoeskr/translations/de.php +++ b/ratatoeskr/translations/de.php @@ -1,6 +1,6 @@ <?php -$translation = [ +return [ "username" => "Benutzername", "password" => "Passwort", "login_form_header" => "Login", diff --git a/ratatoeskr/translations/en.php b/ratatoeskr/translations/en.php index 7c49533..138b587 100644 --- a/ratatoeskr/translations/en.php +++ b/ratatoeskr/translations/en.php @@ -1,6 +1,6 @@ <?php -$translation = [ +return [ "username" => "Username", "password" => "Password", "login_form_header" => "Login", |