Class Index [+]

Quicksearch

I18n::Backend::InterpolationCompiler

Public Instance Methods

interpolate(locale, string, values) click to toggle source
     # File lib/i18n/backend/interpolation_compiler.rb, line 97
 97:       def interpolate(locale, string, values)
 98:         if string.respond_to?(:i18n_interpolate)
 99:           string.i18n_interpolate(values)
100:         elsif values
101:           super
102:         else
103:           string
104:         end
105:       end
store_translations(locale, data, options = {}) click to toggle source
     # File lib/i18n/backend/interpolation_compiler.rb, line 107
107:       def store_translations(locale, data, options = {})
108:         compile_all_strings_in(data)
109:         super
110:       end

Protected Instance Methods

compile_all_strings_in(data) click to toggle source
     # File lib/i18n/backend/interpolation_compiler.rb, line 113
113:       def compile_all_strings_in(data)
114:         data.each_value do |value|
115:           Compiler.compile_if_an_interpolation(value)
116:           compile_all_strings_in(value) if value.kind_of?(Hash)
117:         end
118:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.