TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Source for file Language.php

Documentation is available at Language.php

  1. <?php
  2.  
  3.  /**
  4.  * Language class
  5.  *
  6. * Description: Internationalization i18n language selection
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @subpackage languages
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16.  class Language {
  17.  
  18.     public static $ENGLISH=0;
  19.  
  20.     private $language 0// English
  21.  
  22.     private $currentLanguage="English";
  23.     private $bundle;
  24.  
  25.     private function Language({}
  26.  
  27.  
  28.     public function activate({
  29.         $this->currentLanguage $this->language;
  30. /*
  31.         try {
  32.             //$this->bundle = $this->ResourceBundle->getBundle($this->languages, $this->currentLocale);
  33.  
  34.          } catch (
  35.          }
  36. */
  37.     }
  38.  
  39.     public static function getString($text{
  40.         // Read string depending of the language choosed , english by default
  41.         return Texts::${$text};
  42.     }
  43. }
  44. ?>

Documentation generated on Wed, 16 Jun 2010 12:06:32 +0200 by phpDocumentor 1.4.1