3 PLURAL_SEPARATOR = "\001"
4 CONTEXT_SEPARATOR = "\004"
6 autoload :Helpers, 'i18n/gettext/helpers'
8 @@plural_keys = { :en => [:one, :other] }
11 # returns an array of plural keys for the given locale so that we can
12 # convert from gettext's integer-index based style
13 # TODO move this information to the pluralization module
14 def plural_keys(locale)
15 @@plural_keys[locale] || @@plural_keys[:en]
18 def extract_scope(msgid, separator)
19 scope = msgid.to_s.split(separator)