public function getLanguageName($code, $lng = "", $warn_missing = true)
    {
        if (empty($lng)) {
            $lng = $this->getCurrentLanguage();
        }
        
        if (empty(self::$languages[$lng][$code])) {
            if ($warn_missing) {
                trigger_error("No translation for the language name [$code] in the language [$lng]!", E_USER_NOTICE);
            }
            return $code;
        }
        
        return self::$languages[$lng][$code];
    }