function _getLanguages()
 {
     global $lng;
     $lng->loadLanguageModule("meta");
     $langs = array();
     foreach (ilMDLanguageItem::_getPossibleLanguageCodes() as $lngcode) {
         $langs[$lngcode] = $lng->txt("meta_l_" . $lngcode);
     }
     asort($langs);
     return $langs;
 }
 function _getLanguageSelect($a_selected, $a_name, $prepend = array(), $a_options_only = false)
 {
     include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
     global $lng;
     foreach (ilMDLanguageItem::_getPossibleLanguageCodes() as $code) {
         $tmp_options[$code] = $lng->txt('meta_l_' . $code);
     }
     asort($tmp_options, SORT_STRING);
     foreach ($prepend as $value => $translation) {
         $options[$value] = $translation;
     }
     $options = array_merge($options, $tmp_options);
     // BEGIN PATCH Lucene search
     return $a_options_only ? $options : ilUtil::formSelect($a_selected, $a_name, $options, false, true);
     // END PATCH Lucene Search
     return ilUtil::formSelect($a_selected, $a_name, $options, false, true);
 }