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