[Radiant] Radiant Digest, Vol 19, Issue 42

Sergio Brant smbrant at gmail.com
Tue Oct 23 19:19:03 CDT 2007


Hi,

I did this in portuguese:

First, install the back_door extension (http://backdoor.rubyforge.org/).

Then, create a snnipet like this: (I named it 'portuguese_month')

<r:ruby>
  require 'date'
  month=Date.today.month
  months=[nil,'janeiro','fevereiro','março','abril','maio','junho',

'julho','agosto','setembro','outubro','novembro','dezembro']
  months[month]
</r:ruby>

Later, use this with <r:snippet name="portuguese_month"/>

[]s


Message: 5
> Date: Tue, 23 Oct 2007 13:33:01 +0200
> From: Artur Baldyga <baldinio at gmail.com>
> Subject: [Radiant] Names of months in Archive Extension
> To: radiant at lists.radiantcms.org
> Message-ID: <5103096b35fa84d98e85ac206114a709 at ruby-forum.com>
> Content-Type: text/plain; charset=utf-8
>
> Hi,
>
> I want to have listed archive with months and years in polish language.
> By default this is english language. If I use command:
> "<r:date format="%B %Y" />" I got for example June 2007. Instead of
> "June" I want to have polish equivalent. What I have to do??
>
> Regards, Artur
> --
>



More information about the Radiant mailing list