Commit c466f4cc44a61c1fbb827113e232c65f3c0ac9ec
1 parent
cb589d23
Exists in
spb-stable
and in
3 other branches
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" |