class RailsI18n::Railtie
:nodoc:
def self.add(pattern)
def self.add(pattern) files = Dir[File.join(File.dirname(__FILE__), '../..', pattern)] I18n.load_path.concat(files) end
def self.init_pluralization_module
def self.init_pluralization_module I18n.backend.class.send(:include, I18n::Backend::Pluralization) end
def self.pattern_from(args)
def self.pattern_from(args) array = Array(args || []) array.blank? ? '*' : "{#{array.join ','}}" end