]> source.dussan.org Git - redmine.git/commitdiff
Provides a default string for untranslated search types.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 1 Nov 2010 12:55:15 +0000 (12:55 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 1 Nov 2010 12:55:15 +0000 (12:55 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4353 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/search_helper.rb

index 640b5a907c3f58ccee3fd096ec0b34245b6df4e4..b8f416c5845232bffd8062bd2de1156c82b7e083 100644 (file)
@@ -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