From 559639c68c96589f12f3bcc04be7f261851b4f5a Mon Sep 17 00:00:00 2001 From: AVRS Aditya Sastry Date: Tue, 16 Apr 2013 19:43:38 +0530 Subject: [PATCH] Show a tip at the end of the installer to prompt about extensions Almost every wiki install is going to want one or more extensions to enhance their users' experience. Give the wiki admin as much info as possible so they can find extensions that may be useful to them. This is shown as an info box on the final page of installation. Bug: 43504 Change-Id: Iba5d53a485d7b0b04cb9104d7d964fc01a1c1cae --- includes/installer/Installer.i18n.php | 4 ++++ includes/installer/WebInstallerPage.php | 3 +++ 2 files changed, 7 insertions(+) diff --git a/includes/installer/Installer.i18n.php b/includes/installer/Installer.i18n.php index 61886b2455..6c1e54d931 100644 --- a/includes/installer/Installer.i18n.php +++ b/includes/installer/Installer.i18n.php @@ -552,6 +552,9 @@ When that has been done, you can '''[$2 enter your wiki]'''.", 'config-download-localsettings' => 'Download LocalSettings.php', 'config-help' => 'help', 'config-nofile' => 'File "$1" could not be found. Has it been deleted?', + 'config-extension-link' => 'Did you know that your wiki supports [//www.mediawiki.org/wiki/Manual:Extensions extensions]? + +You can browse [//www.mediawiki.org/wiki/Category:Extensions_by_category extensions by category] or the [//www.mediawiki.org/wiki/Extension_Matrix Extension Matrix] to see the full list of extensions.', 'mainpagetext' => "'''MediaWiki has been successfully installed.'''", 'mainpagedocfooter' => "Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software. @@ -972,6 +975,7 @@ See also: {{Identical|Help}}', 'config-nofile' => 'Used as failure message. Parameters: * $1 - filename', + 'config-extension-link' => 'Shown on last page of installation to inform about possible extensions.', 'mainpagetext' => 'Along with {{msg-mw|mainpagedocfooter}}, the text you will see on the Main Page when your wiki is installed.', 'mainpagedocfooter' => 'Along with {{msg-mw|mainpagetext}}, the text you will see on the Main Page when your wiki is installed. This might be a good place to put information about {{GRAMMAR:}}. See [[{{NAMESPACE}}:{{BASEPAGENAME}}/fi]] for an example. For languages having grammatical distinctions and not having an appropriate {{GRAMMAR:}} software available, a suggestion to check and possibly amend the messages having {{SITENAME}} may be valuable. See [[{{NAMESPACE}}:{{BASEPAGENAME}}/ksh]] for an example.', diff --git a/includes/installer/WebInstallerPage.php b/includes/installer/WebInstallerPage.php index b640fb882b..b4fd723e03 100644 --- a/includes/installer/WebInstallerPage.php +++ b/includes/installer/WebInstallerPage.php @@ -1265,6 +1265,9 @@ class WebInstaller_Complete extends WebInstallerPage { )->plain(), 'tick-32.png' ) ); + $this->addHTML( $this->parent->getInfoBox( + wfMessage( 'config-extension-link' )->text() ) ); + $this->parent->restoreLinkPopups(); $this->endForm( false, false ); } -- 2.20.1