Namespace

Class Index [+]

Quicksearch

I18n::Gettext

Constants

PLURAL_SEPARATOR
CONTEXT_SEPARATOR

Public Class Methods

extract_scope(msgid, separator) click to toggle source
    # File lib/i18n/gettext.rb, line 18
18:       def extract_scope(msgid, separator)
19:         scope = msgid.to_s.split(separator)
20:         msgid = scope.pop
21:         [scope, msgid]
22:       end
plural_keys(locale) click to toggle source

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
14:       def plural_keys(locale)
15:         @@plural_keys[locale] || @@plural_keys[:en]
16:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.