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;
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");
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());
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static _isPageTranslation()
Check if the current request is a page translation.
getFilterItemByPostVar($a_post_var)
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
if(!is_array($argv)) $options
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
setDisableFilterHiding($a_val=true)
Set disable filter hiding.
This class represents a text property in a property form.
fillRow($data)
Fill a single data row.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct($a_parent_obj, $a_parent_cmd, $a_params=array())
static _getModules($a_lang_key)
Get all modules of a language.