编码问题

This commit is contained in:
huang 2016-04-08 14:21:54 +08:00
parent 4e50a9e289
commit b5ced6eda9
1 changed files with 3 additions and 3 deletions

View File

@ -48,10 +48,10 @@ module RedmineApp
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :zh config.i18n.default_locale = :zh
config.i18n.enforce_available_locales = false # config.i18n.enforce_available_locales = false
I18n.config.enforce_available_locales = false # I18n.config.enforce_available_locales = false
# Configure the default encoding used in templates for Ruby 1.9. # Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8" config.encoding = "utf-8"