/[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.8 by jonen, Fri Jan 21 16:51:57 2005 UTC
# Line 3  Line 3 
3  //    $Id$  //    $Id$
4  //    -------------------------------------------------------------------------------  //    -------------------------------------------------------------------------------
5  //    $Log$  //    $Log$
6    //    Revision 1.8  2005/01/21 16:51:57  jonen
7    //    + changed lang-key for turkish
8    //
9    //    Revision 1.7  2004/11/15 17:24:50  jonen
10    //    + updated 'setlocale' for FreeBSD
11    //
12  //    Revision 1.6  2003/02/09 17:29:02  joko  //    Revision 1.6  2003/02/09 17:29:02  joko
13  //    - refactored code to org.netfrag.glib/  //    - refactored code to org.netfrag.glib/
14  //    + 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 154  class Site extends Application_AbstractB
154      //             ---> 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....)
155      $langkey = $this->localetext->getCurrentLanguage();      $langkey = $this->localetext->getCurrentLanguage();
156      if($langkey == "de") {      if($langkey == "de") {
157          setlocale (LC_ALL, 'de_DE');          if(!setlocale (LC_ALL, 'de_DE')) {
158              // needed at e.g. FreeBSD
159              setlocale (LC_ALL, 'de_DE.ISO_8859-1');
160            }
161      }      }
162      elseif($langkey == "en") {      elseif($langkey == "en") {
163          setlocale (LC_ALL, 'en_US');          if(!setlocale (LC_ALL, 'en_US')) {
164              // needed at e.g. FreeBSD
165              setlocale (LC_ALL, 'en_US.ISO_8859-1');
166            }
167      }      }
168      elseif($langkey == "tr") {      elseif($langkey == "tr") {
169          setlocale (LC_ALL, 'tr_TR');          if(!setlocale (LC_ALL, 'tr_TR')) {
170              // needed at e.g. FreeBSD
171              setlocale (LC_ALL, 'tr_TR.ISO_8859-1');
172            }
173      }      }
174    
175    }    }

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

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