# File lib/i18n/exceptions.rb, line 61 def html_message key = CGI.escapeHTML titleize(keys.last) path = CGI.escapeHTML keys.join('.') %(<span class="translation_missing" title="translation missing: #{path}">#{key}</span>) end
# File lib/i18n/exceptions.rb, line 67 def keys @keys ||= I18n.normalize_keys(locale, key, options[:scope]).tap do |keys| keys << 'no key' if keys.size < 2 end end
# File lib/i18n/exceptions.rb, line 73 def message "translation missing: #{keys.join('.')}" end
TODO : remove when html_message is removed
# File lib/i18n/exceptions.rb, line 85 def titleize(key) key.to_s.gsub('_', ' ').gsub(/\b('?[a-z])/) { $1.capitalize } end
Generated with the Darkfish Rdoc Generator 2.