Skip to content

Commit

Permalink
Updated Locale::PLURALIZATION_KEYS to use 'none' instead of 'zero'
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Davey committed Sep 20, 2010
1 parent cc0272d commit 20a09b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/tolk/locale.rb
Expand Up @@ -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) }
Expand Down

0 comments on commit 20a09b8

Please sign in to comment.