Module: I18n::Backend::InterpolationCompiler
- Defined in:
- lib/active_support/vendor/i18n-0.3.7/i18n/backend/interpolation_compiler.rb
Defined Under Namespace
Modules: Compiler
Instance Method Summary collapse
- #interpolate(locale, string, values) ⇒ Object
- #merge_translations(locale, data, options = {}) ⇒ Object
Instance Method Details
#interpolate(locale, string, values) ⇒ Object
95 96 97 98 99 100 101 102 103 |
# File 'lib/active_support/vendor/i18n-0.3.7/i18n/backend/interpolation_compiler.rb', line 95 def interpolate(locale, string, values) if string.respond_to?(:i18n_interpolate) string.i18n_interpolate(values) elsif values super else string end end |
#merge_translations(locale, data, options = {}) ⇒ Object
105 106 107 108 |
# File 'lib/active_support/vendor/i18n-0.3.7/i18n/backend/interpolation_compiler.rb', line 105 def merge_translations(locale, data, = {}) compile_all_strings_in(data) super end |