4 require_once
"./Services/Table/classes/class.ilTable2GUI.php";
20 public function __construct($a_parent_obj, $a_parent_cmd, $a_params = array())
24 $lng = $DIC->language();
27 $this->params = $a_params;
30 parent::__construct($a_parent_obj, $a_parent_cmd);
32 $this->
setRowTemplate(
"tpl.lang_items_row.html",
"Services/Language");
40 if ($compare == $this->params[
'lang_key']) {
41 $compare_note =
" " .
$lng->txt(
"language_default_entries");
44 $this->
addColumn(ucfirst(
$lng->txt(
"module")),
"module",
"10em");
45 $this->
addColumn(ucfirst(
$lng->txt(
"identifier")),
"topic",
"10em");
46 $this->
addColumn(
$lng->txt(
"meta_l_" . $this->params[
'lang_key']),
"translation");
47 $this->
addColumn(
$lng->txt(
"meta_l_" . $compare) . $compare_note,
"default");
58 $ilDB = $DIC->database();
60 $lng = $DIC->language();
64 $data[
'name'] = str_replace(
'.',
'_POSTDOT_',
$data[
'name']);
65 $data[
'name'] = str_replace(
' ',
'_POSTSPACE_',
$data[
'name']);
67 if ($this->params[
'langmode']) {
68 $this->tpl->setCurrentBlock(
'comment');
72 $this->tpl->setVariable(
"COM_SIZE", $this->commentsize);
73 $this->tpl->setVariable(
"COM_MAX", 250);
74 $this->tpl->setVariable(
"TXT_COMMENT",
$lng->txt(
'comment'));
75 $this->tpl->parseCurrentBlock();
77 $this->tpl->setCurrentBlock(
'hidden_comment');
80 $this->tpl->parseCurrentBlock();
83 $this->tpl->setVariable(
"T_ROWS", ceil(strlen(
$data[
"translation"]) / $this->inputsize));
84 $this->tpl->setVariable(
"T_SIZE", $this->inputsize);
101 $lng = $DIC->language();
106 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
109 $ti->setMaxLength(64);
112 $ti->readFromSession();
118 foreach ($modules as $mod) {
122 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
124 $si->setParent($this->parent_obj);
127 $si->readFromSession();
128 if (!
$si->getValue()) {
129 $si->setValue(
'administration');
133 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
135 $ti->setParent($this->parent_obj);
136 $ti->setMaxLength(200);
139 $ti->readFromSession();
144 $options[
"changed"] =
$lng->txt(
"language_scope_local");
145 if ($this->params[
'langmode']) {
148 $options[
"unchanged"] =
$lng->txt(
"language_scope_unchanged");
150 $options[
"different"] =
$lng->txt(
"language_scope_different");
151 $options[
"commented"] =
$lng->txt(
"language_scope_commented");
152 if ($this->params[
'langmode']) {
153 $options[
"dbremarks"] =
$lng->txt(
"language_scope_dbremarks");
155 $options[
"conflicts"] =
$lng->txt(
"language_scope_conflicts");
157 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
159 $si->setParent($this->parent_obj);
162 $si->readFromSession();
163 if (!
$si->getValue()) {
164 $si->setValue(
'all');
170 $langlist =
$lng->getInstalledLanguages();
171 foreach ($langlist as $lang_key) {
175 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
177 $si->setParent($this->parent_obj);
180 $si->readFromSession();
181 if (!
$si->getValue()) {
182 $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.
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.