10381 Posts in 2195 Topics by 1711 members
| Go to End | ||
| Author | Topic: | 2375 Views |
-
Re: Event Calendar: New Feature

2 October 2009 at 3:07am
The day names are translated like this:
return strftime('%a',$timestamp);
So make sure your PHP locale is set correctly.
-
Re: Event Calendar: New Feature

2 October 2009 at 10:13pm
Yeah!
Works after setting it up like this:if($this->dataRecord->hasExtension('Translatable'))
{
if ( ereg("^".Translatable::default_lang(), $_SERVER['HTTP_ACCEPT_LANGUAGE']) )
{
i18n::set_locale(Translatable::default_locale());
setlocale(LC_ALL, Translatable::default_locale().'.utf8');
}
else
{
Translatable::set_current_locale("en_US");
i18n::set_locale("en_US");
setlocale(LC_ALL, "en_US.utf8");
}
}How to translate 'Start' and 'End' words in $CalendarFilterForm?
-
Re: Event Calendar: New Feature

3 October 2009 at 1:36am
You can use CalendarFilterFieldSet.START and CalendarFilterFieldSet.END. Glad it's working!
-
Re: Event Calendar: New Feature

3 October 2009 at 1:50am
Mission accomplished:) Thanks UncleCheese for Your great help!
| 2375 Views | ||
| Go to Top |

