diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/i18n_fixes.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/i18n_fixes.rb b/lib/i18n_fixes.rb index 5fb5f03b7..a85faddcb 100644 --- a/lib/i18n_fixes.rb +++ b/lib/i18n_fixes.rb @@ -14,7 +14,6 @@ def _(key, options = {}) gettext_interpolate(translation, options) end -INTERPOLATION_RESERVED_KEYS = %w(scope default) MATCH = /\{\{([^\}]+)\}\}/ def gettext_interpolate(string, values) @@ -24,9 +23,7 @@ def gettext_interpolate(string, values) string = string.to_str.gsub(MATCH) do pattern, key = $1, $1.to_sym - if INTERPOLATION_RESERVED_KEYS.include?(pattern) - raise I18n::ReservedInterpolationKey.new(pattern, string) - elsif !values.include?(key) + if !values.include?(key) raise I18n::MissingInterpolationArgument.new(pattern, string) else v = values[key].to_s |