Forum: Ruby on Rails translating next and previous in will paginate

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Shuaib Z. (Guest)
on 2009-03-13 22:42
(Received via mailing list)
Dear all

I was wondering how can i use i18n to translate next and previous in
the will paginate plugin

any idea

thank
Kaspars Bankovskis (Guest)
on 2009-03-14 14:44
(Received via mailing list)
Kind of this?

<%= will_paginate @posts, :previous_label => t('previous'),
:next_label => t('next') %>

On Fri, Mar 13, 2009 at 10:41 PM, Shuaib85 
<removed_email_address@domain.invalid>
wrote:
>
--
Kaspars Bankovskis
Shuaib Z. (Guest)
on 2009-03-14 16:21
(Received via mailing list)
Thanks

it is

<%= will_paginate @products, :next_label => t
('links.next'), :prev_label => t('links.previous') %>
This topic is locked and can not be replied to.