Skip to content

Commit

Permalink
Remove deprecated normalize_translation_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Jul 16, 2014
1 parent ccbc14e commit 1108de8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -4,3 +4,4 @@
* Drop support to Rails 2.3 / 3.0 / 3.1
* Remove deprecated stuff:
- Setting `:default_exception_hander` Symbol to `I18n.exception_handler`.
- `normalize_translation_keys` in favor of `normalize_keys`.
6 changes: 0 additions & 6 deletions lib/i18n.rb
Expand Up @@ -339,12 +339,6 @@ def normalized_key_cache
@normalized_key_cache ||= Hash.new { |h,k| h[k] = {} }
end

# DEPRECATED. Use I18n.normalize_keys instead.
def normalize_translation_keys(locale, key, scope, separator = nil)
puts "I18n.normalize_translation_keys is deprecated. Please use the class I18n.normalize_keys instead."
normalize_keys(locale, key, scope, separator)
end

def handle_enforce_available_locales_deprecation
if config.enforce_available_locales.nil? && !defined?(@unenforced_available_locales_deprecation)
$stderr.puts "[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message."
Expand Down

0 comments on commit 1108de8

Please sign in to comment.