Use a more generic DB Error wording
authorFlorianschmidtwelzow <florian.schmidt.welzow@t-online.de>
Mon, 1 Dec 2014 06:29:36 +0000 (07:29 +0100)
committerFlorianschmidtwelzow <florian.schmidt.welzow@t-online.de>
Sat, 27 Dec 2014 22:46:12 +0000 (22:46 +0000)
Not everytime there is a problem to _contact_ the database server (e.g. a false server),
sometimes (e.g. a false password or username) it's a problem of the user credentials
or that the database does not exist. So use a more generic wording, just saying,
that the database could not be accessed.

Bug: T76317
Change-Id: I502d5894acb855ac51c6f45ea91e5446b4b3aeb3

includes/db/DatabaseError.php
languages/i18n/en.json

index 2dfec41..2393bbb 100644 (file)
@@ -168,12 +168,12 @@ class DBConnectionError extends DBExpectedError {
                if ( $wgShowHostnames || $wgShowSQLErrors ) {
                        $info = str_replace(
                                '$1', Html::element( 'span', array( 'dir' => 'ltr' ), $this->error ),
-                               htmlspecialchars( $this->msg( 'dberr-info', '(Cannot contact the database server: $1)' ) )
+                               htmlspecialchars( $this->msg( 'dberr-info', '(Cannot access the database: $1)' ) )
                        );
                } else {
                        $info = htmlspecialchars( $this->msg(
                                'dberr-info-hidden',
-                               '(Cannot contact the database server)'
+                               '(Cannot access the database)'
                        ) );
                }
 
index b0751e3..14efc70 100644 (file)
        "compare-revision-not-exists": "The revision you specified does not exist.",
        "dberr-problems": "Sorry! This site is experiencing technical difficulties.",
        "dberr-again": "Try waiting a few minutes and reloading.",
-       "dberr-info": "(Cannot contact the database server: $1)",
-       "dberr-info-hidden": "(Cannot contact the database server)",
+       "dberr-info": "(Cannot access the database: $1)",
+       "dberr-info-hidden": "(Cannot access the database)",
        "dberr-usegoogle": "You can try searching via Google in the meantime.",
        "dberr-outofdate": "Note that their indexes of our content may be out of date.",
        "dberr-cachederror": "This is a cached copy of the requested page, and may not be up to date.",