From: Jean-Philippe Lang Date: Mon, 1 Nov 2010 12:55:15 +0000 (+0000) Subject: Provides a default string for untranslated search types. X-Git-Tag: 1.1.0~220 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ba56b3f76333408e3a4692d5e3214ec27db2f4fc;p=redmine.git Provides a default string for untranslated search types. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4353 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 640b5a907..b8f416c58 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -39,7 +39,7 @@ module SearchHelper end def type_label(t) - l("label_#{t.singularize}_plural") + l("label_#{t.singularize}_plural", :default => t.to_s.humanize) end def project_select_tag