Beispiel #1
0
 /**
  * This method returns a singleton instance of __I18n
  *
  * @return __I18n A singleton reference to the __I18n
  */
 public static function &getInstance()
 {
     if (self::$_instance == null) {
         // Use "Lazy initialization"
         self::$_instance = new __I18n();
         //once the __I18n has been built, let's negociate the locale with the client:
         self::$_instance->_negociateLocale();
     }
     return self::$_instance;
 }