summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/namespace/Application.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/namespace/Application.php b/core/namespace/Application.php
index e5afb85..b4796c6 100644
--- a/core/namespace/Application.php
+++ b/core/namespace/Application.php
@@ -56,8 +56,11 @@ class Application {
#===============================================================================
public static function getLanguage($force = FALSE): Language {
if(!self::$Language instanceof Language OR $force === TRUE) {
+ $template_name = self::get('TEMPLATE.NAME');
+ $template_lang = self::get('TEMPLATE.LANG');
+
$Language = new Language(self::get('CORE.LANGUAGE'));
- $Language->loadLanguage(ROOT.'template/'.self::get('TEMPLATE.NAME').'/lang/'.self::get('TEMPLATE.LANG').'.php');
+ $Language->loadLanguage(sprintf(ROOT.'template/%s/lang/%s.php', $template_name, $template_lang));
self::$Language = $Language;
}