diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-19 11:04:23 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-19 11:04:23 -0500 |
commit | 8c2e839e5a0fb1662ae867c70114c3fc91850a55 (patch) | |
tree | c0f7d90af058e91a588ce4f3bf63891c40690f69 /activesupport/lib/active_support/vendor/i18n-0.0.1/lib/i18n.rb | |
parent | d84d99a8f7dc672b050a6ab891c1680a323a7c97 (diff) | |
download | rails-8c2e839e5a0fb1662ae867c70114c3fc91850a55.tar.gz rails-8c2e839e5a0fb1662ae867c70114c3fc91850a55.tar.bz2 rails-8c2e839e5a0fb1662ae867c70114c3fc91850a55.zip |
Fix some warnings in i18n lib
Diffstat (limited to 'activesupport/lib/active_support/vendor/i18n-0.0.1/lib/i18n.rb')
-rwxr-xr-x | activesupport/lib/active_support/vendor/i18n-0.0.1/lib/i18n.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/vendor/i18n-0.0.1/lib/i18n.rb b/activesupport/lib/active_support/vendor/i18n-0.0.1/lib/i18n.rb index 2185194da9..1bb65263a3 100755 --- a/activesupport/lib/active_support/vendor/i18n-0.0.1/lib/i18n.rb +++ b/activesupport/lib/active_support/vendor/i18n-0.0.1/lib/i18n.rb @@ -53,7 +53,7 @@ module I18n # storage. Decoupled for backends like a db backend that persist their # translations, so the backend can decide whether/when to yield or not. def populate(&block) - backend.populate &block + backend.populate(&block) end # Stores translations for the given locale in the backend. @@ -173,8 +173,8 @@ module I18n # keys are Symbols. def normalize_translation_keys(locale, key, scope) keys = [locale] + Array(scope) + [key] - keys = keys.map{|key| key.to_s.split(/\./) } - keys.flatten.map{|key| key.to_sym} + keys = keys.map{|k| k.to_s.split(/\./) } + keys.flatten.map{|k| k.to_sym} end end end |