public function t($str, $filename = "template") {
    $this->forceUpdateLocale();

    $key = "{$filename}.{$str}";
    $transl = Lang::get($key);

    if ($transl != $key) {
      return $transl;
    }

    return $this->strict_mode ? '' : $str;
  }