/[cvs]/nfo/php/libs/org.netfrag.flib/Site.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.flib/Site.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by jonen, Fri Jan 21 16:51:57 2005 UTC revision 1.9 by jonen, Thu Aug 11 14:07:45 2005 UTC
# Line 3  Line 3 
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  //    Revision 1.8  2005/01/21 16:51:57  jonen
10  //    + changed lang-key for turkish  //    + changed lang-key for turkish
11  //  //
# Line 153  class Site extends Application_AbstractB Line 156  class Site extends Application_AbstractB
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          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')) {          if(!setlocale (LC_ALL, 'de_DE')) {
172            // needed at e.g. FreeBSD            // needed at e.g. FreeBSD
173            setlocale (LC_ALL, 'de_DE.ISO_8859-1');            setlocale (LC_ALL, 'de_DE.ISO_8859-1');
174          }          }
175          }
176      }      }
177      elseif($langkey == "en") {      elseif($langkey == "en") {
178          if(!setlocale (LC_ALL, 'en_US')) {          if(!setlocale (LC_ALL, 'en_US')) {
# Line 166  class Site extends Application_AbstractB Line 181  class Site extends Application_AbstractB
181          }          }
182      }      }
183      elseif($langkey == "tr") {      elseif($langkey == "tr") {
184          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')) {          if(!setlocale (LC_ALL, 'tr_TR')) {
192            // needed at e.g. FreeBSD            // needed at e.g. FreeBSD
193            setlocale (LC_ALL, 'tr_TR.ISO_8859-1');            setlocale (LC_ALL, 'tr_TR.ISO_8859-1');
194          }          }
195          }
196      }      }
197    
198    }    }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed