Closed (won't fix)
Project:
Archive
Version:
6.x-1.3
Component:
Page
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2009 at 16:30 UTC
Updated:
16 Jun 2010 at 17:41 UTC
It is indeed a quite stupid question, but I can't get Archive to show for instance 1er, 2ème, 3ème in French at the place of 1st, 2nd and 3rd or even just nothing would be fine.
I precise that all the other strings appear to be correctly translated through locale.
So, is there a way to get these archive strings translated?
Or how can I just get rid of the extra st, nd and rd by hacking the module? (I looked into this but I could not guess since I don not understand much in php).
Many thanks in advance,
Comments
Comment #1
tomski commentedI found a way to eliminate the *st, *nd, etc.
At the bottom of the module code there is this line:
$date_sep = format_date($date_created, 'custom', 'F jS');
And you need to change into this:
$date_sep = format_date($date_created, 'custom', 'F j');
Yet if it was possible just to translate it and keep it therefore for the English version of the site it would be of course better!
Comment #2
rpadua commentedActually it's not "at the bottom of the module code", but at the bottom of archives.pages.inc .
This information might be useful for someone, if I knew it I might have saved a lot of time ;)
Good work, it fixes this issue!
Comment #3
R.Muilwijk commentedIn drupal 7 this might be handled by Views fields where you'll be able to specify the format. Won't be in the 1.x version of this module.