Mathieu Arnold wrote:
+-le 23.10.2007 13:33:01 +0200, Artur Baldyga a dit :
| 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
+-le 25.10.2007 15:43:15 +0200, Artur Baldyga a dit :
| Mathieu Arnold wrote:
| +-le 23.10.2007 13:33:01 +0200, Artur Baldyga a dit :
| | 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
My ruby version:
ruby 1.8.5 (2006-12-04 patchlevel 2).
It's to old ?
--
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post: Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:
Artur,
I am using a Rails plugin called Dutchify. Its code may help you develop
a Polify, or someting like that.
Dutchify is quite dirty as it overrides the Ruby date and time classes.
Works well though.
Don't forget to restart Radiant after you install this plugin ;)
Regards,
Erik.
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
--
Posted via
Artur Baldyga wrote:
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??
I'd suggest that you
Also consider that this is a limitation of Ruby and not necessarily
Radiant. You may need to find a library that overrides the Date, Time,
and DateTime classes to localize date names.
Sean
John W. Long wrote:
Artur Baldyga wrote:
I want to have listed archive with months and years in
+-le 23.10.2007 13:33:01 +0200, Artur Baldyga a dit :
| 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
You can try to overwrite Ruby's month constants with backdoor:
r:ruby
Date.MONTHNAMES = [nil] + %w(January February March April May June
July August September October November December)
Date.ABBR_MONTHNAMES = [nil] + %w(Jan Feb Mar Apr May Jun Jul Aug Sep
Oct Nov Dec)