31                $cmd = 
$ilCtrl->getCmd(
"showTranslationImportForm");
 
   33                if (in_array(
$cmd, array(
"showTranslationImportForm", 
"importTranslation")))
 
   51                $tpl->setContent($form->getHTML());
 
   61                $lng->loadLanguageModule(
"meta");
 
   63                include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
   68                $fi->setSuffixes(array(
"zip"));
 
   69                $fi->setRequired(
true);
 
   73                include_once(
"./Services/MetaData/classes/class.ilMDLanguageItem.php");
 
   74                include_once(
"./Services/Object/classes/class.ilObjectTranslation.php");
 
   76                foreach ($ot->getLanguages() as 
$l)
 
   78                        if (
$l[
"lang_code"] != $ot->getMasterLanguage())
 
   87                $form->addCommandButton(
"importTranslation", 
$lng->txt(
"import"));
 
   88                $form->setTitle(
$lng->txt(
"cont_import_trans"));
 
   89                $form->setFormAction(
$ilCtrl->getFormAction($this));
 
  101                include_once(
"./Services/Export/classes/class.ilImport.php");
 
  103                $conf = $imp->getConfig(
"Modules/LearningModule");
 
  106                include_once(
"./Services/Object/classes/class.ilObjectTranslation.php");
 
  108                if ($target_lang == $ot->getMasterLanguage())
 
  111                        $ilCtrl->redirect($this, 
"showTranslationImportForm");
 
  114                $conf->setTranslationImportMode($this->lm, $target_lang);
 
  115                $imp->importObject(
null, $_FILES[
"importfile"][
"tmp_name"],
 
  116                        $_FILES[
"importfile"][
"name"], 
"lm", 
"Modules/LearningModule");
 
  119                $ilCtrl->redirect($this, 
"showTranslationImportForm");
 
Import related features for learning modules.
showTranslationImportForm()
Translation import.
importTranslation()
Import translation.
__construct($a_lm)
Constructor.
executeCommand()
Execute command.
initTranslationImportForm()
Init translation input form.
static getInstance($a_obj_id)
Get instance.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
if(!is_array($argv)) $options