diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2012-07-31 05:46:25 -0700 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2012-07-31 05:46:25 -0700 |
commit | 13af5aceffb7197230c0934becaa4e9e20cfda23 (patch) | |
tree | cb26a237300c6498ac4407282b2fb9cbe5924c3c /activesupport/lib/active_support/inflections.rb | |
parent | b09d6aae9ebf851b9cd682df50bbfe43391222b5 (diff) | |
parent | 7db0b073fec6bc3e6f213b58c76e7f43fcc2ab97 (diff) | |
download | rails-13af5aceffb7197230c0934becaa4e9e20cfda23.tar.gz rails-13af5aceffb7197230c0934becaa4e9e20cfda23.tar.bz2 rails-13af5aceffb7197230c0934becaa4e9e20cfda23.zip |
Merge pull request #7197 from davidcelis/i18n_inflector
Make ActiveSupport::Inflector locale aware and multilingual
Diffstat (limited to 'activesupport/lib/active_support/inflections.rb')
-rw-r--r-- | activesupport/lib/active_support/inflections.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflections.rb b/activesupport/lib/active_support/inflections.rb index ca2d8cb270..ef882ebd09 100644 --- a/activesupport/lib/active_support/inflections.rb +++ b/activesupport/lib/active_support/inflections.rb @@ -1,7 +1,7 @@ require 'active_support/inflector/inflections' module ActiveSupport - Inflector.inflections do |inflect| + Inflector.inflections(:en) do |inflect| inflect.plural(/$/, 's') inflect.plural(/s$/i, 's') inflect.plural(/^(ax|test)is$/i, '\1es') |