Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/75081


Change subject: Possible error messages for action=createaccount should be in 
English and not show local modifications
......................................................................

Possible error messages for action=createaccount should be in English and not 
show local modifications

Bug: 47791
Change-Id: Id55f65d1a7b9b2d6a17da0b87bffe42ceb4231ef
---
M includes/api/ApiCreateAccount.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/81/75081/1

diff --git a/includes/api/ApiCreateAccount.php 
b/includes/api/ApiCreateAccount.php
index 9464d49..201634d 100644
--- a/includes/api/ApiCreateAccount.php
+++ b/includes/api/ApiCreateAccount.php
@@ -250,7 +250,7 @@
                $errors = parent::getPossibleErrors();
                // All local errors are from LoginForm, which means they're 
actually message keys.
                foreach ( $localErrors as $error ) {
-                       $errors[] = array( 'code' => $error, 'info' => 
wfMessage( $error )->parse() );
+                       $errors[] = array( 'code' => $error, 'info' => 
wfMessage( $error )->inLanguage( 'en' )->useDatabase( false )->parse() );
                }
 
                $errors[] = array(
@@ -274,7 +274,7 @@
                global $wgMinimalPasswordLength;
                $errors[] = array(
                        'code' => 'passwordtooshort',
-                       'info' => wfMessage( 'passwordtooshort', 
$wgMinimalPasswordLength )->parse()
+                       'info' => wfMessage( 'passwordtooshort', 
$wgMinimalPasswordLength )->inLanguage( 'en' )->useDatabase( false )->parse()
                );
                return $errors;
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/75081
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id55f65d1a7b9b2d6a17da0b87bffe42ceb4231ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to