/[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.6 by joko, Sun Feb 9 17:29:02 2003 UTC revision 1.7 by jonen, Mon Nov 15 17:24:50 2004 UTC
# Line 3  Line 3 
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)
# Line 148  class Site extends Application_AbstractB Line 151  class Site extends Application_AbstractB
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    }    }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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