From: Antoni Siek Date: Wed, 29 Nov 2017 20:42:39 +0000 (+0100) Subject: Added new success message when CLI Installer completes its work succesfuly. X-Git-Tag: 1.31.0-rc.0~1353 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=5af3ad33ed1b27bd5f77038c89844d513d078cba Added new success message when CLI Installer completes its work succesfuly. Bug: T181468 Change-Id: Iddce5d0e1244ff1e4740fdaf1b07023355c62f27 --- diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index e99ea7c049..2906a83bf4 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -1485,6 +1485,11 @@ abstract class Installer { } } if ( $status->isOk() ) { + $this->showMessage( + 'config-install-success', + $this->getVar( 'wgServer' ), + $this->getVar( 'wgScriptPath' ) + ); $this->setVar( '_InstallDone', true ); } diff --git a/includes/installer/i18n/en.json b/includes/installer/i18n/en.json index 6319b76da7..6d4c485263 100644 --- a/includes/installer/i18n/en.json +++ b/includes/installer/i18n/en.json @@ -304,6 +304,7 @@ "config-install-mainpage-failed": "Could not insert main page: $1", "config-install-done": "Congratulations!\nYou have installed MediaWiki.\n\nThe installer has generated a LocalSettings.php file.\nIt contains all your configuration.\n\nYou will need to download it and put it in the base of your wiki installation (the same directory as index.php). The download should have started automatically.\n\nIf the download was not offered, or if you cancelled it, you can restart the download by clicking the link below:\n\n$3\n\nNote: If you do not do this now, this generated configuration file will not be available to you later if you exit the installation without downloading it.\n\nWhen that has been done, you can [$2 enter your wiki].", "config-install-done-path": "Congratulations!\nYou have installed MediaWiki.\n\nThe installer has generated a LocalSettings.php file.\nIt contains all your configuration.\n\nYou will need to download it and put it at $4. The download should have started automatically.\n\nIf the download was not offered, or if you cancelled it, you can restart the download by clicking the link below:\n\n$3\n\nNote: If you do not do this now, this generated configuration file will not be available to you later if you exit the installation without downloading it.\n\nWhen that has been done, you can [$2 enter your wiki].", + "config-install-success": "MediaWiki has been successfully installed. You can now\nvisit <$1$2> to view your wiki.\nIf you have questions, check out our frequently asked questions list:\n or use one of the\nsupport forums linked on that page.", "config-download-localsettings": "Download LocalSettings.php", "config-help": "help", "config-help-tooltip": "click to expand", diff --git a/includes/installer/i18n/qqq.json b/includes/installer/i18n/qqq.json index a5c679036f..2fc95ceaa7 100644 --- a/includes/installer/i18n/qqq.json +++ b/includes/installer/i18n/qqq.json @@ -324,6 +324,7 @@ "config-install-mainpage-failed": "Used as error message. Parameters:\n* $1 - detailed error message", "config-install-done": "Parameters:\n* $1 is the URL to LocalSettings download\n* $2 is a link to the wiki.\n* $3 is a download link with attached download icon. The config-download-localsettings message will be used as the link text.", "config-install-done-path": "Parameters:\n* $1 is the URL to LocalSettings download\n* $2 is a link to the wiki.\n* $3 is a download link with attached download icon. The config-download-localsettings message will be used as the link text.\n* $4 is the filesystem location of where the LocalSettings.php file should be saved to.", + "config-install-success": "Gives user information that installation was successful. Parameters:\n* $1 - server name\n* $2 - script path", "config-download-localsettings": "The link text used in the download link in config-install-done.", "config-help": "This is used in help boxes.\n{{Identical|Help}}", "config-help-tooltip": "Tooltip for the 'help' links ({{msg-mw|config-help}}), to make it clear they'll expand in place rather than open a new page",