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 <[EMAIL PROTECTED]>
> Subject: [Radiant] Names of months in Archive Extension
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> 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
> --
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to