Download & Extend

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

Project:Archive
Version:6.x-1.3
Component:Page
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

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

#1

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

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!

#3

Category:support request» feature request
Status:active» closed (won't fix)

In 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.

nobody click here