Skip to content

Commit

Permalink
Update initialization to work with latest change to Rails I18n
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Oct 2, 2008
1 parent 21ec1ab commit 820a6aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.rb
Expand Up @@ -3,11 +3,11 @@
# load all locales from config/locales
locales_dir = File.join(RAILS_ROOT, 'config', 'locales')
Dir["#{locales_dir}/*.{rb,yml}"].uniq.each do |locale_file|
puts "** [localized_dates] loading file #{locale_file}"
I18n.load_translations(locale_file)
Rails.logger.info "** [localized_dates] loading file #{locale_file}"
I18n.load_path << locale_file
end

puts '** [localized_dates] locales loaded from config/locales.'
Rails.logger.info '** [localized_dates] locales loaded from config/locales.'

# set default locale to en-US
I18n.default_locale = 'en-US'

0 comments on commit 820a6aa

Please sign in to comment.