instance method
interpolate
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
interpolate(locale, string, values)
No documentation comment.
Parameters
-
localereq -
stringreq -
valuesreq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/interpolation_compiler.rb, line 99
def interpolate(locale, string, values)
if string.respond_to?(:i18n_interpolate)
string.i18n_interpolate(values)
elsif values
super
else
string
end
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/interpolation_compiler.rb line 99
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Backend::InterpolationCompiler