resources/locales/ru/plurals.yml in twitter_cldr-3.0.10 vs resources/locales/ru/plurals.yml in twitter_cldr-3.1.0

- old
+ new

@@ -1,8 +1,18 @@ --- -:ru: ! '{ :''ru'' => { :i18n => { :plural => { :keys => [:one, :many, :other], :rule - => lambda { |n| n = n.respond_to?(:abs) ? n.abs : ((m = n.to_s)[0] == "-" ? m[1,m.length] - : m); (((v = n.to_s.split(".")[1]) ? v.length : 0) == 0 && n.to_i % 10 == 1 && n.to_i - % 100 != 11) ? :one : ((((v = n.to_s.split(".")[1]) ? v.length : 0) == 0 && n.to_i - % 10 == 0) || (((v = n.to_s.split(".")[1]) ? v.length : 0) == 0 && (5..9).include?(n.to_i - % 10)) || (((v = n.to_s.split(".")[1]) ? v.length : 0) == 0 && (11..14).include?(n.to_i - % 100))) ? :many : :other } } } } }' +:ru: + :cardinal: + :rule: 'lambda { |num, runtime| n = runtime.n(num); i = runtime.i(num); v = runtime.v(num); + w = runtime.w(num); f = runtime.f(num); t = runtime.t(num); (((v == 0 && (2..4).include?(i + % 10)) && !(12..14).include?(i % 100)) ? :few : ((((v == 0 && i % 10 == 0) || + (v == 0 && (5..9).include?(i % 10))) || (v == 0 && (11..14).include?(i % 100))) + ? :many : (((v == 0 && i % 10 == 1) && i % 100 != 11) ? :one : :other))) }' + :names: + - :few + - :many + - :one + - :other + :ordinal: + :rule: lambda { |num, runtime| n = runtime.n(num); i = runtime.i(num); v = runtime.v(num); + w = runtime.w(num); f = runtime.f(num); t = runtime.t(num); :other } + :names: + - :other