I don't think that's necessary; globalite has this stuff built-in. From the
globalite README:
Localize a time object by using a predefined format (defined in the
date_helper_time_formats variable that you can find in
globalite/lang/rails/[lang].yml)
Globalite.language = :fr
Time.now.l(:long)
Localize a date object by using a predefined format (defined in the
date_helper_date_formats variable that you can find in
globalite/lang/rails/[lang].yml)
Date.today.l
Get a distance of time in words localized.
distance_of_time_in_words(10.minutes.ago, Time.now)
On Fri, Aug 29, 2008 at 1:09 PM, Alejandro <[EMAIL PROTECTED]> wrote:
>
> Bruno,
>
> I've been doing some research in how to i18n dates and I found this:
>
> http://jdugarte.blogspot.com/2008/04/rails-en-espaol.html
>
> Is there another way to do this?
>
> Thanks in advance.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---