You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
430 B
14 lines
430 B
$:.unshift(File.dirname(__FILE__)) unless
|
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
|
|
|
%w(version).each {|req| require File.dirname(__FILE__) + "/brI18n/#{req}"}
|
|
|
|
module BrI18n
|
|
|
|
I18N_FILES = File.expand_path(File.dirname(__FILE__) + "/files")
|
|
|
|
end
|
|
|
|
I18n.load_path = Dir.glob("#{Rails.root}/config/locales/*") + Dir.glob("#{BrI18n::I18N_FILES}/*")
|
|
I18n.default_locale = 'pt-BR'
|