Project

General

Profile

« Previous | Next » 

Revision 13272

Set I18n.enforce_available_locales to true.

View differences:

sandbox/rails-4.1/config/application.rb
33 33
    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34 34
    # config.i18n.default_locale = :de
35 35

  
36
    I18n.enforce_available_locales = false
36
    I18n.enforce_available_locales = true
37 37

  
38 38
    # Configure the default encoding used in templates for Ruby 1.9.
39 39
    config.encoding = "utf-8"
sandbox/rails-4.1/config/initializers/30-redmine.rb
1 1
I18n.default_locale = 'en'
2 2
I18n.backend = Redmine::I18n::Backend.new
3
# Forces I18n to load available locales from the backend
4
I18n.config.available_locales = nil
3 5

  
4 6
require 'redmine'
5 7

  

Also available in: Unified diff