diff --git a/html/inc/language_names.inc b/html/inc/language_names.inc index 6db9b1f6a9..bf607b6343 100644 --- a/html/inc/language_names.inc +++ b/html/inc/language_names.inc @@ -55,42 +55,39 @@ $language_names = array( array("zh_TW", "繁體中文", "Chinese (Taiwan)"), ); -function language_select() { +function language_select($cur_lang_name) { global $language_names; + echo "cur lang: $cur_lang_name"; $supported_languages = get_supported_languages(); $supported_languages[] = "en"; - $bd = tra("Browser default"); + $sel = $cur_lang_name?"":"selected"; echo " -