librelist archives

« back to archive

Breadcrumb translation

Breadcrumb translation

From:
hectorsq
Date:
2011-04-14 @ 20:39
Hello,

Since my site is in spanish I want to change the breadcrumb label for the
home page from "Home" to "Inicio"

I've found in the gem's source that there is a method called
breadcrumb_label where the label "Home" is hardcoded.

What is the recommended way to override this function? Is at simple as
defining it again in my theme's app.rb?

Sorry for the question, but I have almost no experience using Sinatra.

Regards,
Hector Sansores
@hectorsq

Re: [nesta] Breadcrumb translation

From:
Abel Rios
Date:
2011-04-14 @ 21:13
Hi Hector,

Yep, you can extend all of the functionality in Nesta. Just define the
helper in your app.rb like so:
https://gist.github.com/920566

- Abel

On Thu, Apr 14, 2011 at 3:39 PM, hectorsq <mail@hectorsq.com> wrote:

> Hello,
>
> Since my site is in spanish I want to change the breadcrumb label for the
> home page from "Home" to "Inicio"
>
> I've found in the gem's source that there is a method called
> breadcrumb_label where the label "Home" is hardcoded.
>
> What is the recommended way to override this function? Is at simple as
> defining it again in my theme's app.rb?
>
> Sorry for the question, but I have almost no experience using Sinatra.
>
> Regards,
> Hector Sansores
> @hectorsq
>
>

Re: [nesta] Breadcrumb translation

From:
hectorsq
Date:
2011-04-15 @ 04:21
Abel,

Thanks a lot for your gist! It works perfectly.

Regards,
Hector Sansores
@hectorsq