diff --git a/application/forms/Setup/SummaryPage.php b/application/forms/Setup/SummaryPage.php index c44899b58..c020f4908 100644 --- a/application/forms/Setup/SummaryPage.php +++ b/application/forms/Setup/SummaryPage.php @@ -11,6 +11,13 @@ use Icinga\Web\Form; */ class SummaryPage extends Form { + /** + * The title of what is being installed + * + * @var string + */ + protected $title; + /** * The summary to show * @@ -27,6 +34,26 @@ class SummaryPage extends Form $this->setViewScript('form/setup-summary.phtml'); } + /** + * Set the title of what is being installed + * + * @param string $title + */ + public function setSubjectTitle($title) + { + $this->title = $title; + } + + /** + * Return the title of what is being installed + * + * @return string + */ + public function getSubjectTitle() + { + return $this->title; + } + /** * Set the summary to show * diff --git a/application/views/scripts/form/setup-summary.phtml b/application/views/scripts/form/setup-summary.phtml index de4f5141e..3a1b1b5bc 100644 --- a/application/views/scripts/form/setup-summary.phtml +++ b/application/views/scripts/form/setup-summary.phtml @@ -3,10 +3,13 @@ use Icinga\Web\Wizard; ?> -
= t( - 'The wizard is now complete. You can review the changes supposed to be made before issuing the actual installation' - . ' of Icinga Web 2. Make sure that everything is correct (Feel free to navigate back to make any corrections!) so' - . ' that you can start using Icinga Web 2 right after the installation has been finished.' +
= sprintf( + t( + 'The wizard is now complete. You can review the changes supposed to be made before issuing the actual installation' + . ' of %1$s. Make sure that everything is correct (Feel free to navigate back to make any corrections!) so' + . ' that you can start using %1$s right after the installation has been finished.' + ), + $form->getSubjectTitle() ); ?>