public function getLanguageCode($lang_name)
    {
        foreach (self::$supported_languages as $lng) {
            if (empty(self::$languages[$lng])) {
                continue;
            }
            
            foreach (self::$languages[$lng] as $code => $translation) {
                if (strcasecmp($lang_name, $translation) == 0) {
                    return $code;
                }
            } // foreach
        } // foreach
        
        return "";
    }