diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-12 14:42:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-12 14:42:15 +0000 |
commit | 1eff42eda6f608f6f9b586c5ff8ca33f9ba1cb7e (patch) | |
tree | 1dc61cc1a6f358ad7abc2269e85d764ecce14c18 /app | |
parent | 5478e5cbae986fb14dbcfad687f3d2c6b7c76c37 (diff) | |
download | redmine-1eff42eda6f608f6f9b586c5ff8ca33f9ba1cb7e.tar.gz redmine-1eff42eda6f608f6f9b586c5ff8ca33f9ba1cb7e.zip |
Translated 'Sort by' label on table headers.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@618 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/sort_helper.rb | 9 |
1 files changed, 2 insertions, 7 deletions
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 # </th> # 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 |