fix i18n interpolation bug
This commit is contained in:
parent
c0d2912fb0
commit
d3fb682b4b
@ -29,6 +29,7 @@ module I18n
|
|||||||
rescue
|
rescue
|
||||||
return "Translation missing"
|
return "Translation missing"
|
||||||
end
|
end
|
||||||
|
buf = buf.dup
|
||||||
options.each do |k,v|
|
options.each do |k,v|
|
||||||
buf.gsub!("%{#{k.to_s}}", v.to_s)
|
buf.gsub!("%{#{k.to_s}}", v.to_s)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user