4 require_once
"./Services/Table/classes/class.ilTable2GUI.php";
20 function __construct($a_parent_obj, $a_parent_cmd, $a_params = array())
25 $this->params = $a_params;
30 $this->
setRowTemplate(
"tpl.lang_items_row.html",
"Services/Language");
38 if ($compare == $this->params[
'lang_key'])
40 $compare_note =
" ". $lng->txt(
"language_default_entries");
43 $this->
addColumn(ucfirst($lng->txt(
"module")),
"module",
"10em");
44 $this->
addColumn(ucfirst($lng->txt(
"identifier")),
"topic",
"10em");
45 $this->
addColumn($lng->txt(
"meta_l_".$this->params[
'lang_key']),
"translation");
46 $this->
addColumn($lng->txt(
"meta_l_".$compare).$compare_note,
"default");
58 if ($this->params[
'langmode'])
60 $this->tpl->setCurrentBlock(
'comment');
64 $this->tpl->setVariable(
"COM_SIZE", $this->commentsize);
65 $this->tpl->setVariable(
"COM_MAX", 250);
66 $this->tpl->setVariable(
"TXT_COMMENT", $lng->txt(
'comment'));
67 $this->tpl->parseCurrentBlock();
71 $this->tpl->setCurrentBlock(
'hidden_comment');
74 $this->tpl->parseCurrentBlock();
77 $this->tpl->setVariable(
"T_ROWS", ceil(strlen(
$data[
"translation"]) / $this->inputsize));
78 $this->tpl->setVariable(
"T_SIZE", $this->inputsize);
100 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
103 $ti->setMaxLength(64);
106 $ti->readFromSession();
110 $options[
"all"] = $lng->txt(
"language_all_modules");
112 foreach ($modules as $mod)
117 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
119 $si->setParent($this->parent_obj);
122 $si->readFromSession();
123 if (!
$si->getValue())
125 $si->setValue(
'administration');
130 $options[
"all"] = $lng->txt(
"language_scope_global");
131 $options[
"changed"] = $lng->txt(
"language_scope_local");
132 if ($this->params[
'langmode'])
134 $options[
"added"] = $lng->txt(
"language_scope_added");
136 $options[
"unchanged"] = $lng->txt(
"language_scope_unchanged");
137 $options[
"equal"] = $lng->txt(
"language_scope_equal");
138 $options[
"different"] = $lng->txt(
"language_scope_different");
139 $options[
"commented"] = $lng->txt(
"language_scope_commented");
140 if ($this->params[
'langmode'])
142 $options[
"dbremarks"] = $lng->txt(
"language_scope_dbremarks");
144 $options[
"conflicts"] = $lng->txt(
"language_scope_conflicts");
146 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
148 $si->setParent($this->parent_obj);
151 $si->readFromSession();
152 if (!
$si->getValue())
154 $si->setValue(
'all');
160 $langlist = $lng->getInstalledLanguages();
161 foreach ($langlist as $lang_key)
163 $options[$lang_key] = $lng->txt(
"meta_l_".$lang_key);
166 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
168 $si->setParent($this->parent_obj);
171 $si->readFromSession();
172 if (!
$si->getValue())
174 $si->setValue($lng->getDefaultLanguage());