agenda-libre-ruby/config/initializers/locale.rb

8 lines
216 B
Ruby
Raw Normal View History

require 'i18n/backend/active_record'
Translation = I18n::Backend::ActiveRecord::Translation
if Translation.table_exists?
I18n.backend = I18n::Backend::Chain.new(I18n.backend, I18n::Backend::ActiveRecord.new)
end