2011-10-01, 14:48:39
I had problem with czech lanfuage. I placed this code "setlocale(LC_ALL, 'cs_CZ.utf8');"
at line 107 of events.php
-----------------------------------------
// set to midnight
setlocale(LC_ALL, 'cs_CZ.utf8');
$events_calendar_date = mktime(0, 0, 0, date('n', $events_calendar_date), date('j', $events_calendar_date), date('Y', $events_calendar_date));
------------------------------------------
and deleted "utf8_encode" at line about 565:
return utf8_encode('<span class="previousmonth">'.$previous_month_link.'</span> <span class="currentmonth">'.strftime('%B %Y', $event_date).'</span> <span class="nextmonth">'.$next_month_link.'</span>');
and names month names are correctly in Czech lang.
at line 107 of events.php
-----------------------------------------
// set to midnight
setlocale(LC_ALL, 'cs_CZ.utf8');
$events_calendar_date = mktime(0, 0, 0, date('n', $events_calendar_date), date('j', $events_calendar_date), date('Y', $events_calendar_date));
------------------------------------------
and deleted "utf8_encode" at line about 565:
return utf8_encode('<span class="previousmonth">'.$previous_month_link.'</span> <span class="currentmonth">'.strftime('%B %Y', $event_date).'</span> <span class="nextmonth">'.$next_month_link.'</span>');
and names month names are correctly in Czech lang.
maxpop Wrote:Not working ;(...
Thx anyway, i like the plugins .
SamWM Wrote:Since it just uses php's `date` method, it should hopefully work if you set the locale in the gsconfig.php file (at the bottom). e.g.
You would probably want to set the timezone in GetSimple as well (if you have not already).Code:setlocale(LC_ALL, 'sv_SE');
maxpop Wrote:thx....
Working...
How do i use other languages like swedish?
So july is showing as Juli..