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(*args)

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