i18n.rb 257 字节
Newer Older
S
Santiago Pastorino 已提交
1 2 3
begin
  require 'i18n'
rescue LoadError => e
4
  $stderr.puts "The i18n gem is not available. Please add it to your Gemfile and run bundle install"
S
Santiago Pastorino 已提交
5 6
  raise e
end
7

S
Santiago Pastorino 已提交
8
ActiveSupport.run_load_hooks(:i18n)
9
I18n.load_path << "#{File.dirname(__FILE__)}/locale/en.yml"