resources/locales/de/plurals.yml in twitter_cldr-3.0.3 vs resources/locales/de/plurals.yml in twitter_cldr-3.0.4
- old
+ new
@@ -1,4 +1,5 @@
---
:de: ! '{ :''de'' => { :i18n => { :plural => { :keys => [:one, :other], :rule => lambda
- { |n| (n.to_i == 1 && ((v = n.to_s.split(".")[1] || []).count > 1 ? v.last.length
- : 0) == 0) ? :one : :other } } } } }'
+ { |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 :
+ :other } } } } }'