update i18n interpolation fallback to use renamed method
This commit is contained in:
parent
b1173950e4
commit
5372e86d55
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ module I18n
|
||||||
module Backend
|
module Backend
|
||||||
module InterpolationFallbacks
|
module InterpolationFallbacks
|
||||||
def translate(locale, key, options = {})
|
def translate(locale, key, options = {})
|
||||||
default = extract_string_or_lambda_default!(options) if options[:default]
|
default = extract_non_symbol_default!(options) if options[:default]
|
||||||
options.merge!(:default => default) if default
|
options.merge!(:default => default) if default
|
||||||
|
|
||||||
I18n.fallbacks[locale].each do |fallback|
|
I18n.fallbacks[locale].each do |fallback|
|
||||||
|
|
@ -18,4 +18,4 @@ module I18n
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue