public function text($text_id, $lng = "", $warn_missing = true, $default_text = "")
    {
        if (empty($lng)) {
            $lng = $this->getCurrentLanguage();
        }
        
        if (empty(self::$texts[$lng][$text_id])) {
            if ($warn_missing) {
                trigger_error("No translation for the text '$text_id' in the language [$lng]!", E_USER_NOTICE);
            }
            
            if (empty($default_text)) {
                return $text_id;
            } else {
                return $default_text;
            }
        }
        
        return self::$texts[$lng][$text_id];
    }