--- nfo/php/libs/org.netfrag.flib/Site.php 2003/02/09 17:29:02 1.6 +++ nfo/php/libs/org.netfrag.flib/Site.php 2004/11/15 17:24:50 1.7 @@ -1,8 +1,11 @@ actually wire the locale-text setting to $app->l10n->getLocaleKey() (the other way round....) $langkey = $this->localetext->getCurrentLanguage(); if($langkey == "de") { - setlocale (LC_ALL, 'de_DE'); + if(!setlocale (LC_ALL, 'de_DE')) { + // needed at e.g. FreeBSD + setlocale (LC_ALL, 'de_DE.ISO_8859-1'); + } } elseif($langkey == "en") { - setlocale (LC_ALL, 'en_US'); + if(!setlocale (LC_ALL, 'en_US')) { + // needed at e.g. FreeBSD + setlocale (LC_ALL, 'en_US.ISO_8859-1'); + } } - elseif($langkey == "tr") { - setlocale (LC_ALL, 'tr_TR'); + elseif($langkey == "tur") { + if(!setlocale (LC_ALL, 'tr_TR')) { + // needed at e.g. FreeBSD + setlocale (LC_ALL, 'tr_TR.ISO_8859-1'); + } } }