4 require_once
"./Services/Table/classes/class.ilTable2GUI.php";
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']) {
39 $compare_note =
" " . $lng->txt(
"language_default_entries");
42 $this->
addColumn(ucfirst($lng->txt(
"module")),
"module",
"10em");
43 $this->
addColumn(ucfirst($lng->txt(
"identifier")),
"topic",
"10em");
44 $this->
addColumn($lng->txt(
"meta_l_" . $this->params[
'lang_key']),
"translation");
45 $this->
addColumn($lng->txt(
"meta_l_" . $compare) . $compare_note,
"default");
59 $data[
'name'] = str_replace(
'.',
'_POSTDOT_',
$data[
'name']);
60 $data[
'name'] = str_replace(
' ',
'_POSTSPACE_',
$data[
'name']);
62 if ($this->params[
'langmode']) {
63 $this->tpl->setCurrentBlock(
'comment');
67 $this->tpl->setVariable(
"COM_SIZE", $this->commentsize);
68 $this->tpl->setVariable(
"COM_MAX", 250);
69 $this->tpl->setVariable(
"TXT_COMMENT", $lng->txt(
'comment'));
70 $this->tpl->parseCurrentBlock();
72 $this->tpl->setCurrentBlock(
'hidden_comment');
75 $this->tpl->parseCurrentBlock();
78 $this->tpl->setVariable(
"T_ROWS", ceil(strlen(
$data[
"translation"]) / $this->inputsize));
79 $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) {
116 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
118 $si->setParent($this->parent_obj);
121 $si->readFromSession();
122 if (!
$si->getValue()) {
123 $si->setValue(
'administration');
127 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
128 $ti =
new ilTextInputGUI(ucfirst($lng->txt(
"identifier")),
"identifier");
129 $ti->setParent($this->parent_obj);
130 $ti->setMaxLength(200);
133 $ti->readFromSession();
137 $options[
"all"] = $lng->txt(
"language_scope_global");
138 $options[
"changed"] = $lng->txt(
"language_scope_local");
139 if ($this->params[
'langmode']) {
140 $options[
"added"] = $lng->txt(
"language_scope_added");
142 $options[
"unchanged"] = $lng->txt(
"language_scope_unchanged");
143 $options[
"equal"] = $lng->txt(
"language_scope_equal");
144 $options[
"different"] = $lng->txt(
"language_scope_different");
145 $options[
"commented"] = $lng->txt(
"language_scope_commented");
146 if ($this->params[
'langmode']) {
147 $options[
"dbremarks"] = $lng->txt(
"language_scope_dbremarks");
149 $options[
"conflicts"] = $lng->txt(
"language_scope_conflicts");
151 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
153 $si->setParent($this->parent_obj);
156 $si->readFromSession();
157 if (!
$si->getValue()) {
158 $si->setValue(
'all');
164 $langlist = $lng->getInstalledLanguages();
165 foreach ($langlist as $lang_key) {
166 $options[$lang_key] = $lng->txt(
"meta_l_" . $lang_key);
169 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
171 $si->setParent($this->parent_obj);
174 $si->readFromSession();
175 if (!
$si->getValue()) {
176 $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.
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.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct($a_parent_obj, $a_parent_cmd, $a_params=array())
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.
static _getModules($a_lang_key)
Get all modules of a language.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options