instance method
initialize_i18n
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
initialize_i18n()
Set the i18n configuration from config.i18n but special-case for the load_path which should be appended to what’s already set instead of overwritten.
Source
# File railties/lib/initializer.rb, line 512
def initialize_i18n
configuration.i18n.each do |setting, value|
if setting == :load_path
I18n.load_path += value
else
I18n.send("#{setting}=", value)
end
end
end
Defined in railties/lib/initializer.rb line 512
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Initializer