/**
  * uninstall language
  */
 function uninstallObject()
 {
     $this->lng->loadLanguageModule("meta");
     if (!isset($_POST["id"])) {
         $this->ilias->raiseError($this->lng->txt("no_checkbox"), $this->ilias->error_obj->MESSAGE);
     }
     // uninstall all selected languages
     foreach ($_POST["id"] as $obj_id) {
         $langObj = new ilObjLanguage($obj_id);
         if (!($sys_lang = $langObj->isSystemLanguage())) {
             if (!($usr_lang = $langObj->isUserLanguage())) {
                 $key = $langObj->uninstall();
                 if ($key != "") {
                     $lang_uninstalled[] = $key;
                 }
             }
         }
         unset($langObj);
     }
     // generate output message
     if (isset($lang_uninstalled)) {
         if (count($lang_uninstalled) == 1) {
             $this->data = $this->lng->txt("meta_l_" . $lang_uninstalled[0]) . " " . $this->lng->txt("uninstalled");
         } else {
             foreach ($lang_uninstalled as $lang_key) {
                 $langnames[] = $this->lng->txt("meta_l_" . $lang_key);
             }
             $this->data = implode(", ", $langnames) . " " . $this->lng->txt("uninstalled");
         }
     } elseif ($sys_lang) {
         $this->data = $this->lng->txt("cannot_uninstall_systemlanguage");
     } elseif ($usr_lang) {
         $this->data = $this->lng->txt("cannot_uninstall_language_in_use");
     } else {
         $this->data = $this->lng->txt("languages_already_uninstalled");
     }
     $this->out();
 }