diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-05-25 09:22:15 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-05-25 09:22:15 -0400 |
commit | 9ddeb5d978db9b1f223c98bbe83ac40fc4474225 (patch) | |
tree | 488dee46afecb825acd8498e7dd3451a1a6b25e4 /app/Model/Config.php | |
parent | 6268c0ad7092308ec72fbb976ca1862254f7429c (diff) |
Added German translation (contribution of @troloo)
Diffstat (limited to 'app/Model/Config.php')
-rw-r--r-- | app/Model/Config.php | 6 |
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')); } /** |