Namespace

I18n::Gettext

Constants

PLURAL_SEPARATOR
CONTEXT_SEPARATOR

Public Class Methods

extract_scope(msgid, separator) click to toggle source
    # File lib/i18n/gettext.rb, line 20
20:       def extract_scope(msgid, separator)
21:         scope = msgid.to_s.split(separator)
22:         msgid = scope.pop
23:         [scope, msgid]
24:       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 16
16:       def plural_keys(locale)
17:         @@plural_keys[locale] || @@plural_keys[:en]
18:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.