MailingList


Translating will_paginate labels

View: New views
11 Messages — Rating Filter:   Alert me  

Translating will_paginate labels

by Alexander Hoth :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




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




Re: Translating will_paginate labels

by ozataman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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




Re: Translating will_paginate labels

by Nicola Piccinini-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
>

Re: Translating will_paginate labels

by Alexander Hoth :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
>>



Website

by Mattias Bodlund :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Has the Globalize site moved (http://globalize-rails.org)?

Cheers
Mattias


Re: Website

by joshmh@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nope, it's hosted at StikiPad, and it looks like they're having some problems:

http://www.stikipad.com/

-- Josh

On Mon, May 26, 2008 at 11:39 AM, Mattias Bodlund <mattias@...> wrote:
Has the Globalize site moved (http://globalize-rails.org)?

Cheers
Mattias



Re: Website

by ginger72 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mattias,

Not sure if you are getting the same message as me, but when I go to the link you mentioned below, I get:

Hang on for awhile..

We're moving data centers.

Things will be back up and running as soon as possible.


This has been the same for the past 2 weeks.

Greetings,
Juergen

On May 26, 2008, at 4:09 PM, Joshua Harvey wrote:

Nope, it's hosted at StikiPad, and it looks like they're having some problems:

http://www.stikipad.com/

-- Josh

On Mon, May 26, 2008 at 11:39 AM, Mattias Bodlund <mattias@...> wrote:
Has the Globalize site moved (http://globalize-rails.org)?

Cheers
Mattias




Re: Website

by Eugenol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stikipad is unstable or down for months...
Sadly, this is not a reliable service anymore



On Mon, May 26, 2008 at 9:33 PM, Jürgen Feßlmeier <jfesslmeier@...> wrote:

> Mattias,
> Not sure if you are getting the same message as me, but when I go to the
> link you mentioned below, I get:
> Hang on for awhile..
>
> We're moving data centers.
>
> Things will be back up and running as soon as possible.
>
> This has been the same for the past 2 weeks.
> Greetings,
> Juergen
> On May 26, 2008, at 4:09 PM, Joshua Harvey wrote:
>
> Nope, it's hosted at StikiPad, and it looks like they're having some
> problems:
>
> http://www.stikipad.com/
>
> -- Josh
>
> On Mon, May 26, 2008 at 11:39 AM, Mattias Bodlund <mattias@...>
> wrote:
>>
>> Has the Globalize site moved (http://globalize-rails.org)?
>>
>> Cheers
>> Mattias
>>
>
>
>



--
Jérôme Lipowicz

Re: Website

by Mattias Bodlund :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok - I just get nothing.

I'll just wait and see what happens.

mattias

On 26/05/2008, at 21.33, Jürgen Feßlmeier wrote:

> Mattias,
>
> Not sure if you are getting the same message as me, but when I go to  
> the link you mentioned below, I get:
>
> Hang on for awhile..
> We're moving data centers.
>
> Things will be back up and running as soon as possible.
>
>
> This has been the same for the past 2 weeks.
>
> Greetings,
> Juergen
>
> On May 26, 2008, at 4:09 PM, Joshua Harvey wrote:
>
>> Nope, it's hosted at StikiPad, and it looks like they're having  
>> some problems:
>>
>> http://www.stikipad.com/
>>
>> -- Josh
>>
>> On Mon, May 26, 2008 at 11:39 AM, Mattias Bodlund <mattias@...
>> > wrote:
>> Has the Globalize site moved (http://globalize-rails.org)?
>>
>> Cheers
>> Mattias
>>
>>
>


Re: Website

by stainless-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

maybe the github's wiki page worth maintain

Re: Website

by joshmh@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I posted about this elsewhere but thanks to Sven, the website is back up:

http://www.globalize-rails.org/

On Fri, Jun 6, 2008 at 6:46 PM, stainless <johnsonqu@...> wrote:
maybe the github's wiki page worth maintain