Thanks a lot. Didn't mention that option ... So easy :)
On 17.05.2008 17:09 Uhr, "Nicola Piccinini" <
pic@...> wrote:
> 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
>>