Class ActionView::TemplateFinder
In: lib/gettext/rails.rb
Parent: Object

Methods

Public Instance methods

[Source]

     # File lib/gettext/rails.rb, line 291
291:     def pick_template_with_gettext(template_path, extension)
292:       locale = GetText.locale
293:       [locale.to_general, locale.to_s, locale.language, Locale.default.language].uniq.each do |v|
294:         file_name = "#{template_path}_#{v}.#{extension}"
295:         base_path = find_base_path_for(file_name)
296:         return "#{base_path}/#{file_name}" unless base_path.blank?
297:       end
298:       pick_template_without_gettext(template_path, extension)
299:     end

[Validate]