Support for languages other than English

elhombresinatributos - July 30, 2006 - 08:14
Project:Monthly Archive
Version:4.7.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:elhombresinatributos
Status:closed
Description

Well, I think the title is comprehensive enough to have to explain much more.
Thanks!!
S.

#1

elhombresinatributos - July 30, 2006 - 09:20
Assigned to:Anonymous» elhombresinatributos
Status:active» fixed

Coded in the .module.

Edit the .module file with a text editor and you'll find:
a) A constant value for setting the title of the "Monthly Archive" block.
b) A trad_mes function for translating english month names to your language.

Without any modification the module writes the names in Spanish but it's very easy to change.

AttachmentSize
month-4.7.0.rar 9.77 KB

#2

Loong - July 31, 2006 - 05:03

thanks,I put your version into ../more_language/Spanish.

#3

elhombresinatributos - August 1, 2006 - 18:17

I've made some minor changes.
The most important one is to change the title of the pages /month/yyyy/mm to spanish. My changes are fully documented and easy to customize to fit any other language than spanish but it could be more clean. I'm not a programmer and it's my very first "work" with PHP.

Maybe someane would like to improve my changes. It would be nice if it's possible to change the names of the months and the title of the month's page from the DRUPAL interface and without having to edit the module directly.

Thanks to you anyway, your module works great for me.

AttachmentSize
month_module.rar 10.06 KB

#4

Anonymous - August 15, 2006 - 18:45
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.