diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-05-05 02:44:19 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-05-05 02:44:19 +0300 |
commit | b396668ec55fb866ef578e5f0e60df8b13519613 (patch) | |
tree | 30c6fc7a82dec48c4f4bc38a768ada1caaac1b5e /lib/gitlab/i18n.rb | |
parent | f7b7a520920204d1a2864af6d911ef9dc8c2df6b (diff) |
Add CHANGELOG entry, some specs and locale file for German.
Diffstat (limited to 'lib/gitlab/i18n.rb')
-rw-r--r-- | lib/gitlab/i18n.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/gitlab/i18n.rb b/lib/gitlab/i18n.rb index 9081ced0238..3411516319f 100644 --- a/lib/gitlab/i18n.rb +++ b/lib/gitlab/i18n.rb @@ -3,9 +3,9 @@ module Gitlab extend self AVAILABLE_LANGUAGES = { - en: 'English', - es: 'Español', - de: 'Deutsch' + 'en' => 'English', + 'es' => 'Español', + 'de' => 'Deutsch' }.freeze def available_locales @@ -19,6 +19,7 @@ module Gitlab end def reset_locale + FastGettext.set_locale(::I18n.default_locale) ::I18n.locale = ::I18n.default_locale end end |