Show a tip at the end of the installer to prompt about extensions
authorAVRS Aditya Sastry <ganeshaditya1@gmail.com>
Tue, 16 Apr 2013 14:13:38 +0000 (19:43 +0530)
committerAVRS Aditya Sastry <ganeshaditya1@gmail.com>
Sat, 27 Apr 2013 14:00:51 +0000 (19:30 +0530)
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
includes/installer/WebInstallerPage.php

index 61886b2..6c1e54d 100644 (file)
@@ -552,6 +552,9 @@ When that has been done, you can '''[$2 enter your wiki]'''.",
        'config-download-localsettings' => 'Download <code>LocalSettings.php</code>',
        '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 <nowiki>{{GRAMMAR:}}</nowiki>. See [[{{NAMESPACE}}:{{BASEPAGENAME}}/fi]] for an example. For languages having grammatical distinctions and not having an appropriate <nowiki>{{GRAMMAR:}}</nowiki> software available, a suggestion to check and possibly amend the messages having <nowiki>{{SITENAME}}</nowiki> may be valuable. See [[{{NAMESPACE}}:{{BASEPAGENAME}}/ksh]] for an example.',
index b640fb8..b4fd723 100644 (file)
@@ -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 );
        }