From 9ddeb5d978db9b1f223c98bbe83ac40fc4474225 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 25 May 2014 09:22:15 -0400 Subject: Added German translation (contribution of @troloo) --- app/Model/Config.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Model/Config.php') 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')); } /** -- cgit v1.2.3