Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Davila <rdavila84@gmail.com>2017-05-05 02:44:19 +0300
committerRuben Davila <rdavila84@gmail.com>2017-05-05 02:44:19 +0300
commitb396668ec55fb866ef578e5f0e60df8b13519613 (patch)
tree30c6fc7a82dec48c4f4bc38a768ada1caaac1b5e /lib/gitlab/i18n.rb
parentf7b7a520920204d1a2864af6d911ef9dc8c2df6b (diff)
Add CHANGELOG entry, some specs and locale file for German.
Diffstat (limited to 'lib/gitlab/i18n.rb')
-rw-r--r--lib/gitlab/i18n.rb7
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