# File lib/i18n/gettext.rb, line 18 def extract_scope(msgid, separator) scope = msgid.to_s.split(separator) msgid = scope.pop [scope, msgid] end
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 lib/i18n/gettext.rb, line 14 def plural_keys(locale) @@plural_keys[locale] || @@plural_keys[:en] end
Generated with the Darkfish Rdoc Generator 2.