Skip to content

Commit

Permalink
Merge pull request #139 from tigrish/master
Browse files Browse the repository at this point in the history
Correct pluralization rule for :fr locale
  • Loading branch information
tigrish committed Jul 1, 2012
2 parents 391e6f5 + 9a78917 commit 75e0053
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion test/test_data/locales/invalid/empty.yml
@@ -1 +0,0 @@
en:
2 changes: 1 addition & 1 deletion test/test_data/locales/plurals.rb
Expand Up @@ -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 } } } },
Expand Down

0 comments on commit 75e0053

Please sign in to comment.