Quote from: taiyo1578 at Feb 09, 2010, 10:39 AM
My clients and I are loving this snippet. So thanks again Chuck for giving us this.
So my English version works great but now I need to get Spanish going.
I’ve modified my Language Files based on this:
http://wiki.modxcms.com/index.php/Category:Language_Files#Managing_the_translation_process_collaboratively
and I see Spanish for the current month. However for the clickable months (previous and next) I’m still seeing english.
check it here: http://grab.by/2iAo
Can anyone shed some light on this? It appears that simplepie.inc has been coded to handle this.....
Thanks,
Eliot
I just setup this wonderful snippet and i had the same problem as Eliot but for french language.
I have found a solution after reading the php docs..
To have my calendar in french, i put this code in the /manager/includes/config.inc.php file
setlocale(LC_ALL, 'fr_FR.utf8', 'fr_FR.utf-8');
after that, the actual month is translated.
then i modify the class.Calendar_Events.php (line ~43) like this :
$prevMonth = strftime('%m',mktime('6', '1', '1', strftime($mo)-1 , '6', $yr));
$prevMonthName = strftime('%B',mktime('6', '1', '1', strftime($mo)-1 , '6', $yr));
$nextMonth = strftime('%m',mktime('6', '1', '1', strftime($mo)+1 , '6', $yr));
$nextMonthName = strftime ('%B',mktime('6', '1', '1', strftime($mo)+1 , '6', $yr));
to translate the next/previous month links ... and it seems to work.
hope it help someone.