Skip to content
Browse files

Correct pluralization rule for :fr locale

  • Loading branch information...
1 parent 89ea337 commit b7cfc76eb0e1f380b9d9c896cd88264679f7d29f @tigrish tigrish committed Jan 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/test_data/locales/plurals.rb
View
2 test/test_data/locales/plurals.rb
@@ -27,7 +27,7 @@
:fi => { :i18n => { :plural => { :keys => [:one, :other], :rule => lambda { |n| n == 1 ? :one : :other } } } },
:fil => { :i18n => { :plural => { :keys => [:one, :other], :rule => lambda { |n| [0, 1].include?(n) ? :one : :other } } } },
:fo => { :i18n => { :plural => { :keys => [:one, :other], :rule => lambda { |n| n == 1 ? :one : :other } } } },
- :fr => { :i18n => { :plural => { :keys => [:one, :other], :rule => lambda { |n| n && n != 2 ? :one : :other } } } },
+ :fr => { :i18n => { :plural => { :keys => [:one, :other], :rule => lambda { |n| n.between?(0, 2) && n != 2 ? :one : :other } } } },
:fur => { :i18n => { :plural => { :keys => [:one, :other], :rule => lambda { |n| n == 1 ? :one : :other } } } },
:fy => { :i18n => { :plural => { :keys => [:one, :other], :rule => lambda { |n| n == 1 ? :one : :other } } } },
:ga => { :i18n => { :plural => { :keys => [:one, :two, :other], :rule => lambda { |n| n == 1 ? :one : n == 2 ? :two : :other } } } },

0 comments on commit b7cfc76

Please sign in to comment.
Something went wrong with that request. Please try again.