Sha256: 891d3a5bd3f92675e9006656e04e1323eff965b7c8b1a4220bb596de6b4885a8
Contents?: true
Size: 675 Bytes
Versions: 50
Compression:
Stored size: 675 Bytes
Contents
# encoding: utf-8 module I18n module Gettext PLURAL_SEPARATOR = "\001" CONTEXT_SEPARATOR = "\004" autoload :Helpers, 'i18n/gettext/helpers' @@plural_keys = { :en => [:one, :other] } class << self # 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 def plural_keys(locale) @@plural_keys[locale] || @@plural_keys[:en] end def extract_scope(msgid, separator) scope = msgid.to_s.split(separator) msgid = scope.pop [scope, msgid] end end end end
Version data entries
50 entries across 50 versions & 6 rubygems