--- nfo/php/libs/org.netfrag.flib/Site/Boot.php 2002/12/19 06:19:31 1.4 +++ nfo/php/libs/org.netfrag.flib/Site/Boot.php 2002/12/19 10:26:25 1.5 @@ -1,8 +1,11 @@ array('LocaleText'), ref_names => array('lt'), parent_name => 'site', run => 'start' ); $this->_mkEmbeddedObjects( $args ); + // Set locale according to choosed language (needed for date/time functions) + // TODO: set this according to user's profile + $langkey = $this->localetext->getCurrentLanguage(); + if($langkey == "de") { + setlocale (LC_ALL, 'de_DE'); + } + elseif($langkey == "en") { + setlocale (LC_ALL, 'en_US'); + } + elseif($langkey == "tr") { + setlocale (LC_ALL, 'tr_TR'); + } + } function _init_database() {