Installer: use human-friendly list of databases, pass count of drivers for {{PLURAL}}
authorMax Semenik <maxsem@users.mediawiki.org>
Wed, 18 Aug 2010 19:28:41 +0000 (19:28 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Wed, 18 Aug 2010 19:28:41 +0000 (19:28 +0000)
includes/installer/Installer.i18n.php
includes/installer/Installer.php

index 3532479..3bb4377 100644 (file)
@@ -95,7 +95,7 @@ The following database types are supported: $1.
 If you are on shared hosting, ask your hosting provider to install a suitable database driver.
 If you compiled PHP yourself, reconfigure it with a database client enabled, for example using <code>./configure --with-mysql</code>.
 If you installed PHP from a Debian or Ubuntu package, then you also need install the php5-mysql module.',
-       'config-have-db'                  => 'Found database drivers: $1.',
+       'config-have-db'                  => 'Found database {{PLURAL:$2|driver|drivers}}: $1.',
        'config-register-globals'         => "'''Warning: PHP's <code>[http://php.net/register_globals register_globals]</code> option is enabled.'''
 '''Disable it if you can.'''
 MediaWiki will work, but your server is exposed to potential security vulnerabilities.",
@@ -504,7 +504,8 @@ $messages['qqq'] = array(
        'config-no-db-help' => 'Parameters:
 * $1 is comma separated list of supported database types by MediaWiki.',
        'config-have-db' => 'Parameters:
-* $1 is comma separated list of database drivers found in the application environment.',
+* $1 is comma separated list of database drivers found in the application environment.
+* $2 is the number of aforementioned drivers',
        'config-memory-ok' => 'Parameters:
 * $1 is the configured <code>memory_limit</code>.',
        'config-memory-raised' => 'Parameters:
index e401f57..471bd1a 100644 (file)
@@ -437,7 +437,7 @@ abstract class Installer {
                        return false;
                }
 
-               $this->showMessage( 'config-have-db', $wgLang->commaList( $goodNames ) );
+               $this->showMessage( 'config-have-db', $wgLang->listToText( $goodNames ), count( $goodNames ) );
        }
 
        /**