Sha256: 64021e1b135f2b0ce2ad3e6b2a9209606aa088135c93a231de19efc45d5447b7

Contents?: true

Size: 771 Bytes

Versions: 19

Compression:

Stored size: 771 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------

# Set default locale from Settings
# defer setting the locale until all I18n locales have been initialized
#------------------------------------------------------------------------------

# Turn off until https://github.com/rails/rails/issues/13164 is fixed
I18n.config.enforce_available_locales = false
Rails.application.config.i18n.fallbacks = true

FatFreeCRM.application.config.after_initialize do
  I18n.default_locale = Setting.locale
  I18n.fallbacks[:en] = [:"en-US"]
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 config/initializers/locale.rb
fat_free_crm-0.15.2 config/initializers/locale.rb
fat_free_crm-0.16.4 config/initializers/locale.rb
fat_free_crm-0.14.1 config/initializers/locale.rb
fat_free_crm-0.15.1 config/initializers/locale.rb
fat_free_crm-0.16.3 config/initializers/locale.rb
fat_free_crm-0.16.2 config/initializers/locale.rb
fat_free_crm-0.16.1 config/initializers/locale.rb
fat_free_crm-0.16.0 config/initializers/locale.rb
fat_free_crm-0.15.0 config/initializers/locale.rb
fat_free_crm-0.15.0.beta.2 config/initializers/locale.rb
fat_free_crm-0.15.0.beta config/initializers/locale.rb
fat_free_crm-0.14.0 config/initializers/locale.rb
reduced_fat_crm-0.15.0.beta config/initializers/locale.rb
reduced_fat_crm-0.14.0 config/initializers/locale.rb
fat_free_crm-0.13.6 config/initializers/locale.rb
fat_free_crm-0.13.5 config/initializers/locale.rb
fat_free_crm-0.13.4 config/initializers/locale.rb
fat_free_crm-0.13.3 config/initializers/locale.rb