module I18n::Gettext

def extract_scope(msgid, separator)

def extract_scope(msgid, separator)
  scope = msgid.to_s.split(separator)
  msgid = scope.pop
  [scope, msgid]
end

def plural_keys(locale)

TODO move this information to the pluralization module
convert from gettext's integer-index based style
returns an array of plural keys for the given locale so that we can
def plural_keys(locale)
  @@plural_keys[locale] || @@plural_keys[:en]
end