示例#1
0
 static function sysPath($newpath = null)
 {
     $ret = self::$_syspath ? self::$_syspath : SYS_PATH;
     if ($newpath != null) {
         self::$_syspath = str_replace('//', '/', realpath($newpath) . '/');
         console::debug("Setting sys path: %s", self::$_syspath);
     }
     return $ret;
 }
示例#2
0
 function __construct($fromlang, $tolang, $apiversion = 1)
 {
     $this->fromlang = reset(explode('-', $fromlang));
     $this->tolang = reset(explode('-', $tolang));
     console::debug('Translator for %s to %s created', $this->fromlang, $this->tolang);
 }