locale.rb 906 B

123456789101112131415
  1. #---
  2. # Excerpted from "Agile Web Development with Rails",
  3. # published by The Pragmatic Bookshelf.
  4. # Copyrights apply to this code. It may not be used to create training material,
  5. # courses, books, articles, and the like. Contact us if you are in doubt.
  6. # We make no guarantees that this code is fit for any purpose.
  7. # Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  8. #---
  9. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  10. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
  11. # Rails.application.config.time_zone = 'Central Time (US & Canada)'
  12. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  13. # Rails.application.config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
  14. # Rails.application.config.i18n.default_locale = :de