Permalink
Browse files

Add pluralization rule for Upper Sorbian

  • Loading branch information...
1 parent fda4f08 commit 46c525aafd5f07925e12af1fc3e99cae86859d2f @kuroda kuroda committed Sep 23, 2012
Showing with 27 additions and 0 deletions.
  1. +27 −0 rails/pluralization/hsb.rb
View
@@ -0,0 +1,27 @@
+module RailsI18n
+ module Pluralization
+ module UpperSorbian
+ def self.rule
+ lambda do |n|
+ mod100 = n % 100
+
+ if mod100 == 1
+ :one
+ elsif mod100 == 2
+ :two
+ elsif mod100 == 3 || mod100 == 4
+ :few
+ else
+ :other
+ end
+ end
+ end
+ end
+ end
+end
+
+{ :hsb => {
+ :'i18n' => {
+ :plural => {
+ :keys => [:one, :two, :few, :other],
+ :rule => RailsI18n::Pluralization::UpperSorbian.rule }}}}

0 comments on commit 46c525a

Please sign in to comment.