From 7538075754a3fbd4fa4a11ca1374203d2463f8d3 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Thu, 12 Dec 2013 09:28:46 +0000 Subject: Add extra argument for MissingInterpolationArgument error Revert translation of interpolated variable in French locale. --- lib/i18n_fixes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/i18n_fixes.rb') diff --git a/lib/i18n_fixes.rb b/lib/i18n_fixes.rb index 9f0849e75..64c370477 100644 --- a/lib/i18n_fixes.rb +++ b/lib/i18n_fixes.rb @@ -35,7 +35,7 @@ def gettext_interpolate(string, values) pattern, key = $1, $1.to_sym if !values.include?(key) - raise I18n::MissingInterpolationArgument.new(pattern, string) + raise I18n::MissingInterpolationArgument.new(pattern, string, values) else v = values[key].to_s if safe && !v.html_safe? -- cgit v1.2.3