Esempio n. 1
0
 /**
  *
  */
 private function initTranslator()
 {
     if (isset($_GET['lang']) && (file_exists("installer/lang/" . $_GET['lang'] . ".php") || $_GET['lang'] == "en")) {
         self::$lang = $_GET['lang'];
         $_SESSION['lang'] = self::$lang;
     } else {
         if (isset($_SESSION['lang']) && (file_exists("installer/lang/" . $_SESSION['lang'] . ".php") || $_SESSION['lang'] == "en")) {
             self::$lang = $_SESSION['lang'];
         } else {
             self::$lang = "en";
         }
     }
     if (self::$lang !== "en") {
         self::$langTexts = (include "installer/lang/" . self::$lang . ".php");
     }
 }