resources/locales/cs/plurals.yml in twitter_cldr-3.0.10 vs resources/locales/cs/plurals.yml in twitter_cldr-3.1.0
- old
+ new
@@ -1,7 +1,17 @@
---
-:cs: ! '{ :''cs'' => { :i18n => { :plural => { :keys => [:one, :few, :many, :other],
- :rule => lambda { |n| n = n.respond_to?(:abs) ? n.abs : ((m = n.to_s)[0] == "-"
- ? m[1,m.length] : m); (n.to_i == 1 && ((v = n.to_s.split(".")[1]) ? v.length : 0)
- == 0) ? :one : ((2..4).include?(n.to_i) && ((v = n.to_s.split(".")[1]) ? v.length
- : 0) == 0) ? :few : ((v = n.to_s.split(".")[1]) ? v.length : 0) != 0 ? :many : :other
- } } } } }'
+:cs:
+ :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); (((2..4).include?(i)
+ && v == 0) ? :few : (v != 0 ? :many : ((i == 1 && v == 0) ? :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