MailingList


 « Return to Thread: Translating will_paginate labels

Re: Translating will_paginate labels

by ozataman :: Rate this Message:

Reply to Author | View in Thread

I think you need to wrap those two lines around every controller request, i.e. via a before filter and a method in ApplicationController.

Cheers,
OA

On Sat, May 17, 2008 at 9:32 AM, 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