lib/i18n/tasks/translators/base_translator.rb in i18n-tasks-1.0.9 vs lib/i18n/tasks/translators/base_translator.rb in i18n-tasks-1.0.10
- old
+ new
@@ -112,10 +112,10 @@
def restore_interpolations(untranslated, translated)
return translated if untranslated !~ INTERPOLATION_KEY_RE
values = untranslated.scan(INTERPOLATION_KEY_RE)
translated.gsub(/#{Regexp.escape(UNTRANSLATABLE_STRING)}\d+/i) do |m|
- values[m[UNTRANSLATABLE_STRING.length..-1].to_i]
+ values[m[UNTRANSLATABLE_STRING.length..].to_i]
end
rescue StandardError => e
raise_interpolation_error(untranslated, translated, e)
end