19 declare(strict_types=1);
    27     public function __construct(
object $a_parent_obj, 
string $a_parent_cmd, array $a_params = array())
    30         $ilCtrl = $DIC->ctrl();
    31         $lng = $DIC->language();
    34         $this->params = $a_params;
    39         $this->
setRowTemplate(
"tpl.lang_items_row.html", 
"Services/Language");
    48         if ($compare === $this->params[
"lang_key"]) {
    49             $compare_note = 
" " . 
$lng->
txt(
"language_default_entries");
    54         $this->
addColumn(
$lng->
txt(
"meta_l_" . $this->params[
'lang_key']), 
"translation");
    55         $this->
addColumn(
$lng->
txt(
"meta_l_" . $compare) . $compare_note, 
"default");
    63     protected function fillRow(array $a_set): void
    66         $ilDB = $DIC->database();
    67         $ilCtrl = $DIC->ctrl();
    68         $lng = $DIC->language();
    72         $a_set[
"name"] = str_replace(
".", 
"_POSTDOT_", $a_set[
"name"]);
    73         $a_set[
"name"] = str_replace(
" ", 
"_POSTSPACE_", $a_set[
"name"]);
    75         if ($this->params[
"langmode"]) {
    76             $this->tpl->setCurrentBlock(
"comment");
    77             $this->tpl->setVariable(
    81             $this->tpl->setVariable(
    86             $this->tpl->setVariable(
"COM_SIZE", $this->commentsize);
    87             $this->tpl->setVariable(
"COM_MAX", 250);
    88             $this->tpl->setVariable(
"TXT_COMMENT", 
$lng->
txt(
"comment"));
    89             $this->tpl->parseCurrentBlock();
    91             $this->tpl->setCurrentBlock(
"hidden_comment");
    92             $this->tpl->setVariable(
    97             $this->tpl->parseCurrentBlock();
   100         $this->tpl->setVariable(
"T_ROWS", ceil(strlen($a_set[
"translation"] ?? 
" ") / $this->inputsize));
   101         $this->tpl->setVariable(
"T_SIZE", $this->inputsize);
   118         $lng = $DIC->language();
   124             $ti->setMaxLength(64);
   127             $ti->readFromSession();
   131             $options[
"all"] = 
$lng->
txt(
"language_all_modules");
   133             foreach ($modules as $mod) {
   134                 $options[$mod] = $mod;
   138             $si->setOptions($options);
   140             $si->readFromSession();
   141             if (!$si->getValue()) {
   142                 $si->setValue(
"administration");
   147             $ti->setMaxLength(200);
   150             $ti->readFromSession();
   154             $options[
"all"] = 
$lng->
txt(
"language_scope_global");
   155             $options[
"changed"] = 
$lng->
txt(
"language_scope_local");
   156             if ($this->params[
'langmode']) {
   157                 $options[
"added"] = 
$lng->
txt(
"language_scope_added");
   159             $options[
"unchanged"] = 
$lng->
txt(
"language_scope_unchanged");
   160             $options[
"equal"] = 
$lng->
txt(
"language_scope_equal");
   161             $options[
"different"] = 
$lng->
txt(
"language_scope_different");
   162             $options[
"commented"] = 
$lng->
txt(
"language_scope_commented");
   163             if ($this->params[
'langmode']) {
   164                 $options[
"dbremarks"] = 
$lng->
txt(
"language_scope_dbremarks");
   166             $options[
"conflicts"] = 
$lng->
txt(
"language_scope_conflicts");
   171             $si->readFromSession();
   172             if (!$si->getValue()) {
   173                 $si->setValue(
"all");
   180         foreach ($langlist as $lang_key) {
   181             $options[$lang_key] = 
$lng->
txt(
"meta_l_" . $lang_key);
   187         $si->readFromSession();
   188         if (!$si->getValue()) {
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
 
static _isPageTranslation()
Check if the current request is a page translation. 
 
getDefaultLanguage()
Return default language. 
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
getLangKey()
Return lang key. 
 
setDisableFilterHiding(bool $a_val=true)
 
__construct(object $a_parent_obj, string $a_parent_cmd, array $a_params=array())
 
getFilterItemByPostVar(string $a_post_var)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
static _getModules(string $a_lang_key)
Get all modules of a language. 
 
getInstalledLanguages()
Get installed languages. 
 
fillRow(array $a_set)
Fill a single data row. 
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)