Namespace
Methods
E
P
Constants
PLURAL_SEPARATOR = "\001"
 
CONTEXT_SEPARATOR = "\004"
 
Class Public methods
extract_scope(msgid, separator)
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/gettext.rb, line 19
def extract_scope(msgid, separator)
  scope = msgid.to_s.split(separator)
  msgid = scope.pop
  [scope, msgid]
end
plural_keys(locale)

returns an array of plural keys for the given locale so that we can convert from gettext's integer-index based style TODO move this information to the pluralization module

# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/gettext.rb, line 15
def plural_keys(locale)
  @@plural_keys[locale] || @@plural_keys[:en]
end