4require_once
"./Services/Table/classes/class.ilTable2GUI.php";
20 function __construct($a_parent_obj, $a_parent_cmd, $a_params = array())
25 $this->params = $a_params;
28 parent::__construct($a_parent_obj, $a_parent_cmd);
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");
102 $ti->setParent($this->parent_obj);
103 $ti->setMaxLength(64);
106 $ti->readFromSession();
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');
131 $options[
"changed"] =
$lng->txt(
"language_scope_local");
132 if ($this->params[
'langmode'])
136 $options[
"unchanged"] =
$lng->txt(
"language_scope_unchanged");
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)
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());
__construct($a_parent_obj, $a_parent_cmd, $a_params=array())
Constructor.
fillRow($data)
Fill a single data row.
static _isPageTranslation()
Check if the current request is a page translation.
static _getModules($a_lang_key)
Get all modules of a language.
setDisableFilterHiding($a_val=true)
Set disable filter hiding.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
getFilterItemByPostVar($a_post_var)
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
This class represents a text property in a property form.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
if(!is_array($argv)) $options