How to translate 1st, 2nd, 3rd...

tomski - April 14, 2009 - 16:30
Project:Archive
Version:6.x-1.3
Component:Page
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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,

#1

tomski - April 27, 2009 - 21:59

I 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!

#2

rpadua - October 28, 2009 - 08:39

Actually 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!

 
 

Drupal is a registered trademark of Dries Buytaert.