/**
  * Simple localization that searches passed word in localization dir
  *
  * Localization file is selected based on LOCALE const
  *
  * @param $word
  * @param bool|false $lowercase
  * @return mixed|string
  */
 public static function __t($word, $lowercase = false)
 {
     if (self::$localization === null) {
         $lcpath = __DIR__ . '/localization/' . self::LOCALE . '.php';
         self::$localization = file_exists($lcpath) ? require $lcpath : array();
     }
     $translated = isset(self::$localization[$word]) ? self::$localization[$word] : str_replace('_', ' ', $word);
     return $lowercase ? lcfirst($translated) : $translated;
 }