Commit 0d3f1a2d58cf19f3b07fdfecb7ee3a41d442a81d
Exists in
spb-stable
and in
3 other branches
Merge pull request #6011 from jvanbaarsen/deprecation_warning_fix
Fixed the I18n deprecation warning
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
config/application.rb
@@ -38,6 +38,7 @@ module Gitlab | @@ -38,6 +38,7 @@ module Gitlab | ||
38 | # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. | 38 | # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. |
39 | # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] | 39 | # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] |
40 | # config.i18n.default_locale = :de | 40 | # config.i18n.default_locale = :de |
41 | + config.i18n.enforce_available_locales = false | ||
41 | 42 | ||
42 | # Configure the default encoding used in templates for Ruby 1.9. | 43 | # Configure the default encoding used in templates for Ruby 1.9. |
43 | config.encoding = "utf-8" | 44 | config.encoding = "utf-8" |