# File lib/i18n/locale/fallbacks.rb, line 67 67: def [](locale) 68: raise InvalidLocale.new(locale) if locale.nil? 69: locale = locale.to_sym 70: super || store(locale, compute(locale)) 71: end
# File lib/i18n/locale/fallbacks.rb, line 85 85: def compute(tags, include_defaults = true) 86: result = Array(tags).collect do |tag| 87: tags = I18n::Locale::Tag.tag(tag).self_and_parents.map! { |t| t.to_sym } 88: tags.each { |_tag| tags += compute(@map[_tag]) if @map[_tag] } 89: tags 90: end.flatten 91: result.push(*defaults) if include_defaults 92: result.uniq.compact 93: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.