3 |
// $Id$ |
// $Id$ |
4 |
// ------------------------------------------------------------------------------- |
// ------------------------------------------------------------------------------- |
5 |
// $Log$ |
// $Log$ |
6 |
|
// Revision 1.7 2004/11/15 17:24:50 jonen |
7 |
|
// + updated 'setlocale' for FreeBSD |
8 |
|
// |
9 |
// Revision 1.6 2003/02/09 17:29:02 joko |
// Revision 1.6 2003/02/09 17:29:02 joko |
10 |
// - refactored code to org.netfrag.glib/ |
// - refactored code to org.netfrag.glib/ |
11 |
// + added startup code here (Site/Boot.php got purged) |
// + added startup code here (Site/Boot.php got purged) |
151 |
// ---> actually wire the locale-text setting to $app->l10n->getLocaleKey() (the other way round....) |
// ---> actually wire the locale-text setting to $app->l10n->getLocaleKey() (the other way round....) |
152 |
$langkey = $this->localetext->getCurrentLanguage(); |
$langkey = $this->localetext->getCurrentLanguage(); |
153 |
if($langkey == "de") { |
if($langkey == "de") { |
154 |
setlocale (LC_ALL, 'de_DE'); |
if(!setlocale (LC_ALL, 'de_DE')) { |
155 |
|
// needed at e.g. FreeBSD |
156 |
|
setlocale (LC_ALL, 'de_DE.ISO_8859-1'); |
157 |
|
} |
158 |
} |
} |
159 |
elseif($langkey == "en") { |
elseif($langkey == "en") { |
160 |
setlocale (LC_ALL, 'en_US'); |
if(!setlocale (LC_ALL, 'en_US')) { |
161 |
|
// needed at e.g. FreeBSD |
162 |
|
setlocale (LC_ALL, 'en_US.ISO_8859-1'); |
163 |
|
} |
164 |
} |
} |
165 |
elseif($langkey == "tr") { |
elseif($langkey == "tur") { |
166 |
setlocale (LC_ALL, 'tr_TR'); |
if(!setlocale (LC_ALL, 'tr_TR')) { |
167 |
|
// needed at e.g. FreeBSD |
168 |
|
setlocale (LC_ALL, 'tr_TR.ISO_8859-1'); |
169 |
|
} |
170 |
} |
} |
171 |
|
|
172 |
} |
} |