]> git.openstreetmap.org Git - rails.git/blob - config/pluralizers.rb
Use jQuery syntax for the history request
[rails.git] / config / pluralizers.rb
1 {
2   :ar => {
3     :i18n => {
4       :plural => {
5         :rule => lambda { |count|
6           case count
7             when 1 then :one
8             when 2 then :two
9             else case count % 100
10                    when 3..10 then :few
11                    when 11..99 then :many
12                    else :other
13                  end
14           end
15         } 
16       }
17     }
18   },
19   :ru => {
20     :i18n => {
21       :plural => {
22         :rule => lambda { |count|
23           case count % 100
24             when 11,12,13,14 then :many
25             else case count % 10
26                    when 1 then :one
27                    when 2,3,4 then :few
28                    when 5,6,7,8,9,0 then :many
29                    else :other
30                  end
31           end
32         }
33       }
34     }
35   },
36   :sl => {
37     :i18n => {
38       :plural => {
39         :rule => lambda { |count|
40           case count % 100
41             when 1 then :one
42             when 2 then :two
43             when 3,4 then :few
44             else :other
45           end
46         }
47       }
48     }
49   }
50 }