Permalink
Browse files

Updated Locale::PLURALIZATION_KEYS to use 'none' instead of 'zero'

  • Loading branch information...
1 parent cc0272d commit 20a09b8ed2124432050dc25525acfb73f194a7fd Craig Davey committed Sep 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/tolk/locale.rb
View
2 app/models/tolk/locale.rb
@@ -103,7 +103,7 @@ def special_key_or_prefix?(prefix, key)
self.special_prefixes.include?(prefix) || self.special_keys.include?(key)
end
- PLURALIZATION_KEYS = ['zero', 'one', 'two', 'few', 'many', 'other']
+ PLURALIZATION_KEYS = ['none', 'one', 'two', 'few', 'many', 'other']
def pluralization_data?(data)
keys = data.keys.map(&:to_s)
keys.all? {|k| PLURALIZATION_KEYS.include?(k) }

0 comments on commit 20a09b8

Please sign in to comment.