3 |
// $Id$ |
// $Id$ |
4 |
// ------------------------------------------------------------------------------- |
// ------------------------------------------------------------------------------- |
5 |
// $Log$ |
// $Log$ |
6 |
|
// Revision 1.9 2005/08/11 14:07:45 jonen |
7 |
|
// + added workaround for locale_number problem relating to generate Postscript files |
8 |
|
// |
9 |
|
// Revision 1.8 2005/01/21 16:51:57 jonen |
10 |
|
// + changed lang-key for turkish |
11 |
|
// |
12 |
|
// Revision 1.7 2004/11/15 17:24:50 jonen |
13 |
|
// + updated 'setlocale' for FreeBSD |
14 |
|
// |
15 |
// Revision 1.6 2003/02/09 17:29:02 joko |
// Revision 1.6 2003/02/09 17:29:02 joko |
16 |
// - refactored code to org.netfrag.glib/ |
// - refactored code to org.netfrag.glib/ |
17 |
// + added startup code here (Site/Boot.php got purged) |
// + added startup code here (Site/Boot.php got purged) |
156 |
// TODO: don't wire this to the locale-text setting |
// TODO: don't wire this to the locale-text setting |
157 |
// ---> 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....) |
158 |
$langkey = $this->localetext->getCurrentLanguage(); |
$langkey = $this->localetext->getCurrentLanguage(); |
159 |
|
|
160 |
|
$ident = $_GET[x]; |
161 |
|
// fallback to post |
162 |
|
if (!$ident) { $ident = $_POST[x]; } |
163 |
|
|
164 |
if($langkey == "de") { |
if($langkey == "de") { |
165 |
setlocale (LC_ALL, 'de_DE'); |
if(($ident == '/terminal/deposit/' || $ident == '/terminal/ss_success/') && $this->session->get('validTerminal')) { |
166 |
|
if(!setlocale (LC_ALL, 'en_US')) { |
167 |
|
// needed at e.g. FreeBSD |
168 |
|
setlocale (LC_ALL, 'en_US.ISO_8859-1'); |
169 |
|
} |
170 |
|
} else { |
171 |
|
if(!setlocale (LC_ALL, 'de_DE')) { |
172 |
|
// needed at e.g. FreeBSD |
173 |
|
setlocale (LC_ALL, 'de_DE.ISO_8859-1'); |
174 |
|
} |
175 |
|
} |
176 |
} |
} |
177 |
elseif($langkey == "en") { |
elseif($langkey == "en") { |
178 |
setlocale (LC_ALL, 'en_US'); |
if(!setlocale (LC_ALL, 'en_US')) { |
179 |
|
// needed at e.g. FreeBSD |
180 |
|
setlocale (LC_ALL, 'en_US.ISO_8859-1'); |
181 |
|
} |
182 |
} |
} |
183 |
elseif($langkey == "tr") { |
elseif($langkey == "tr") { |
184 |
setlocale (LC_ALL, 'tr_TR'); |
if(($ident == '/terminal/deposit/' || $ident == '/terminal/ss_success/') && $this->session->get('validTerminal')) { |
185 |
|
//if($_POST[xsend] && $this->session->get('validTerminal')) { |
186 |
|
if(!setlocale (LC_ALL, 'en_US')) { |
187 |
|
// needed at e.g. FreeBSD |
188 |
|
setlocale (LC_ALL, 'en_US.ISO_8859-1'); |
189 |
|
} |
190 |
|
} else { |
191 |
|
if(!setlocale (LC_ALL, 'tr_TR')) { |
192 |
|
// needed at e.g. FreeBSD |
193 |
|
setlocale (LC_ALL, 'tr_TR.ISO_8859-1'); |
194 |
|
} |
195 |
|
} |
196 |
} |
} |
197 |
|
|
198 |
} |
} |