4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
20 function __construct($a_parent_obj, $a_parent_cmd, $a_incl_desc =
true, $a_base_cmd =
"HeaderTitle",
26 $this->incl_desc = $a_incl_desc;
27 $this->base_cmd = $a_base_cmd;
28 $this->master_lang = $a_master_lang;
33 $this->
addColumn($this->lng->txt(
"language"),
"",
"");
34 $this->
addColumn($this->lng->txt(
"default"),
"",
"");
35 $this->
addColumn($this->lng->txt(
"title"),
"",
"");
38 $this->
addColumn($this->lng->txt(
"description"),
"",
"");
44 $this->
setRowTemplate(
"tpl.obj_translation2_row.html",
"Services/Object");
58 $this->
addMultiCommand(
"delete".$this->base_cmd.
"s", $lng->txt(
"remove"));
75 if (!$a_set[
"default"] && $a_set[
"lang"] != $this->master_lang)
77 $this->tpl->setCurrentBlock(
"cb");
78 $this->tpl->setVariable(
"CB_NR", $this->nr);
79 $this->tpl->parseCurrentBlock();
82 if ($this->master_lang ==
"")
84 $this->tpl->setCurrentBlock(
"rb");
85 $this->tpl->setVariable(
"RB_NR", $this->nr);
86 if ($a_set[
"default"])
88 $this->tpl->setVariable(
"DEF_CHECKED",
"checked=\"checked\"");
90 $this->tpl->parseCurrentBlock();
92 else if ($a_set[
"lang"] == $this->master_lang)
94 $this->tpl->setVariable(
"MASTER_LANG", $lng->txt(
"obj_master_lang"));
99 $this->tpl->setCurrentBlock(
"desc_row");
101 $this->tpl->setVariable(
"DNR", $this->nr);
102 $this->tpl->parseCurrentBlock();
105 $this->tpl->setVariable(
"NR", $this->nr);
108 include_once(
'Services/MetaData/classes/class.ilMDLanguageItem.php');
110 $this->tpl->setVariable(
"LANG_SELECT",