/[cvs]/nfo/php/libs/org.netfrag.flib/Application/l10n/LocaleText.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.flib/Application/l10n/LocaleText.php

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

revision 1.1 by joko, Tue Nov 12 05:42:30 2002 UTC revision 1.2 by joko, Tue Dec 3 03:10:21 2002 UTC
# Line 3  Line 3 
3  //    $Id$  //    $Id$
4  //    ------------------------------------------------------------------  //    ------------------------------------------------------------------
5  //    $Log$  //    $Log$
6    //    Revision 1.2  2002/12/03 03:10:21  joko
7    //    + bugfix regarding new object hierarchy
8    //
9  //    Revision 1.1  2002/11/12 05:42:30  joko  //    Revision 1.1  2002/11/12 05:42:30  joko
10  //    + initial checkin  //    + initial checkin
11  //  //
# Line 47  class LocaleText { Line 50  class LocaleText {
50    // ----------------------------------------------------    // ----------------------------------------------------
51    function LocaleText() {    function LocaleText() {
52      global $cfg, $slt;      global $cfg, $slt;
53      //session_register_safe('slt');      session_register_safe('slt');
54      $this->langs_avail = $cfg[GLBL_LANGSAVAIL];      $this->langs_avail = $cfg[GLBL_LANGSAVAIL];
55      $this->load();      $this->load();
56    }    }
# Line 146  class LocaleText { Line 149  class LocaleText {
149    
150    function setLanguage($langkey_new = "") {    function setLanguage($langkey_new = "") {
151      global $slt;      global $slt;
152      if ($langkey_new) {      //print "setting lang<br>";
153        if ($langkey_new) {
154        $slt[langkey] = $langkey_new;        $slt[langkey] = $langkey_new;
155      }      }
156        $this->load();
157    }    }
158        
159    function load() {    function load() {
160      global $slt;      global $slt;
161    
162      $this->langkey = $slt[langkey];      if (!$this->langkey) { $this->langkey = $slt[langkey]; }
163      if (!$this->langkey) { $this->langkey = $this->_findAvailableLanguage($slt[langkey]); }      if (!$this->langkey) { $this->langkey = $this->_findAvailableLanguage($slt[langkey]); }
164    
165      // print "- starting language-library<br>";      //print "- starting language-library<br>";
166        //print "lang: " . $this->langkey . "<br>";
167      //$langkey_new = $this->_detectLanguage();      //$langkey_new = $this->_detectLanguage();
168      //$this->_loadStructure_FromDb();      //$this->_loadStructure_FromDb();
169      //$this->setLanguage($langkey_new);      //$this->setLanguage($langkey_new);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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