Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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.