MailingList


 « Return to Thread: Translating will_paginate labels

Re: Translating will_paginate labels

by Nicola Piccinini-2 :: Rate this Message:

Reply to Author | View in Thread

my suggestion is to use the :prev_label and next_label options:

      will_paginate @objs, {
        :prev_label => 'Previous'.t,
        :next_label => 'Next'.t
        }

Regards

On Sat, May 17, 2008 at 4:32 PM, Alexander Hoth <ahoth@...> wrote:

>
>
>
>  Hi there,
>
>  Has somebody found a solution for translating will_paginate labels, like
>  "Next" and "Previous" ?
>
>  I've tried with (in environment.rb)
>
>  WillPaginate::ViewHelpers.pagination_options[:prev_label] = "Previous".t
>  WillPaginate::ViewHelpers.pagination_options[:next_label] = "Next".t
>
>
>  Obviously it hasn't any effect, because it does not happen on the view
>  level. Any suggestions? I am using will_paginate as a gem.
>
>
>  Regards from Berlin,
>
>  Alexander Hoth
>

 « Return to Thread: Translating will_paginate labels