diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-09-14 13:36:06 +0200 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-09-20 19:13:50 +0100 |
commit | 8cb7d460439a9b20a80a77b6370c1107233d1cbd (patch) | |
tree | ddd5d29a0ab3f39e685ed35dc681a58114acf309 /activesupport/lib/active_support/vendor/i18n-0.0.1/i18n | |
parent | 9d7f186f746f38367851355fcd301ac24d6f6a51 (diff) | |
download | rails-8cb7d460439a9b20a80a77b6370c1107233d1cbd.tar.gz rails-8cb7d460439a9b20a80a77b6370c1107233d1cbd.tar.bz2 rails-8cb7d460439a9b20a80a77b6370c1107233d1cbd.zip |
I18n: move old-style interpolation syntax deprecation to Active Record. [#1044 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activesupport/lib/active_support/vendor/i18n-0.0.1/i18n')
-rw-r--r-- | activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb index e2d19cdd45..ff15d83f4e 100644 --- a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb +++ b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb @@ -4,7 +4,6 @@ module I18n module Backend class Simple INTERPOLATION_RESERVED_KEYS = %w(scope default) - DEPRECATED_INTERPOLATORS = { '%d' => '{{count}}', '%s' => '{{value}}' } MATCH = /(\\\\)?\{\{([^\}]+)\}\}/ # Accepts a list of paths to translation files. Loads translations from @@ -120,12 +119,6 @@ module I18n def interpolate(locale, string, values = {}) return string unless string.is_a?(String) - string = string.gsub(/%d|%s/) do |s| - instead = DEPRECATED_INTERPOLATORS[s] - ActiveSupport::Deprecation.warn "using #{s} in messages is deprecated; use #{instead} instead." - instead - end - if string.respond_to?(:force_encoding) original_encoding = string.encoding string.force_encoding(Encoding::BINARY) |