diff --git a/components/ILIAS/Test/src/Questions/Presentation/Printer.php b/components/ILIAS/Test/src/Questions/Presentation/Printer.php index 0303a6fe44e6..33d799788c7f 100644 --- a/components/ILIAS/Test/src/Questions/Presentation/Printer.php +++ b/components/ILIAS/Test/src/Questions/Presentation/Printer.php @@ -64,6 +64,7 @@ public function printSelectedQuestions( )->withActive($selected_print_view_type->getLabel($this->lng)) ); + $this->toolbar->addSeparator(); $this->addPrintButtonToToolbar(); $template = new \ilTemplate('tpl.il_as_tst_print_questions_preview.html', true, true, 'components/ILIAS/Test'); @@ -229,7 +230,7 @@ private function addResultUserInfoToTemplate( private function addPrintButtonToToolbar(): void { $this->toolbar->addComponent( - $this->ui_factory->button()->standard('print', '') + $this->ui_factory->button()->standard($this->lng->txt('print'), '') ->withOnLoadCode(fn($id) => "$('#$id').on('click', ()=>{window.print();})") ); } diff --git a/components/ILIAS/Test/src/Questions/Presentation/QuestionsTableActions.php b/components/ILIAS/Test/src/Questions/Presentation/QuestionsTableActions.php index d04337cd761a..efdb9fa8abfb 100644 --- a/components/ILIAS/Test/src/Questions/Presentation/QuestionsTableActions.php +++ b/components/ILIAS/Test/src/Questions/Presentation/QuestionsTableActions.php @@ -225,7 +225,7 @@ public function handleCommand( case self::ACTION_DELETE_CONFIRMED: $row_ids = $this->request->getParsedBody()['interruptive_items'] ?? []; if (array_filter($row_ids) === []) { - $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_selection')); + $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_questions_selected')); return true; } $protect_by_write_protection(); @@ -240,7 +240,7 @@ public function handleCommand( case self::ACTION_COPY: if (array_filter($row_ids) === []) { - $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_selection')); + $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_questions_selected')); return true; } $protect_by_write_protection(); @@ -262,7 +262,7 @@ public function handleCommand( case self::ACTION_PRINT_QUESTIONS: if (array_filter($row_ids) === []) { - $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_selection')); + $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_questions_selected')); return true; } $protect_by_write_protection();