Permalink
Browse files

make sure we pass the interpolation values to interpolation procs

  • Loading branch information...
Sven Fuchs
Sven Fuchs committed Dec 5, 2009
1 parent a8d32e0 commit 39c2ed8fbad645671cd5520ce7ad0aeefe2b0cca
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/i18n/backend/base.rb
View
@@ -183,7 +183,7 @@ def interpolate(locale, string, values = {})
"%{#{key}}"
end
end
- values.each { |key, value| values[key] = value.call if interpolate_lambda?(value, s, key) }
+ values.each { |key, value| values[key] = value.call(values) if interpolate_lambda?(value, s, key) }
s % values
rescue KeyError => e

0 comments on commit 39c2ed8

Please sign in to comment.