. $language_names = array( array("ar", "العربية", "Arabic"), array("az", "Азәрбајҹан дили", "Azerbaijani"), array("be", "Беларускі", "Belarusian"), array("bg", "Български", "Bulgarian"), array("ca", "Català", "Catalan"), array("cs", "Čeština ", "Czech"), array("cy", "Cymraeg", "Welsh"), array("da", "Dansk", "Danish"), array("de", "Deutsch ", "German"), array("el", "Ελληνικά", "Greek"), array("en", "English", "English"), array("es", "Español", "Spanish"), array("eu", "Basque", "Basque"), array("fi", "Suomi", "Finnish"), array("fr", "Français", "French"), array("gl", "Galego", "Galician"), array("he", "עִבְרִית", "Hebrew"), array("hr", "Hrvatski", "Croatian"), array("hu", "Magyar", "Hungarian"), array("it_IT", "Italiano", "Italian"), array("ja", "日本語", "Japanese"), array("ko", "한국어", "Korean"), array("lt", "Lietuvių", "Lithuanian"), array("lv", "Latviešu", "Latvian"), array("ms", "بهاس ملايو", "Malay"), array("nb", "Norsk", "Norwegian"), array("nl", "Nederlands", "Dutch"), array("pl", "Polski", "Polish"), array("pt_BR", "Português - Brasil", "Portuguese - Brazil"), array("pt_PT", "Português", "Portuguese"), array("ro", "Română", "Romanian"), array("ru", "Русский", "Russian"), array("sa", "فارسی", "Persian"), array("sk", "Slovenčina", "Slovakian"), array("sl", "Slovenščina", "Slovenian"), array("sv", "Svenska", "Swedish"), array("tr", "Türkçe", "Turkish"), array("uk", "Українська", "Ukrainian"), array("zh_CN", "简体中文", "Chinese"), array("zh_TW", "繁體中文", "Chinese (Taiwan)"), ); function language_select($cur_lang_name) { global $language_names; $supported_languages = get_supported_languages(); $supported_languages[] = "en"; $sel = $cur_lang_name?"":"selected"; echo "