Translated pagination links.

This commit is contained in:
Benjamin Meichsner 2009-03-23 10:47:42 +01:00
parent 51f9826ea6
commit 1772e8840c

View file

@ -21,8 +21,8 @@ module ApplicationHelper
update = options[:update] || nil update = options[:update] || nil
# Translations # Translations
previous_label = '« ' + _('Previous') previous_label = '« ' + "Vorherige"
next_label = _('Next') + ' »' next_label = "Nächste" + ' »'
# Merge other url-options for will_paginate # Merge other url-options for will_paginate
params = params.merge({:per_page => per_page}) params = params.merge({:per_page => per_page})
will_paginate collection, { :params => params, :remote => true, :update => update, will_paginate collection, { :params => params, :remote => true, :update => update,
@ -49,7 +49,7 @@ module ApplicationHelper
links << per_page links << per_page
end end
end end
return _('Per page: ') + links.join(" ") return "Pro Seite: " + links.join(" ")
end end
def sort_td_class_helper(param) def sort_td_class_helper(param)