summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/Config.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Model/Config.php b/app/Model/Config.php
index 9748f38e..23abd8b5 100644
--- a/app/Model/Config.php
+++ b/app/Model/Config.php
@@ -4,6 +4,7 @@ namespace Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
+use Core\Translator;
/**
* Config model
@@ -41,6 +42,7 @@ class Config extends Base
public function getLanguages()
{
$languages = array(
+ 'de_DE' => t('German'),
'en_US' => t('English'),
'es_ES' => t('Spanish'),
'fr_FR' => t('French'),
@@ -106,9 +108,7 @@ class Config extends Base
public function reload()
{
$_SESSION['config'] = $this->getAll();
-
- $language = $this->get('language', 'en_US');
- if ($language !== 'en_US') \Translator\load($language);
+ Translator::load($this->get('language', 'en_US'));
}
/**