| 3 |
// $Id$ |
// $Id$ |
| 4 |
// ------------------------------------------------------------------------- |
// ------------------------------------------------------------------------- |
| 5 |
// $Log$ |
// $Log$ |
| 6 |
|
// Revision 1.5 2002/12/19 10:26:25 jonen |
| 7 |
|
// + set_locale on 'lt_init()' according to choosen languange |
| 8 |
|
// |
| 9 |
// Revision 1.4 2002/12/19 06:19:31 joko |
// Revision 1.4 2002/12/19 06:19:31 joko |
| 10 |
// + function _init_database |
// + function _init_database |
| 11 |
// + function _init_smarty |
// + function _init_smarty |
| 158 |
$args = array( class_names => array('LocaleText'), ref_names => array('lt'), parent_name => 'site', run => 'start' ); |
$args = array( class_names => array('LocaleText'), ref_names => array('lt'), parent_name => 'site', run => 'start' ); |
| 159 |
$this->_mkEmbeddedObjects( $args ); |
$this->_mkEmbeddedObjects( $args ); |
| 160 |
|
|
| 161 |
|
// Set locale according to choosed language (needed for date/time functions) |
| 162 |
|
// TODO: set this according to user's profile |
| 163 |
|
$langkey = $this->localetext->getCurrentLanguage(); |
| 164 |
|
if($langkey == "de") { |
| 165 |
|
setlocale (LC_ALL, 'de_DE'); |
| 166 |
|
} |
| 167 |
|
elseif($langkey == "en") { |
| 168 |
|
setlocale (LC_ALL, 'en_US'); |
| 169 |
|
} |
| 170 |
|
elseif($langkey == "tr") { |
| 171 |
|
setlocale (LC_ALL, 'tr_TR'); |
| 172 |
|
} |
| 173 |
|
|
| 174 |
} |
} |
| 175 |
|
|
| 176 |
function _init_database() { |
function _init_database() { |