From 1eff42eda6f608f6f9b586c5ff8ca33f9ba1cb7e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 12 Aug 2007 14:42:15 +0000 Subject: Translated 'Sort by' label on table headers. git-svn-id: http://redmine.rubyforge.org/svn/trunk@618 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/sort_helper.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'app') diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rb index 5201b7ef4..e1e87cbbb 100644 --- a/app/helpers/sort_helper.rb +++ b/app/helpers/sort_helper.rb @@ -137,13 +137,8 @@ module SortHelper # # def sort_header_tag(column, options = {}) - if options[:caption] - caption = options[:caption] - options.delete(:caption) - else - caption = titleize(Inflector::humanize(column)) - end - options[:title]= "Sort by #{caption}" unless options[:title] + caption = options.delete(:caption) || titleize(Inflector::humanize(column)) + options[:title]= l(:label_sort_by, caption) unless options[:title] content_tag('th', sort_link(column, caption), options) end -- cgit v1.2.3