summaryrefslogtreecommitdiff
path: root/extensions/Renameuser
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Renameuser')
-rw-r--r--extensions/Renameuser/Gruntfile.js25
-rw-r--r--extensions/Renameuser/RenameUserJob.php12
-rw-r--r--extensions/Renameuser/Renameuser.alias.php9
-rw-r--r--extensions/Renameuser/Renameuser.hooks.php9
-rw-r--r--extensions/Renameuser/Renameuser.php2
-rw-r--r--extensions/Renameuser/RenameuserLogFormatter.php3
-rw-r--r--extensions/Renameuser/RenameuserSQL.php74
-rw-r--r--extensions/Renameuser/SpecialRenameuser.php9
-rw-r--r--extensions/Renameuser/cleanupArchiveUserText.php11
-rw-r--r--extensions/Renameuser/composer.json12
-rw-r--r--extensions/Renameuser/extension.json6
-rw-r--r--extensions/Renameuser/i18n/azb.json7
-rw-r--r--extensions/Renameuser/i18n/bn.json4
-rw-r--r--extensions/Renameuser/i18n/bs.json15
-rw-r--r--extensions/Renameuser/i18n/ce.json16
-rw-r--r--extensions/Renameuser/i18n/cv.json6
-rw-r--r--extensions/Renameuser/i18n/de.json5
-rw-r--r--extensions/Renameuser/i18n/en.json72
-rw-r--r--extensions/Renameuser/i18n/eo.json12
-rw-r--r--extensions/Renameuser/i18n/es.json31
-rw-r--r--extensions/Renameuser/i18n/fa.json2
-rw-r--r--extensions/Renameuser/i18n/fy.json4
-rw-r--r--extensions/Renameuser/i18n/he.json2
-rw-r--r--extensions/Renameuser/i18n/id.json4
-rw-r--r--extensions/Renameuser/i18n/ilo.json6
-rw-r--r--extensions/Renameuser/i18n/jut.json37
-rw-r--r--extensions/Renameuser/i18n/kk-cyrl.json4
-rw-r--r--extensions/Renameuser/i18n/ko.json2
-rw-r--r--extensions/Renameuser/i18n/krc.json31
-rw-r--r--extensions/Renameuser/i18n/ksh.json16
-rw-r--r--extensions/Renameuser/i18n/ku-latn.json5
-rw-r--r--extensions/Renameuser/i18n/ne.json8
-rw-r--r--extensions/Renameuser/i18n/nn.json12
-rw-r--r--extensions/Renameuser/i18n/ro.json1
-rw-r--r--extensions/Renameuser/i18n/sa.json9
-rw-r--r--extensions/Renameuser/i18n/scn.json5
-rw-r--r--extensions/Renameuser/i18n/sq.json8
-rw-r--r--extensions/Renameuser/i18n/yi.json3
-rw-r--r--extensions/Renameuser/phpcs.xml8
-rw-r--r--extensions/Renameuser/renameUserCleanup.php174
-rw-r--r--extensions/Renameuser/specials/SpecialRenameuser.php217
41 files changed, 531 insertions, 367 deletions
diff --git a/extensions/Renameuser/Gruntfile.js b/extensions/Renameuser/Gruntfile.js
new file mode 100644
index 00000000..116f5823
--- /dev/null
+++ b/extensions/Renameuser/Gruntfile.js
@@ -0,0 +1,25 @@
+/*jshint node:true */
+module.exports = function ( grunt ) {
+ grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-banana-checker' );
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
+
+ var conf = grunt.file.readJSON( 'extension.json' );
+ grunt.initConfig( {
+ jshint: {
+ all: [
+ '*.js'
+ ]
+ },
+ banana: conf.MessagesDirs,
+ jsonlint: {
+ all: [
+ '**/*.json',
+ '!node_modules/**'
+ ]
+ }
+ } );
+
+ grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
+ grunt.registerTask( 'default', 'test' );
+};
diff --git a/extensions/Renameuser/RenameUserJob.php b/extensions/Renameuser/RenameUserJob.php
index d2dc14c4..2edfc44d 100644
--- a/extensions/Renameuser/RenameUserJob.php
+++ b/extensions/Renameuser/RenameUserJob.php
@@ -1,4 +1,5 @@
<?php
+
/**
* Custom job to perform updates on tables in busier environments
*/
@@ -27,7 +28,9 @@ class RenameUserJob extends Job {
$oldname = $this->params['oldname'];
$userID = isset( $this->params['userID'] ) ? $this->params['userID'] : null;
$uidColumn = isset( $this->params['uidColumn'] ) ? $this->params['uidColumn'] : null;
- $timestampColumn = isset( $this->params['timestampColumn'] ) ? $this->params['timestampColumn'] : null;
+ $timestampColumn = isset( $this->params['timestampColumn'] ) ?
+ $this->params['timestampColumn'] :
+ null;
$minTimestamp = $this->params['minTimestamp'];
$maxTimestamp = $this->params['maxTimestamp'];
$uniqueKey = isset( $this->params['uniqueKey'] ) ? $this->params['uniqueKey'] : null;
@@ -45,7 +48,7 @@ class RenameUserJob extends Job {
if ( isset( $timestampColumn ) ) {
$conds[] = "$timestampColumn >= '$minTimestamp'";
$conds[] = "$timestampColumn <= '$maxTimestamp'";
- # Otherwise, bound by key (B/C)
+ # Otherwise, bound by key (B/C)
} elseif ( isset( $uniqueKey ) ) {
$conds[$uniqueKey] = $keyId;
} else {
@@ -59,7 +62,7 @@ class RenameUserJob extends Job {
__METHOD__
);
# Special case: revisions may be deleted while renaming...
- if ( $table == 'revision' && isset( $timestampColumn ) ) {
+ if ( $table === 'revision' && isset( $timestampColumn ) ) {
$actual = $dbw->affectedRows();
# If some revisions were not renamed, they may have been deleted.
# Do a pass on the archive table to get these straglers...
@@ -77,7 +80,7 @@ class RenameUserJob extends Job {
}
}
# Special case: revisions may be restored while renaming...
- if ( $table == 'archive' && isset( $timestampColumn ) ) {
+ if ( $table === 'archive' && isset( $timestampColumn ) ) {
$actual = $dbw->affectedRows();
# If some revisions were not renamed, they may have been restored.
# Do a pass on the revision table to get these straglers...
@@ -94,6 +97,7 @@ class RenameUserJob extends Job {
);
}
}
+
return true;
}
}
diff --git a/extensions/Renameuser/Renameuser.alias.php b/extensions/Renameuser/Renameuser.alias.php
index 07790bbc..805c55d1 100644
--- a/extensions/Renameuser/Renameuser.alias.php
+++ b/extensions/Renameuser/Renameuser.alias.php
@@ -19,7 +19,7 @@ $specialPageAliases['ar'] = array(
'Renameuser' => array( 'إعادة_تسمية_مستخدم' ),
);
-/** Egyptian Spoken Arabic (مصرى) */
+/** Egyptian Arabic (مصرى) */
$specialPageAliases['arz'] = array(
'Renameuser' => array( 'سمّى_تانى_يوزر' ),
);
@@ -44,6 +44,11 @@ $specialPageAliases['bg'] = array(
'Renameuser' => array( 'Преименуване' ),
);
+/** Western Balochi (بلوچی رخشانی) */
+$specialPageAliases['bgn'] = array(
+ 'Renameuser' => array( 'کارمرزوکی_نامی_ٹگلینتین' ),
+);
+
/** Banjar (Bahasa Banjar) */
$specialPageAliases['bjn'] = array(
'Renameuser' => array( 'Ganti_ngaran_pamakai' ),
@@ -129,7 +134,7 @@ $specialPageAliases['fr'] = array(
'Renameuser' => array( 'Renommer_utilisateur', 'RenommerUtilisateur' ),
);
-/** Franco-Provençal (arpetan) */
+/** Arpitan (arpetan) */
$specialPageAliases['frp'] = array(
'Renameuser' => array( 'Renomar_l\'usanciér', 'RenomarLUsanciér' ),
);
diff --git a/extensions/Renameuser/Renameuser.hooks.php b/extensions/Renameuser/Renameuser.hooks.php
index 846f9131..b344d99d 100644
--- a/extensions/Renameuser/Renameuser.hooks.php
+++ b/extensions/Renameuser/Renameuser.hooks.php
@@ -11,9 +11,12 @@ class RenameuserHooks {
public static function onShowMissingArticle( $article ) {
$title = $article->getTitle();
$oldUser = User::newFromName( $title->getBaseText() );
- if ( ($title->getNamespace() == NS_USER || $title->getNamespace() == NS_USER_TALK ) && ($oldUser && $oldUser->isAnon() )) {
+ if ( ( $title->getNamespace() === NS_USER || $title->getNamespace() === NS_USER_TALK ) &&
+ ( $oldUser && $oldUser->isAnon() )
+ ) {
// Get the title for the base userpage
- $page = Title::makeTitle( NS_USER, str_replace( ' ', '_', $title->getBaseText() ) )->getPrefixedDBkey();
+ $page = Title::makeTitle( NS_USER, str_replace( ' ', '_', $title->getBaseText() ) )
+ ->getPrefixedDBkey();
$out = $article->getContext()->getOutput();
LogEventsList::showLogExtract(
$out,
@@ -51,6 +54,7 @@ class RenameuserHooks {
array( 'oldusername' => $nt->getText() )
);
}
+
return true;
}
@@ -61,6 +65,7 @@ class RenameuserHooks {
*/
public static function onGetLogTypesOnUser( array &$types ) {
$types[] = 'renameuser';
+
return true;
}
}
diff --git a/extensions/Renameuser/Renameuser.php b/extensions/Renameuser/Renameuser.php
index 441b5712..738ca0db 100644
--- a/extensions/Renameuser/Renameuser.php
+++ b/extensions/Renameuser/Renameuser.php
@@ -5,10 +5,12 @@ if ( function_exists( 'wfLoadExtension' ) ) {
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['Renameuser'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['RenameuserAliases'] = __DIR__ . '/Renameuser.alias.php';
+
/* wfWarn(
'Deprecated PHP entry point used for Renameuser extension. Please use wfLoadExtension instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
); */
+
return true;
} else {
die( 'This version of the Renameuser extension requires MediaWiki 1.25+' );
diff --git a/extensions/Renameuser/RenameuserLogFormatter.php b/extensions/Renameuser/RenameuserLogFormatter.php
index 37078842..27289028 100644
--- a/extensions/Renameuser/RenameuserLogFormatter.php
+++ b/extensions/Renameuser/RenameuserLogFormatter.php
@@ -1,8 +1,8 @@
<?php
+
/**
* LogFormatter for renameuser/renameuser logs
*/
-
class RenameuserLogFormatter extends LogFormatter {
protected function getMessageParameters() {
@@ -52,6 +52,7 @@ class RenameuserLogFormatter extends LogFormatter {
$link = '[[' . $title->getPrefixedText() . ']]';
}
}
+
return $link;
}
diff --git a/extensions/Renameuser/RenameuserSQL.php b/extensions/Renameuser/RenameuserSQL.php
index dfdb403d..56d9d493 100644
--- a/extensions/Renameuser/RenameuserSQL.php
+++ b/extensions/Renameuser/RenameuserSQL.php
@@ -1,48 +1,48 @@
<?php
+
/**
* Class which performs the actual renaming of users
*/
-
class RenameuserSQL {
/**
- * The old username
- *
- * @var string
- * @access private
- */
+ * The old username
+ *
+ * @var string
+ * @access private
+ */
public $old;
/**
- * The new username
- *
- * @var string
- * @access private
- */
+ * The new username
+ *
+ * @var string
+ * @access private
+ */
public $new;
/**
- * The user ID
- *
- * @var integer
- * @access private
- */
+ * The user ID
+ *
+ * @var integer
+ * @access private
+ */
public $uid;
/**
- * The the tables => fields to be updated
- *
- * @var array
- * @access private
- */
+ * The the tables => fields to be updated
+ *
+ * @var array
+ * @access private
+ */
public $tables;
/**
- * Flag that can be set to false, in case another process has already started
- * the updates and the old username may have already been renamed in the user table.
- *
- * @var bool
- * @access private
- */
+ * Flag that can be set to false, in case another process has already started
+ * the updates and the old username may have already been renamed in the user table.
+ *
+ * @var bool
+ * @access private
+ */
public $checkIfUserExists;
/**
@@ -80,9 +80,9 @@ class RenameuserSQL {
* @param $uid
* @param User $renamer
* @param $options Array of options
- * 'checkIfUserExists' - bool, whether to update the user table
+ * 'checkIfUserExists' - bool, whether to update the user table
*/
- function __construct( $old, $new, $uid, User $renamer, $options = array() ) {
+ public function __construct( $old, $new, $uid, User $renamer, $options = array() ) {
$this->old = $old;
$this->new = $new;
$this->uid = $uid;
@@ -104,7 +104,7 @@ class RenameuserSQL {
$this->tables = array(); // Immediate updates
$this->tables['image'] = array( 'img_user_text', 'img_user' );
$this->tables['oldimage'] = array( 'oi_user_text', 'oi_user' );
- $this->tables['filearchive'] = array('fa_user_text','fa_user');
+ $this->tables['filearchive'] = array( 'fa_user_text', 'fa_user' );
$this->tablesJob = array(); // Slow updates
// If this user has a large number of edits, use the jobqueue
if ( User::newFromId( $uid )->getEditCount() > self::CONTRIB_JOB ) {
@@ -136,11 +136,11 @@ class RenameuserSQL {
/**
* Do the rename operation
*/
- function rename() {
- global $wgMemc, $wgAuth, $wgUpdateRowsPerJob;
+ public function rename() {
+ global $wgAuth, $wgUpdateRowsPerJob;
// Grab the user's edit count first, used in log entry
- $contribs = User::newfromId( $this->uid )->getEditCount();
+ $contribs = User::newFromId( $this->uid )->getEditCount();
$dbw = wfGetDB( DB_MASTER );
$dbw->begin();
@@ -159,6 +159,7 @@ class RenameuserSQL {
if ( !$dbw->affectedRows() && $this->checkIfUserExists ) {
$dbw->rollback();
$this->debug( "User {$this->old} does not exist, bailing out" );
+
return false;
}
@@ -169,7 +170,7 @@ class RenameuserSQL {
$authUser->resetAuthToken();
// Delete from memcached.
- $wgMemc->delete( wfMemcKey( 'user', 'id', $this->uid ) );
+ $user->invalidateCache();
// Update ipblock list if this user has a block in there.
$dbw->update( 'ipblocks',
@@ -255,7 +256,7 @@ class RenameuserSQL {
break;
}
# Since the ORDER BY is ASC, set the min timestamp with first row
- if ( $jobParams['count'] == 0 ) {
+ if ( $jobParams['count'] === 0 ) {
$jobParams['minTimestamp'] = $row->$timestampC;
}
# Keep updating the last timestamp, so it should be correct
@@ -284,7 +285,7 @@ class RenameuserSQL {
$dbw->commit();
// Delete from memcached again to make sure
- $wgMemc->delete( wfMemcKey( 'user', 'id', $this->uid ) );
+ $user->invalidateCache();
// Clear caches and inform authentication plugins
$user = User::newFromId( $this->uid );
@@ -304,7 +305,6 @@ class RenameuserSQL {
$logid = $logEntry->insert();
$logEntry->publish( $logid );
-
$this->debug( "Finished rename for {$this->old} to {$this->new}" );
return true;
diff --git a/extensions/Renameuser/SpecialRenameuser.php b/extensions/Renameuser/SpecialRenameuser.php
deleted file mode 100644
index c8a0cb70..00000000
--- a/extensions/Renameuser/SpecialRenameuser.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-/*
- * Renameuser file for b/c... this sucks
- */
-require_once( __DIR__ . '/Renameuser.php' );
-
-$wgExtensionFunctions[] = function() {
- wfWarn( 'The deprecated entrypoint of SpecialRenameuser.php is being used. It will be removed in a future release. Use Renameuser.php instead' );
-};
diff --git a/extensions/Renameuser/cleanupArchiveUserText.php b/extensions/Renameuser/cleanupArchiveUserText.php
index 8599f3c2..c24c152f 100644
--- a/extensions/Renameuser/cleanupArchiveUserText.php
+++ b/extensions/Renameuser/cleanupArchiveUserText.php
@@ -5,7 +5,7 @@ if ( $IP === false ) {
$IP = __DIR__ . '/../..';
}
-require_once( "$IP/maintenance/Maintenance.php" );
+require_once "$IP/maintenance/Maintenance.php";
/**
* @ingroup Maintenance
@@ -13,7 +13,8 @@ require_once( "$IP/maintenance/Maintenance.php" );
class CleanupArchiveUserText extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription = "Update the archive table where users were previously renamed, but their archive contributions were not";
+ $this->mDescription = 'Update the archive table where users were ' .
+ 'previously renamed, but their archive contributions were not';
}
public function execute() {
@@ -30,7 +31,7 @@ class CleanupArchiveUserText extends Maintenance {
array( 'LIMIT' => 50 )
);
$results = 0;
- foreach( $res as $row ) {
+ foreach ( $res as $row ) {
$results++;
$this->output( "User:{$row->ar_user_text} => User:{$row->user_name} " );
$dbw->update(
@@ -55,5 +56,5 @@ class CleanupArchiveUserText extends Maintenance {
}
}
-$maintClass = "CleanupArchiveUserText";
-require_once( RUN_MAINTENANCE_IF_MAIN );
+$maintClass = 'CleanupArchiveUserText';
+require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/extensions/Renameuser/composer.json b/extensions/Renameuser/composer.json
new file mode 100644
index 00000000..4365e8a8
--- /dev/null
+++ b/extensions/Renameuser/composer.json
@@ -0,0 +1,12 @@
+{
+ "require-dev": {
+ "jakub-onderka/php-parallel-lint": "0.9",
+ "mediawiki/mediawiki-codesniffer": "0.4.0"
+ },
+ "scripts": {
+ "test": [
+ "parallel-lint . --exclude vendor",
+ "phpcs -p -s"
+ ]
+ }
+}
diff --git a/extensions/Renameuser/extension.json b/extensions/Renameuser/extension.json
index b01a6de8..226cca39 100644
--- a/extensions/Renameuser/extension.json
+++ b/extensions/Renameuser/extension.json
@@ -8,6 +8,9 @@
"descriptionmsg": "renameuser-desc",
"license-name": "GPL-2.0+",
"type": "specialpage",
+ "requires": {
+ "MediaWiki": ">= 1.25.0"
+ },
"ExtensionMessagesFiles": {
"RenameuserAliases": "Renameuser.alias.php"
},
@@ -53,5 +56,6 @@
"RenameuserLogFormatter": "RenameuserLogFormatter.php",
"RenameuserSQL": "RenameuserSQL.php",
"SpecialRenameuser": "specials/SpecialRenameuser.php"
- }
+ },
+ "manifest_version": 1
}
diff --git a/extensions/Renameuser/i18n/azb.json b/extensions/Renameuser/i18n/azb.json
index 62029e49..e9d6a698 100644
--- a/extensions/Renameuser/i18n/azb.json
+++ b/extensions/Renameuser/i18n/azb.json
@@ -1,13 +1,14 @@
{
"@metadata": {
"authors": [
- "Amir a57"
+ "Amir a57",
+ "Koroğlu"
]
},
- "renameuser": "ایستیفاده‌چی آدینی دییش",
+ "renameuser": "ایشلدن آدینی دییش",
"renameuser-linkoncontribs": "ایستیفاده‌چی آدینی دییش",
"renameuser-linkoncontribs-text": "بو ایستیفاده‌چی‌نین آدینی دییش",
- "renameusernew": "یئنی ایستیفاده‌چی آدی:",
+ "renameusernew": "یئنی ایشلدن آدی:",
"renameuserreason": "ندن:",
"renameuserwarnings": "خبردارلیق‌لار:",
"renameuserconfirm": "بلی، ایستیفاده‌چی‌نین آدینی دییش",
diff --git a/extensions/Renameuser/i18n/bn.json b/extensions/Renameuser/i18n/bn.json
index 2e17c3cb..89868c94 100644
--- a/extensions/Renameuser/i18n/bn.json
+++ b/extensions/Renameuser/i18n/bn.json
@@ -9,12 +9,12 @@
"renameuser": "ব্যবহারকারী নামান্তর করো",
"renameuser-linkoncontribs": "ব্যবহারকারী নামান্তর",
"renameuser-linkoncontribs-text": "এই ব্যবহারকারী নামান্তর করো",
- "renameuser-desc": "একজন ব্যবহারকারীকে নামান্তর করুন (''ব্যবহাকারী নামান্তর'' অধিকার প্রয়োজন)",
+ "renameuser-desc": "একজন ব্যবহারকারীকে নামান্তর করতে [[Special:RenameUser|বিশেষ পাতা]] যুক্ত করে (''ব্যবহারকারী নামান্তর'' অধিকার প্রয়োজন)",
"renameuserold": "বর্তমান ব্যবহারকারী নাম:",
"renameusernew": "নতুন ব্যবহারকারী নাম:",
"renameuserreason": "কারণ:",
"renameusermove": "ব্যবহারকারী এবং আলাপের পাতা (এবং তার উপপাতাসমূহ) নতুন নামে সরিয়ে নাও",
- "renameusersuppress": "নতুন নামে রিডাইরেক্ট করবেন না",
+ "renameusersuppress": "নতুন নামে পুনর্নির্দেশ তৈরি করবেন না",
"renameuserreserve": "ভবিষ্যতে উদ্দেশ্যে পুরাতন ব্যবহারকারী নাম ব্লক করা হল",
"renameuserwarnings": "সতর্কীকরণ:",
"renameuserconfirm": "হ্যাঁ, ব্যবহারকারীর নাম পরিবর্তন করো",
diff --git a/extensions/Renameuser/i18n/bs.json b/extensions/Renameuser/i18n/bs.json
index c316b932..3e084b8d 100644
--- a/extensions/Renameuser/i18n/bs.json
+++ b/extensions/Renameuser/i18n/bs.json
@@ -1,17 +1,19 @@
{
"@metadata": {
"authors": [
- "CERminator"
+ "CERminator",
+ "Srdjan m",
+ "Semso98"
]
},
"renameuser": "Preimenuj korisnika",
"renameuser-linkoncontribs": "preimenuj korisnika",
"renameuser-linkoncontribs-text": "Preimenuj ovog korisnika",
"renameuser-desc": "Dodaje [[Special:RenameUser|posebnu stranicu]] u svrhu promjene imena korisnika (zahtjeva pravo ''preimenovanja korisnika'')",
- "renameuserold": "Trenutno ime korisnika:",
+ "renameuserold": "Trenutno korisničko ime:",
"renameusernew": "Novo korisničko ime:",
"renameuserreason": "Razlog promjene imena:",
- "renameusermove": "Premještanje korisnika i njegove stranice za razgovor (zajedno sa podstranicama) na novo ime",
+ "renameusermove": "Premjesti korisnika i njegove stranice za razgovor (zajedno sa podstranicama) na novo ime",
"renameusersuppress": "Ne pravi preusmjerenja na novo ime",
"renameuserreserve": "Blokiraj staro korisničko ime od kasnijeg korištenja",
"renameuserwarnings": "Upozorenja:",
@@ -23,11 +25,14 @@
"renameuser-error-request": "Nastao je problem pri prijemu zahtjeva.\nMolimo Vas da se vratite nazad i pokušate ponovo.",
"renameuser-error-same-user": "Ne može se promijeniti ime korisnika u isto kao i ranije.",
"renameusersuccess": "Ime korisnika \"<nowiki>$1</nowiki>\" je promijenjeno u \"<nowiki>$2</nowiki>\".",
- "renameuser-page-exists": "Stranica $1 već postoji i ne može biti automatski prepisana.",
+ "renameuser-page-exists": "Stranica $1 već postoji i ne može se automatski presnimiti.",
"renameuser-page-moved": "Stranica $1 je premještena na $2.",
"renameuser-page-unmoved": "Stranica $1 nije mogla biti premještena na $2.",
"log-name-renameuser": "Zapisnik preimenovanja korisnika",
- "renameuser-move-log": "Automatski premještena stranica pri promjeni korisničkog imena \"[[User:$1|$1]]\" u \"[[User:$2|$2]]\"",
+ "log-description-renameuser": "Ovo je zapisnik preimenovanja korisničkih računa.",
+ "logentry-renameuser-renameuser": "$1 {{GENDER:$2|preimenovao|preimenovala}} je korisnika $4 (sa {{PLURAL:$6|$6 izmjene|$6 izmjena}}) u $5",
+ "logentry-renameuser-renameuser-legacier": "$1 preimenovao je korisnika $4 u $5",
+ "renameuser-move-log": "Automatski premještena stranica zbog preimenovanja korisnika \"[[User:$1|$1]]\" u \"[[User:$2|$2]]\"",
"right-renameuser": "Preimenovanje korisnika",
"renameuser-renamed-notice": "Ovaj korisnik je promijenio ime.\nZapisnik preimenovanje je prikazan ispod kao referenca."
}
diff --git a/extensions/Renameuser/i18n/ce.json b/extensions/Renameuser/i18n/ce.json
index 95a6992d..e6b96906 100644
--- a/extensions/Renameuser/i18n/ce.json
+++ b/extensions/Renameuser/i18n/ce.json
@@ -8,11 +8,11 @@
"renameuser": "Декъашхочун цӀе хийца",
"renameuser-linkoncontribs": "декъашхочун цӀе хийца",
"renameuser-linkoncontribs-text": "ЦӀе хийца хӀокху декъашхочун",
- "renameuser-desc": "ТӀетуху декъашхойн цӀераш хийца [[Special:RenameUser|аьтту]] (оьшу бакъо <code>renameuser</code>)",
+ "renameuser-desc": "ТӀетуху декъашхойн цӀерш хийца [[Special:RenameUser|аьтту]] (оьшу бакъо <code>renameuser</code>)",
"renameuserold": "Карара цӀе:",
"renameusernew": "Керла декъашхочун цӀе",
- "renameuserreason": "Бахьна:",
- "renameusermove": "Иштта хийца декъашхочун агӀона а долара дийцаре а цера бухара агӀонийн а цӀераш",
+ "renameuserreason": "Бахьана:",
+ "renameusermove": "Иштта хийца декъашхочун агӀона а, долара дийцаре а цера бухара агӀонийн а цӀерш",
"renameusersuppress": "Керла цӀеран тӀе дӀасахьажораг ма кхолла",
"renameuserreserve": "ТӀейогӀу хана лелаян кеч йе шира цӀе",
"renameuserwarnings": "ДӀахьедар:",
@@ -28,12 +28,12 @@
"renameuser-page-exists": "Агӏо $1 йолуш ю цундела и ша юху дӏаязъян йиш яц.",
"renameuser-page-moved": "АгӀона $1 цӀе хийцина → $2.",
"renameuser-page-unmoved": "АгӀона $1 цӀе → $2 хуьйцийла яц.",
- "log-name-renameuser": "Декъашхойн цӀераш хийцар долу тептар",
- "log-description-renameuser": "ХӀокху тептар чохь гойту дӀабазбелла декъашхойн цӀераш хийцар.",
+ "log-name-renameuser": "Декъашхойн цӀерш хийцар долу тептар",
+ "log-description-renameuser": "ХӀокху тептар чохь гойту дӀабазбелла декъашхойн цӀерш хийцар.",
"logentry-renameuser-renameuser": "$1 {{GENDER:$2|цӀе хийцина}} декъашхочун $4 ({{PLURAL:$6|$6 нисдар}}) → $5",
"logentry-renameuser-renameuser-legacier": "$1 $4 декъашхочун цӀе хийцина → $5",
"renameuser-move-log": "Автоматически декъашхочун цӀе хийцина дела «[[User:$1|$1]]» → «[[User:$2|$2]]»",
- "action-renameuser": "декъашхойн цӀераш хийцар",
- "right-renameuser": "декъашхойн цӀераш хийцар",
- "renameuser-renamed-notice": "ХӀокху декъашхочун цӀе хийцина хилла.\nЛахахьа гӀоьналлин гойтуш ду цӀераш хийцаран тептар."
+ "action-renameuser": "декъашхойн цӀерш хийцар",
+ "right-renameuser": "декъашхойн цӀерш хийцар",
+ "renameuser-renamed-notice": "ХӀокху декъашхочун цӀе хийцина хилла.\nЛахахьа гӀоьналлин гойтуш ду цӀерш хийцаран тептар."
}
diff --git a/extensions/Renameuser/i18n/cv.json b/extensions/Renameuser/i18n/cv.json
index 9c386c89..4bbd63d4 100644
--- a/extensions/Renameuser/i18n/cv.json
+++ b/extensions/Renameuser/i18n/cv.json
@@ -1,9 +1,11 @@
{
"@metadata": {
"authors": [
- "FLAGELLVM DEI"
+ "FLAGELLVM DEI",
+ "Chuvash2014"
]
},
"renameuserconfirm": "Çапла, хутшăнакан ятне улăштармалла",
- "renameuser-page-moved": "$1 страницăн ятне $2 çине улăштарнă."
+ "renameuser-page-moved": "$1 страницăн ятне $2 çине улăштарнă.",
+ "log-name-renameuser": "Хутшăнакансен ятне улăштарнин логĕ"
}
diff --git a/extensions/Renameuser/i18n/de.json b/extensions/Renameuser/i18n/de.json
index 313f3963..6744cdc1 100644
--- a/extensions/Renameuser/i18n/de.json
+++ b/extensions/Renameuser/i18n/de.json
@@ -7,7 +7,8 @@
"Raimond Spekking",
"Spacebirdy",
"The Evil IP address",
- "Umherirrender"
+ "Umherirrender",
+ "J. 'mach' wust"
]
},
"renameuser": "Benutzer umbenennen",
@@ -40,5 +41,5 @@
"renameuser-move-log": "Seite während der Benutzerkontoumbenennung von „[[User:$1|$1]]“ in „[[User:$2|$2]]“ automatisch verschoben",
"action-renameuser": "Benutzer umzubenennen",
"right-renameuser": "Benutzer umbenennen",
- "renameuser-renamed-notice": "{{GENDER:$1|Dieser Benutzer|Diese Benutzerin|Dieser Benutzer}} wurde umbenannt.\nZur Information folgt das Benutzernamenänderungs-Logbuch."
+ "renameuser-renamed-notice": "{{GENDER:$1|Dieser Benutzer|Diese Benutzerin}} wurde umbenannt.\nZur Information folgt das Benutzernamenänderungs-Logbuch."
}
diff --git a/extensions/Renameuser/i18n/en.json b/extensions/Renameuser/i18n/en.json
index 40c7a111..fb330733 100644
--- a/extensions/Renameuser/i18n/en.json
+++ b/extensions/Renameuser/i18n/en.json
@@ -1,38 +1,38 @@
{
- "@metadata": {
- "authors": []
- },
- "renameuser": "Rename user",
- "renameuser-linkoncontribs": "rename user",
- "renameuser-linkoncontribs-text": "Rename this user",
- "renameuser-desc": "Adds a [[Special:RenameUser|special page]] to rename a user (need ''renameuser'' right)",
- "renameuser-summary": "",
- "renameuserold": "Current username:",
- "renameusernew": "New username:",
- "renameuserreason": "Reason:",
- "renameusermove": "Move user and talk pages (and their subpages) to new name",
- "renameusersuppress": "Do not create redirects to the new name",
- "renameuserreserve": "Block the old username from future use",
- "renameuserwarnings": "Warnings:",
- "renameuserconfirm": "Yes, rename the user",
- "renameusersubmit": "Submit",
- "renameuser-submit-blocklog": "Show block log for user",
- "renameusererrordoesnotexist": "The user \"<nowiki>$1</nowiki>\" does not exist.",
- "renameusererrorexists": "The user \"<nowiki>$1</nowiki>\" already exists.",
- "renameusererrorinvalid": "The username \"<nowiki>$1</nowiki>\" is invalid.",
- "renameuser-error-request": "There was a problem with receiving the request.\nPlease go back and try again.",
- "renameuser-error-same-user": "You cannot rename a user to the same thing as before.",
- "renameusersuccess": "The user \"<nowiki>$1</nowiki>\" has been renamed to \"<nowiki>$2</nowiki>\".",
- "renameuser-page-exists": "The page $1 already exists and cannot be automatically overwritten.",
- "renameuser-page-moved": "The page $1 has been moved to $2.",
- "renameuser-page-unmoved": "The page $1 could not be moved to $2.",
- "log-name-renameuser": "User rename log",
- "log-description-renameuser": "This is a log of changes to user names.",
- "logentry-renameuser-renameuser": "$1 {{GENDER:$2|renamed}} user $4 ({{PLURAL:$6|$6 edit|$6 edits}}) to $5",
- "logentry-renameuser-renameuser-legacier": "$1 renamed user $4 to $5",
- "logentry-renameuser-renameuser-legaciest": "$1",
- "renameuser-move-log": "Automatically moved page while renaming the user \"[[User:$1|$1]]\" to \"[[User:$2|$2]]\"",
- "action-renameuser": "rename users",
- "right-renameuser": "Rename users",
- "renameuser-renamed-notice": "This user has been renamed.\nThe rename log is provided below for reference."
+ "@metadata": {
+ "authors": []
+ },
+ "renameuser": "Rename user",
+ "renameuser-linkoncontribs": "rename user",
+ "renameuser-linkoncontribs-text": "Rename this user",
+ "renameuser-desc": "Adds a [[Special:RenameUser|special page]] to rename a user (need ''renameuser'' right)",
+ "renameuser-summary": "",
+ "renameuserold": "Current username:",
+ "renameusernew": "New username:",
+ "renameuserreason": "Reason:",
+ "renameusermove": "Move user and talk pages (and their subpages) to new name",
+ "renameusersuppress": "Do not create redirects to the new name",
+ "renameuserreserve": "Block the old username from future use",
+ "renameuserwarnings": "Warnings:",
+ "renameuserconfirm": "Yes, rename the user",
+ "renameusersubmit": "Submit",
+ "renameuser-submit-blocklog": "Show block log for user",
+ "renameusererrordoesnotexist": "The user \"<nowiki>$1</nowiki>\" does not exist.",
+ "renameusererrorexists": "The user \"<nowiki>$1</nowiki>\" already exists.",
+ "renameusererrorinvalid": "The username \"<nowiki>$1</nowiki>\" is invalid.",
+ "renameuser-error-request": "There was a problem with receiving the request.\nPlease go back and try again.",
+ "renameuser-error-same-user": "You cannot rename a user to the same thing as before.",
+ "renameusersuccess": "The user \"<nowiki>$1</nowiki>\" has been renamed to \"<nowiki>$2</nowiki>\".",
+ "renameuser-page-exists": "The page $1 already exists and cannot be automatically overwritten.",
+ "renameuser-page-moved": "The page $1 has been moved to $2.",
+ "renameuser-page-unmoved": "The page $1 could not be moved to $2.",
+ "log-name-renameuser": "User rename log",
+ "log-description-renameuser": "This is a log of changes to user names.",
+ "logentry-renameuser-renameuser": "$1 {{GENDER:$2|renamed}} user $4 ({{PLURAL:$6|$6 edit|$6 edits}}) to $5",
+ "logentry-renameuser-renameuser-legacier": "$1 renamed user $4 to $5",
+ "logentry-renameuser-renameuser-legaciest": "$1",
+ "renameuser-move-log": "Automatically moved page while renaming the user \"[[User:$1|$1]]\" to \"[[User:$2|$2]]\"",
+ "action-renameuser": "rename users",
+ "right-renameuser": "Rename users",
+ "renameuser-renamed-notice": "This user has been renamed.\nThe rename log is provided below for reference."
}
diff --git a/extensions/Renameuser/i18n/eo.json b/extensions/Renameuser/i18n/eo.json
index a0cbabf9..6ad80ddd 100644
--- a/extensions/Renameuser/i18n/eo.json
+++ b/extensions/Renameuser/i18n/eo.json
@@ -7,9 +7,9 @@
"KuboF"
]
},
- "renameuser": "Alinomigi uzanton",
- "renameuser-linkoncontribs": "renomigi uzanton",
- "renameuser-linkoncontribs-text": "Renomigi ĉi tiun uzanton",
+ "renameuser": "Alinomi uzanton",
+ "renameuser-linkoncontribs": "alinomi uzanton",
+ "renameuser-linkoncontribs-text": "Alinomi ĉi tiun uzanton",
"renameuser-desc": "Aldonas [[Special:RenameUser|specialan paĝon]] por alinomigi uzanton (bezonas rajton ''renameuser'')",
"renameuserold": "Aktuala salutnomo:",
"renameusernew": "Nova salutnomo:",
@@ -18,21 +18,21 @@
"renameusersuppress": "Ne krei alidirektilojn al la nova nomo",
"renameuserreserve": "Teni la malnovan salutnomon de plua uzo",
"renameuserwarnings": "Avertoj:",
- "renameuserconfirm": "Jes, renomigu la uzanton",
+ "renameuserconfirm": "Jes, alinomu la uzanton",
"renameusersubmit": "Ek",
"renameuser-submit-blocklog": "Montru forbarprotokolon de la uzulo",
"renameusererrordoesnotexist": "La uzanto \"<nowiki>$1</nowiki>\" ne ekzistas",
"renameusererrorexists": "La uzanto \"<nowiki>$1</nowiki>\" jam ekzistas",
"renameusererrorinvalid": "La salutnomo \"<nowiki>$1</nowiki>\" estas malvalida",
"renameuser-error-request": "Estis problemo recivante la peton.\nBonvolu retroigi kaj reprovi.",
- "renameuser-error-same-user": "Vi ne povas alinomigi uzanton al la sama nomo.",
+ "renameuser-error-same-user": "Vi ne povas alinomi uzanton al la sama nomo.",
"renameusersuccess": "La uzanto \"<nowiki>$1</nowiki>\" estas alinomita al \"<nowiki>$2</nowiki>\"",
"renameuser-page-exists": "La paĝo $1 jam ekzistas kaj ne povas esti aŭtomate anstataŭata.",
"renameuser-page-moved": "La paĝo $1 estis movita al $2.",
"renameuser-page-unmoved": "La paĝo $1 ne povis esti movita al $2.",
"log-name-renameuser": "Protokolo pri alinomigoj de uzantoj",
"log-description-renameuser": "Jen protokolo pri ŝanĝoj de salutnomoj.",
- "logentry-renameuser-renameuser": "$1 {{GENDER:$2|alinomiĝis}} uzanton $4 ({{PLURAL:$6|$6 redakto|$6 redaktoj}}) al $5",
+ "logentry-renameuser-renameuser": "$1 {{GENDER:$2|alinomis}} uzanton $4 ({{PLURAL:$6|$6 redakto|$6 redaktoj}}) al $5",
"logentry-renameuser-renameuser-legacier": "$1 alinomis uzanton $4 al $5",
"renameuser-move-log": "Aŭtomate movis paĝon dum alinomigo de la uzanto \"[[User:$1|$1]]\" al \"[[User:$2|$2]]\"",
"action-renameuser": "Alinomigi uzantojn",
diff --git a/extensions/Renameuser/i18n/es.json b/extensions/Renameuser/i18n/es.json
index 045ee003..525ef0ea 100644
--- a/extensions/Renameuser/i18n/es.json
+++ b/extensions/Renameuser/i18n/es.json
@@ -15,27 +15,28 @@
"Sanbec",
"Spacebirdy",
"Translationista",
- "Vivaelcelta"
+ "Vivaelcelta",
+ "Macofe"
]
},
- "renameuser": "Cambiar el nombre de usuario",
- "renameuser-linkoncontribs": "cambiar el nombre de este usuario",
- "renameuser-linkoncontribs-text": "Cambiar el nombre de este usuario",
- "renameuser-desc": "Añade una [[Special:RenameUser|página especial]] para cambiar de nombre a un usuario (necesita el derecho ''renameuser'')",
- "renameuserold": "Nombre actual:",
- "renameusernew": "Nuevo nombre de usuario:",
+ "renameuser": "Renombrar usuario",
+ "renameuser-linkoncontribs": "renombrar usuario",
+ "renameuser-linkoncontribs-text": "Renombrar a este usuario",
+ "renameuser-desc": "Añade una [[Special:RenameUser|página especial]] para renombrar a un usuario (necesita el permiso ''renameuser'')",
+ "renameuserold": "Nombre de usuario actual:",
+ "renameusernew": "Nombre de usuario nuevo:",
"renameuserreason": "Motivo:",
"renameusermove": "Trasladar las páginas de usuario y de discusión (y sus subpáginas) al nuevo nombre",
"renameusersuppress": "No crear redirecciones al nuevo nombre",
"renameuserreserve": "Bloquear el antiguo nombre de usuario para evitar que sea usado en el futuro",
"renameuserwarnings": "Avisos:",
- "renameuserconfirm": "Sí, cambiar el nombre del usuario",
+ "renameuserconfirm": "Sí, renombrar al usuario",
"renameusersubmit": "Enviar",
"renameuser-submit-blocklog": "Mostrar el registro de bloqueo para el usuario",
- "renameusererrordoesnotexist": "El usuario «<nowiki>$1</nowiki>» no existe",
- "renameusererrorexists": "El usuario «<nowiki>$1</nowiki>» ya existe",
- "renameusererrorinvalid": "El nombre de usuario «<nowiki>$1</nowiki>» no es válido",
- "renameuser-error-request": "Hubo un problema al recibir la solicitud.\nPor favor, vuelve atrás e inténtalo de nuevo.",
+ "renameusererrordoesnotexist": "El usuario «<nowiki>$1</nowiki>» no existe.",
+ "renameusererrorexists": "El usuario «<nowiki>$1</nowiki>» ya existe.",
+ "renameusererrorinvalid": "El nombre de usuario «<nowiki>$1</nowiki>» no es válido.",
+ "renameuser-error-request": "Hubo un problema al recibir la solicitud.\nRegresa e inténtalo de nuevo.",
"renameuser-error-same-user": "No puedes renombrar a un usuario con el nombre que ya tenía.",
"renameusersuccess": "El nombre de usuario «<nowiki>$1</nowiki>» ha sido modificado a «<nowiki>$2</nowiki>»",
"renameuser-page-exists": "La página $1 ya existe y no puede ser reemplazada automáticamente.",
@@ -46,7 +47,7 @@
"logentry-renameuser-renameuser": "$1 {{GENDER:$2|modificó el nombre}} del usuario $4 ({{PLURAL:$6|$6 edición|$6 ediciones}}) a $5",
"logentry-renameuser-renameuser-legacier": "$1 ha cambiado el nombre del usuario $4 a $5",
"renameuser-move-log": "Página trasladada automáticamente al cambiar el nombre de usuario de «[[User:$1|$1]]» a «[[User:$2|$2]]»",
- "action-renameuser": "Cambiar el nombre de los usuarios",
- "right-renameuser": "Cambiar el nombre de los usuarios",
- "renameuser-renamed-notice": "El nombre de este usuario ha sido modificado.\nEl registro de cambios de nombre de usuario se provee debajo para mayor referencia."
+ "action-renameuser": "renombrar usuarios",
+ "right-renameuser": "Renombrar usuarios",
+ "renameuser-renamed-notice": "{{GENDER:$1|Este usuario|Esta usuaria}} se ha renombrado.\nEl registro de cambios de nombre de usuario se provee debajo para mayor referencia."
}
diff --git a/extensions/Renameuser/i18n/fa.json b/extensions/Renameuser/i18n/fa.json
index 7960bd9f..4f87db34 100644
--- a/extensions/Renameuser/i18n/fa.json
+++ b/extensions/Renameuser/i18n/fa.json
@@ -39,5 +39,5 @@
"renameuser-move-log": "صفحه در ضمن تغییر نام کاربر «[[User:$1|$1]]» به «[[User:$2|$2]]» به طور خودکار منتقل شد",
"action-renameuser": "تغییر نام کاربران",
"right-renameuser": "تغییر نام کاربران",
- "renameuser-renamed-notice": "این کاربر تغییر نام داده‌است.\nسیاهه تغییر نام در ادامه آمده است."
+ "renameuser-renamed-notice": "این کاربر تغییر نام داده است.\nسیاهه تغییر نام در ادامه آمده است."
}
diff --git a/extensions/Renameuser/i18n/fy.json b/extensions/Renameuser/i18n/fy.json
index 50a0d214..01f2f9b5 100644
--- a/extensions/Renameuser/i18n/fy.json
+++ b/extensions/Renameuser/i18n/fy.json
@@ -11,11 +11,11 @@
"renameuserold": "Alde namme:",
"renameusernew": "Nije namme:",
"renameuserreason": "Reden:",
- "renameusermove": "Werneam meidogger en oerlis siden (mei ûnderlizzende siden) nei de nije namme",
+ "renameusermove": "Meidoggersside en oerlissiden omneame (mei ûnderlizzende siden) nei de nije namme",
"renameuserreserve": "Takomst brûken fan de âlde meidoggersnamme foarkomme",
"renameuserwarnings": "Warskôgings:",
"renameuserconfirm": "Ja, feroarje de namme fan de meidogger",
- "renameusersubmit": "Feroarje",
+ "renameusersubmit": "Ferstjoere",
"renameusererrordoesnotexist": "Der is gjin meidogger mei de namme \"<nowiki>$1</nowiki>\"",
"renameusererrorexists": "De meidochnamme \"<nowiki>$1</nowiki>\" wurdt al brûkt.",
"renameusererrorinvalid": "De meidochnamme \"<nowiki>$1</nowiki>\" mei net.",
diff --git a/extensions/Renameuser/i18n/he.json b/extensions/Renameuser/i18n/he.json
index f5345946..72daa008 100644
--- a/extensions/Renameuser/i18n/he.json
+++ b/extensions/Renameuser/i18n/he.json
@@ -35,7 +35,7 @@
"renameuser-page-unmoved": "לא ניתן היה להעביר את הדף $1 ל$2.",
"log-name-renameuser": "יומן שינויי שמות משתמש",
"log-description-renameuser": "זהו יומן השינויים בשמות המשתמשים.",
- "logentry-renameuser-renameuser": "$1 {{GENDER:$2|שינה|שינתה}} את שם המשתמש $4 &rlm;({{PLURAL:$6|עריכה אחת|$6 עריכות}}) אל $5",
+ "logentry-renameuser-renameuser": "$1 {{GENDER:$2|שינה|שינתה}} את שם המשתמש $4 &rlm;({{PLURAL:$6|עריכה אחת|$6 עריכות}}) אל $5&rlm;",
"logentry-renameuser-renameuser-legacier": "$1 {{GENDER:$2|שינה|שינתה}} את שם המשתמש $4 ל{{GRAMMAR:תחילית|$5}}&rlm;",
"renameuser-move-log": "העברה אוטומטית בעקבות שינוי שם המשתמש \"[[User:$1|$1]]\" ל־\"[[User:$2|$2]]\"",
"action-renameuser": "לשנות שמות משתמש",
diff --git a/extensions/Renameuser/i18n/id.json b/extensions/Renameuser/i18n/id.json
index 1ffdea17..0a447bb5 100644
--- a/extensions/Renameuser/i18n/id.json
+++ b/extensions/Renameuser/i18n/id.json
@@ -21,7 +21,7 @@
"renameuserwarnings": "Peringatan:",
"renameuserconfirm": "Ya, ganti nama pengguna tersebut",
"renameusersubmit": "Kirim",
- "renameuser-submit-blocklog": "Tampilkan log pemblokiran pengguna",
+ "renameuser-submit-blocklog": "Tampilkan catatan pemblokiran pengguna",
"renameusererrordoesnotexist": "Pengguna \"<nowiki>$1</nowiki>\" tidak ada",
"renameusererrorexists": "Pengguna \"<nowiki>$1</nowiki>\" telah ada",
"renameusererrorinvalid": "Nama pengguna \"<nowiki>$1</nowiki>\" tidak sah",
@@ -31,7 +31,7 @@
"renameuser-page-exists": "Halaman $1 telah ada dan tidak dapat ditimpa secara otomatis.",
"renameuser-page-moved": "Halaman $1 telah dipindah ke $2.",
"renameuser-page-unmoved": "Halaman $1 tidak dapat dipindah ke $2.",
- "log-name-renameuser": "Log penggantian nama pengguna",
+ "log-name-renameuser": "Catatan penggantian nama pengguna",
"log-description-renameuser": "Di bawah ini adalah log penggantian nama pengguna",
"renameuser-move-log": "Secara otomatis memindahkan halaman sewaktu mengganti nama pengguna \"[[User:$1|$1]]\" menjadi \"[[User:$2|$2]]\"",
"action-renameuser": "ganti nama pengguna",
diff --git a/extensions/Renameuser/i18n/ilo.json b/extensions/Renameuser/i18n/ilo.json
index f60cb464..f6c56577 100644
--- a/extensions/Renameuser/i18n/ilo.json
+++ b/extensions/Renameuser/i18n/ilo.json
@@ -27,10 +27,10 @@
"renameuser-page-exists": "Ti panid a $1 ket addaan ken saan a mautomatiko a suratan manen.",
"renameuser-page-moved": "Ti panid $1 ket naiyalisen idiay $2.",
"renameuser-page-unmoved": "Ti panid $1 ket saan a maiyalis idiay $2.",
- "log-name-renameuser": "Listaan ti panaginaganan manen ti agar-aramat",
+ "log-name-renameuser": "Listaan ti pananginagan manen ti agar-aramat",
"log-description-renameuser": "Daytoy ket listaan kadagiti panagbalbaliw kadagiti nagan ti agar-aramat.",
- "logentry-renameuser-renameuser": "Ni $1 ket {{GENDER:$2|ninagananna}} ti agar-aramat a ni $4 ({{PLURAL:$6|$6 nga inurnos|$6 kadagiti inurnos}}) iti $5",
- "logentry-renameuser-renameuser-legacier": "Ni $1 ket ninagananna ti agar-aramat a ni $4 iti $5",
+ "logentry-renameuser-renameuser": "{{GENDER:$2|Ninaganan manen}} ni $1 ni agar-aramat $4 ({{PLURAL:$6|$6 nga inurnos|$6 nga inur-urnos}}) iti $5",
+ "logentry-renameuser-renameuser-legacier": "Ninaganan manen ni $1 ni agar-aramat $4 iti $5",
"renameuser-move-log": "Automatiko nga iyalis ti panid bayat a nagnaganan manen ti agar-aramat \"[[User:$1|$1]]\" iti \"[[User:$2|$2]]\"",
"action-renameuser": "inaganan manen dagiti agar-aramat",
"right-renameuser": "Inaganan manen dagiti agar-aramat",
diff --git a/extensions/Renameuser/i18n/jut.json b/extensions/Renameuser/i18n/jut.json
index e9e7419e..ae4945e4 100644
--- a/extensions/Renameuser/i18n/jut.json
+++ b/extensions/Renameuser/i18n/jut.json
@@ -2,25 +2,26 @@
"@metadata": {
"authors": [
"Huslåke",
- "Ælsån"
+ "Ælsån",
+ "Jyllanj"
]
},
- "renameuser": "Gæf æ bruger en ny navn",
- "renameuser-desc": "Gæf en bruger en ny navn (''renameuser'' regt er nøteg)",
- "renameuserold": "Nuværende brugernavn:",
- "renameusernew": "Ny brugernavn:",
+ "renameuser": "Omdøb bruge",
+ "renameuser-desc": "Lawe en [[Special:RenameUser|specialsiid]] te å omdøb i bruge (kräwe rettiheden ''renameuser'')",
+ "renameuserold": "Nuwærenje brugenaun:",
+ "renameusernew": "Ny brugenaun:",
"renameuserreason": "Før hvat dett'er dun:",
- "renameusermove": "Flyt bruger og diskusje sider (og deres substrøk) til ny navn",
- "renameusersubmit": "Gå til",
- "renameusererrordoesnotexist": "Æ bruger \"<nowiki>$1</nowiki>\" bestä ekke.",
- "renameusererrorexists": "Æ bruger \"<nowiki>$1</nowiki>\" er ål.",
- "renameusererrorinvalid": "Æ brugernavn \"<nowiki>$1</nowiki>\" er ogyldegt.",
- "renameuser-error-request": "Her har en pråblæm ve enkriige der anfråge. Gå hen og pråbær nurmål.",
- "renameuser-error-same-user": "Du kenst ekke hernåm æ bruger til æselbste nåm als dafør.",
- "renameusersuccess": "Æ bruger \"<nowiki>$1</nowiki>\" er hernåmt til \"<nowiki>$2</nowiki>\".",
- "renameuser-page-exists": "Æ pæge $1 er ål og ken ekke åtåmatisk åverflyttet være.",
- "renameuser-page-moved": "Æ pæge $1 er flyttet til $2.",
- "renameuser-page-unmoved": "Æ pæge $1 kon ekke flyttet være til $2.",
- "log-name-renameuser": "Bruger hernåm log",
- "renameuser-move-log": "Åtåmatisk flyttet pæge hviil hernåm der bruger \"[[User:$1|$1]]\" til \"[[User:$2|$2]]\""
+ "renameusermove": "Flytt bruge- å diskusjonsside (å dæes unjeside) te ny naun",
+ "renameusersubmit": "Omdøb",
+ "renameusererrordoesnotexist": "Brugari \"<nowiki>$1</nowiki>\" finjs ett.",
+ "renameusererrorexists": "Brugari \"<nowiki>$1</nowiki>\" finjs ållried.",
+ "renameusererrorinvalid": "Brugenaune \"<nowiki>$1</nowiki>\" ä udjylji.",
+ "renameuser-error-request": "Dä war e problem mä å modta forspöyrgsle.\nGo wenlist tebag å forsyeg idjen.",
+ "renameuser-error-same-user": "Du kan ett omdøb i bruge te sam naune som förr.",
+ "renameusersuccess": "Brugari \"<nowiki>$1</nowiki>\" ä bløwen omdøbtj te \"<nowiki>$2</nowiki>\".",
+ "renameuser-page-exists": "Siden $1 eksistiire ållried å kan ett automatisk öweskriiws.",
+ "renameuser-page-moved": "Siden $1 ä flytten te $2.",
+ "renameuser-page-unmoved": "Siden $1 ku ett flytts te $2.",
+ "log-name-renameuser": "Brugeomdøbnengslogg",
+ "renameuser-move-log": "Siid automatisk flytten we omdøbneng å bruge \"[[User:$1|$1]]\" te \"[[User:$2|$2]]\""
}
diff --git a/extensions/Renameuser/i18n/kk-cyrl.json b/extensions/Renameuser/i18n/kk-cyrl.json
index 57cfd6fb..34c2ae83 100644
--- a/extensions/Renameuser/i18n/kk-cyrl.json
+++ b/extensions/Renameuser/i18n/kk-cyrl.json
@@ -30,8 +30,8 @@
"renameuser-page-unmoved": "$1 деген бет $2 деген бетке жылжытылмады.",
"log-name-renameuser": "Қатысушыны есімін өзгеру журналы",
"log-description-renameuser": "Бұл қатысушы есімдерін өзгерту журналы.",
- "logentry-renameuser-renameuser": "$1 қатысушы есімін $4 дегеннен ({{PLURAL:$6|$6 өңдеме жасаған|$6 өңдеме жасаған}}) $5 дегенге {{GENDER:$2|өзгерті}}",
- "logentry-renameuser-renameuser-legacier": "$1 қатысушы есімін $4 дегеннен $5 дегенге өзгерті",
+ "logentry-renameuser-renameuser": "$1 қатысушы есімін $4 дегеннен ({{PLURAL:$6|$6 өңдеме жасаған|$6 өңдеме жасаған}}) $5 дегенге {{GENDER:$2|өзгертті}}",
+ "logentry-renameuser-renameuser-legacier": "$1 қатысушы есімін $4 дегеннен $5 дегенге өзгертті",
"renameuser-move-log": "«[[User:$1|$1]]» деген қатысушы атын «[[User:$2|$2]]» дегенге өзгерткенде бет өздігінен жылжытылды",
"action-renameuser": "қатысушылардың есімін өзгерту",
"right-renameuser": "Қатысушылардың есімін өзгерту",
diff --git a/extensions/Renameuser/i18n/ko.json b/extensions/Renameuser/i18n/ko.json
index 5d9de7c0..9cac4299 100644
--- a/extensions/Renameuser/i18n/ko.json
+++ b/extensions/Renameuser/i18n/ko.json
@@ -39,5 +39,5 @@
"renameuser-move-log": "\"[[User:$1|$1]]\" 사용자를 \"[[User:$2|$2]]\" 사용자로 바꾸면서 문서를 자동으로 옮겼습니다",
"action-renameuser": "사용자 이름을 바꿀",
"right-renameuser": "사용자 이름 바꾸기",
- "renameuser-renamed-notice": "이 사용자의 이름을 바꾸었습니다.\n아래의 이름 바꾸기 기록을 참고하십시오."
+ "renameuser-renamed-notice": "이 사용자의 이름을 바꾸었습니다.\n아래의 이름 바꾸기 기록을 참조하십시오."
}
diff --git a/extensions/Renameuser/i18n/krc.json b/extensions/Renameuser/i18n/krc.json
index e016a6cd..b7e54c49 100644
--- a/extensions/Renameuser/i18n/krc.json
+++ b/extensions/Renameuser/i18n/krc.json
@@ -4,6 +4,35 @@
"Iltever"
]
},
+ "renameuser": "Къошулуучуну атын ауушдур",
"renameuser-linkoncontribs": "къошулуучуну атын ауушдур",
- "log-name-renameuser": "Къошулуучуланы атларын ауушдуруу журнал"
+ "renameuser-linkoncontribs-text": "Бу къошулуучуну атын ауушдур",
+ "renameuser-desc": "Къошулуучуну атын ауушдуруу [[Special:RenameUser|мадарны]] къошады (<code>renameuser</code> эркинлик керек боллукъду)",
+ "renameuserold": "Бусагъатдагъы къошулуучу аты:",
+ "renameusernew": "Дангы къошулуучу аты:",
+ "renameuserreason": "Чурум:",
+ "renameusermove": "Дагъыда къошулуучу бетини, энчи сюзюуюню эм аланы тюббетлерини атларын ауушдур",
+ "renameusersuppress": "Джангы атха редиректле къурама",
+ "renameuserreserve": "Эски къошулуучу атны артда да хайырландырыр ючюн резервация эт",
+ "renameuserwarnings": "Эс бёлюгюз:",
+ "renameuserconfirm": "Хо, къошулуучуну атын ауушдур",
+ "renameusersubmit": "Тындыр",
+ "renameuser-submit-blocklog": "Къошулуучуну блок этилиу журналын кёргюз",
+ "renameusererrordoesnotexist": "«<nowiki>$1</nowiki>» ат бла къошулуучу регистрация этилмегенди.",
+ "renameusererrorexists": "«<nowiki>$1</nowiki>» ат бла къошулуучу алгъадан регистрация этилиб турады.",
+ "renameusererrorinvalid": "«<nowiki>$1</nowiki>» деген ат джарамагъан атды.",
+ "renameuser-error-request": "Сапаришни алыу бла тыйгъычла чыкъдыла.\nАртха къайтыгъыз да, джангыдан кёрюгюз.",
+ "renameuser-error-same-user": "Алгъадан болгъан атынгы джангыдан берирге болмайды.",
+ "renameusersuccess": "«<nowiki>$1</nowiki>» къошулуучуна аты «<nowiki>$2</nowiki>» деб ауушдурулду.",
+ "renameuser-page-exists": "$1 бет алгъадан да барды эм автомат халда джангыдан джазылмайды.",
+ "renameuser-page-moved": "$1 бетни аты $2 деб ауушдурулду.",
+ "renameuser-page-unmoved": "$1 бетни атын $2 деб ауушдурургъа болмайды.",
+ "log-name-renameuser": "Къошулуучуланы атларын ауушдуруу журнал",
+ "log-description-renameuser": "Бу, регистрация этилген къошулуучуланы атларыны ауушдурулгъанларыны журналыды.",
+ "logentry-renameuser-renameuser": "$1, $4 ({{PLURAL:$6|$6 тюрлендириую}}) къошулуучуну атын $5 деб {{GENDER:$2|ауушдурду}}",
+ "logentry-renameuser-renameuser-legacier": "$1, $4 къошулуучуна атын $5 деб ауушдурду",
+ "renameuser-move-log": "«[[User:$1|$1]]» тергеу джазыу «[[User:$2|$2]]» деб ауушдурулгъаны себебли автомат халда",
+ "action-renameuser": "къошулуучуланы атларын ауушдуруу",
+ "right-renameuser": "Къошулуучуланы атларын ауушдуруу",
+ "renameuser-renamed-notice": "Бу къошулуучуну аты ауушдурулду.\nТюбюрекде ат ауушдуруу журнал бериледи."
}
diff --git a/extensions/Renameuser/i18n/ksh.json b/extensions/Renameuser/i18n/ksh.json
index f42ce440..2bae086e 100644
--- a/extensions/Renameuser/i18n/ksh.json
+++ b/extensions/Renameuser/i18n/ksh.json
@@ -7,9 +7,9 @@
"renameuser": "Metmaacher ömdäufe",
"renameuser-linkoncontribs": "Metmaacher ömnänne",
"renameuser-linkoncontribs-text": "Heh dä Metmaacher ömnänne",
- "renameuser-desc": "[[Special:RenameUser|Metmaacher ömdäufe]] — ävver do bruch mer et Rääsch „<i lang=en\">renameuser</i>“ för.",
- "renameuserold": "Dä ahle Metmaacher-Name",
- "renameusernew": "Dä neue Metmaacher-Name",
+ "renameuser-desc": "[[Special:RenameUser|Metmaacher ömdäufe]] — ävver doh bruch mer et Rääsch „<i lang=\"en\" xml:lang=\"en\" dir=\"ltr\" title=\"„Metmaacher Ömdäufe“\">renameuser</i>“ för.",
+ "renameuserold": "Dä ahle Metmaacher_Nahme",
+ "renameusernew": "Dä neuje Metmaacher_Nahme",
"renameuserreason": "Dä Jrond för et Ömdäufe:",
"renameusermove": "De Metmaachersigg met Klaaf- un Ungersigge op dä neue Metmaacher-Name ömstelle",
"renameusersuppress": "Donn kein Ömleidong op dä neue Name aanlääje",
@@ -22,17 +22,17 @@
"renameusererrorexists": "Ene Metmaacher met däm Name „<nowiki>$1</nowiki>“ jit et ald.",
"renameusererrorinvalid": "Ene Metmaacher-Name eß „<nowiki>$1</nowiki>“ ävver nit, dä wöhr nit richtich.",
"renameuser-error-request": "Mer hatte e Problem met Dingem Opdrach.\nBes esu joot un versöök et noch ens.",
- "renameuser-error-same-user": "Do Tuppes! Der ahle un der neue Name es dersellve. Do bengk et Ömdäufe jaanix.",
+ "renameuser-error-same-user": "Do Tuppes! Der ahle un der neue Nahme es dersellve. Do brängk et Ömdäufe jaanix.",
"renameusersuccess": "Dä Metmaacher „<nowiki>$1</nowiki>“ es jetz op „<nowiki>$2</nowiki>“ ömjedäuf.",
"renameuser-page-exists": "De Sigg $1 es ald doh, un mer könne se nit automatesch övverschrieve",
"renameuser-page-moved": "De Sigg wood vun „$1“ op „$2“ ömjenannt.",
"renameuser-page-unmoved": "Di Sigg „$1“ kunnt nit op „$2“ ömjenannt wääde.",
- "log-name-renameuser": "Logboch vum Metmaacher-Ömdäufe",
- "log-description-renameuser": "Dat es et Logboch vun de ömjedäufte Metmaachere",
+ "log-name-renameuser": "Logbohch vum Metmaacher-Ömdäufe",
+ "log-description-renameuser": "Dat es et Logbohch vun de ömjedäufte Metmaachere",
"logentry-renameuser-renameuser": "{{GENDER:$2|Dä|Dat|Dä Metmaacher|De|Dat}} $1 Hät dä Metmaacher „$4“, dä {{PLURAL:$6|ein Änderong|$6 Änderonge|kein Änderonge}} aam Wikki jemaat hät, op „$5“ ömjedäuf.",
"logentry-renameuser-renameuser-legacier": "{{GENDER:$2|Dä|Dat|Dä Metmaacher|De|Dat}} $1 Hät dä Metmaacher „$4“ op „$5“ ömjedäuf.",
"renameuser-move-log": "Di Sigg weet automatesch ömjenannt weil mer dä Metmaacher „[[User:$1|$1]]“ op „[[User:$2|$2]]“ öm am däufe sin.",
- "action-renameuser": "Metmaacher ömdäufe",
+ "action-renameuser": "Metmaacher ömzedäufe",
"right-renameuser": "Metmaacher ömdäufe",
- "renameuser-renamed-notice": "Dä Metmaacher es ömjenannt woode.\nDat kanns De unge en däm Ußzoch uss_em Logbooch vum Metmacher Ömnänne fenge."
+ "renameuser-renamed-notice": "Dä Metmaacher es ömjenannt woode.\nDat kanns De unge en däm Ußzoch uss_em Logbohch vum Metmaacher_Ömnänne fenge."
}
diff --git a/extensions/Renameuser/i18n/ku-latn.json b/extensions/Renameuser/i18n/ku-latn.json
index 6653c24e..42d2835b 100644
--- a/extensions/Renameuser/i18n/ku-latn.json
+++ b/extensions/Renameuser/i18n/ku-latn.json
@@ -3,7 +3,8 @@
"authors": [
"George Animal",
"Ghybu",
- "Gomada"
+ "Gomada",
+ "Bikarhêner"
]
},
"renameuser": "Navê bikarhêner biguherîne",
@@ -11,7 +12,7 @@
"renameuser-linkoncontribs-text": "Navê vî bikarhênerî biguherîne",
"renameuserold": "Navê niha:",
"renameusernew": "Navê nû:",
- "renameuserreason": "Sedema navguherandinê:",
+ "renameuserreason": "Sedem:",
"renameusermove": "Rûpelên bikarhêner û gotûbêjê xwe (û binrûpelên xwe) bigerîne berve navê nû",
"renameuserwarnings": "Hişyarî:",
"renameuserconfirm": "Erê, navê vî bikarhênerî biguherîne",
diff --git a/extensions/Renameuser/i18n/ne.json b/extensions/Renameuser/i18n/ne.json
index 9ba5aa09..917797b1 100644
--- a/extensions/Renameuser/i18n/ne.json
+++ b/extensions/Renameuser/i18n/ne.json
@@ -1,7 +1,13 @@
{
- "@metadata": [],
+ "@metadata": {
+ "authors": [
+ "NehalDaveND"
+ ]
+ },
"renameuserold": "अहिलेको प्रयोगकर्ता नाम:",
"renameusernew": "नयाँ प्रयोगकर्ता नाम:",
+ "renameuserreason": "कारण:",
+ "renameuserwarnings": "चेतावनीहरू:",
"renameusersubmit": "बुझाउने",
"renameuser-page-exists": "$1 पृष्ठ पहिले देखि नै रहेको छ र स्वत: अधिलेखन गर्न सकिएन ।",
"renameuser-page-moved": " $1 पृष्ठलाई $2 मा सारियो ।",
diff --git a/extensions/Renameuser/i18n/nn.json b/extensions/Renameuser/i18n/nn.json
index 5664917c..f08b78d6 100644
--- a/extensions/Renameuser/i18n/nn.json
+++ b/extensions/Renameuser/i18n/nn.json
@@ -10,16 +10,18 @@
},
"renameuser": "Døyp om brukar",
"renameuser-linkoncontribs": "døyp om brukar",
- "renameuser-desc": "Legg til ei [[Special:RenameUser|spesialsida]] for å døypa om ein brukar (krev ''renameuser''-rettar)",
+ "renameuser-linkoncontribs-text": "Byt namn på brukaren",
+ "renameuser-desc": "Legg til ei [[Special:RenameUser|spesialside]] for å døypa om ein brukar (krev ''renameuser''-rettar)",
"renameuserold": "Brukarnamn no:",
"renameusernew": "Nytt brukarnamn:",
- "renameuserreason": "Årsak for omdøyping:",
+ "renameuserreason": "Årsak:",
"renameusermove": "Flytt brukar- og brukardiskusjonssider (og undersidene deira) til nytt namn",
"renameusersuppress": "Ikkje opprett omdirigeringar til det nye namnet",
"renameuserreserve": "Blokker det gamle brukarnamnet for framtidig bruk",
"renameuserwarnings": "Åtvaringar:",
"renameuserconfirm": "Ja, endra namn på brukaren",
"renameusersubmit": "Utfør",
+ "renameuser-submit-blocklog": "Sjå blokkeringslogg for brukaren",
"renameusererrordoesnotexist": "Brukaren «<nowiki>$1</nowiki>» finst ikkje.",
"renameusererrorexists": "Brukaren «<nowiki>$1</nowiki>» finst allereie.",
"renameusererrorinvalid": "Brukarnamnet «<nowiki>$1</nowiki>» er ikkje gyldig.",
@@ -30,7 +32,11 @@
"renameuser-page-moved": "Sida $1 har vorte flytta til $2.",
"renameuser-page-unmoved": "Sida $1 kunne ikkje verta flytta til $2.",
"log-name-renameuser": "Logg over brukarnamnendringar",
+ "log-description-renameuser": "Dette er ein logg over brukarnamnendringar.",
+ "logentry-renameuser-renameuser": "$1 {{GENDER:$2|omnemna}} brukaren $4 ({{PLURAL:$6|éi endring|$6 endringar}}) til $5",
+ "logentry-renameuser-renameuser-legacier": "$1 omnemna brukaren $4 til $5",
"renameuser-move-log": "Flytta sida automatisk under omdøyping av brukaren «[[User:$1|$1]]» til «[[User:$2|$2]]»",
+ "action-renameuser": "omnemna brukarar",
"right-renameuser": "Døypa om brukarar",
- "renameuser-renamed-notice": "Denne brukaren har fått nytt namn.\nTil informasjon er omdøpingsloggen synt nedanfor."
+ "renameuser-renamed-notice": "Denne brukaren har fått nytt namn.\nTil informasjon er omdøypingsloggen synt nedanfor."
}
diff --git a/extensions/Renameuser/i18n/ro.json b/extensions/Renameuser/i18n/ro.json
index fe31292e..ff5004ce 100644
--- a/extensions/Renameuser/i18n/ro.json
+++ b/extensions/Renameuser/i18n/ro.json
@@ -36,6 +36,7 @@
"log-name-renameuser": "Jurnal redenumiri utilizatori",
"log-description-renameuser": "Acesta este un jurnal al modificărilor de nume de utilizator",
"logentry-renameuser-renameuser": "$1 {{GENDER:$2|a redenumit}} utilizatorul $4 ({{PLURAL:$6|o contribuție|$6 contribuții|$6 de contribuții}}) în $5",
+ "logentry-renameuser-renameuser-legacier": "$1 a redenumit utilizatorul $4 în $5",
"renameuser-move-log": "Pagină mutată automat la redenumirea utilizatorului de la „[[User:$1|$1]]” la „[[User:$2|$2]]”",
"action-renameuser": "redenumește utilizatori",
"right-renameuser": "Redenumește utilizatori",
diff --git a/extensions/Renameuser/i18n/sa.json b/extensions/Renameuser/i18n/sa.json
index d0a79f8d..6d37f30f 100644
--- a/extensions/Renameuser/i18n/sa.json
+++ b/extensions/Renameuser/i18n/sa.json
@@ -2,20 +2,21 @@
"@metadata": {
"authors": [
"Ansumang",
- "Shubha"
+ "Shubha",
+ "NehalDaveND"
]
},
"renameuser": "यॊजकस्य पुनर्नामकरणं क्रियताम्",
"renameuser-linkoncontribs": "यॊजकनाम परिवर्त्यताम्",
"renameuser-linkoncontribs-text": "अस्य योजकस्य नाम परिवर्त्यताम्",
- "renameuser-desc": "योजकस्य पुनर्नामकरणं कर्तुं (''योजकपुनर्नाम''अधिकारः अपेक्षितः) [[Special:RenameUser|विशेषपृष्ठम्]] योजयति",
+ "renameuser-desc": "योजकस्य पुनर्नामकरणं कर्तुं (''योजकपुनर्नाम''अधिकारः अपेक्षितः) [[Special:RenameUser|विशिष्टपृष्ठम्]] योजयति",
"renameuserold": "प्रस्तुतयोजकनाम :",
"renameusernew": "नूतनयोजकनाम :",
"renameuserreason": "नामपरिवर्तनस्य कारणम् :",
"renameusermove": "योजकः सम्भाषणपृष्ठं (तेषाम् उपपृष्ठानि) च नूतननाम प्रति चाल्यताम्",
"renameusersuppress": "नूतननाम्नः पुनर्निदेशनं न सृज्यताम्",
"renameuserreserve": "भविष्ये उपयोगाय पुरातनं योजकनाम अवरुद्ध्यताम्",
- "renameuserwarnings": "चेतावनी:",
+ "renameuserwarnings": "पूर्वसूचना :",
"renameuserconfirm": "आम्, योजकस्य पुनर्नाम दीयताम्",
"renameusersubmit": "उपस्थाप्यताम्",
"renameuser-submit-blocklog": "योजकस्य अवरोधवृत्तं दर्श्यताम्",
@@ -25,7 +26,7 @@
"renameuser-error-request": "निवेदनस्य प्राप्तौ कश्चन क्लेशः आसीत् ।\nकृपया प्रतिगत्य प्रयतताम् ।",
"renameuser-error-same-user": "योजकस्य पूर्वनाम दत्त्वा पुनः नामकरणं न शक्यते ।",
"renameusersuccess": "\"<nowiki>$1</nowiki>\" इत्यस्य योजकनाम \"<nowiki>$2</nowiki>\" कृतमस्ति ।",
- "renameuser-page-exists": "$1 इत्येतत् पुटं पूर्वमेव विद्यते । तदुपरि लेखनम् अशक्यम् ।",
+ "renameuser-page-exists": "$1 इत्येतत् पृष्ठं पूर्वमेव विद्यते । तदुपरि लेखनम् अशक्यम् ।",
"renameuser-page-moved": "$1 पृष्ठं $2 प्रति चालितम् अस्ति ।",
"renameuser-page-unmoved": "$1 पृष्ठं $2 प्रति चालनम् अशक्यम् ।",
"log-name-renameuser": "परिवर्तितयोजकनाम्नां वृत्तम्",
diff --git a/extensions/Renameuser/i18n/scn.json b/extensions/Renameuser/i18n/scn.json
index ef0a4039..200d63ec 100644
--- a/extensions/Renameuser/i18n/scn.json
+++ b/extensions/Renameuser/i18n/scn.json
@@ -2,7 +2,8 @@
"@metadata": {
"authors": [
"Gmelfi",
- "Santu"
+ "Santu",
+ "Pippinu"
]
},
"renameuser": "Rinòmina utenti",
@@ -10,7 +11,7 @@
"renameuser-desc": "Funzioni pi rinuminari n'utenti (addumanna li diritti di ''renameuser'')",
"renameuserold": "Nomu utenti dô prisenti:",
"renameusernew": "Novu nomu utenti:",
- "renameuserreason": "Mutivu dû caciu di nomu",
+ "renameuserreason": "Mutivu:",
"renameusermove": "Rinòmina macari la pàggina utenti, la pàggina di discussioni e li suttapàggini",
"renameuserreserve": "Sarva lu vecchiu utenti pi futuri usi",
"renameuserwarnings": "Avvisi:",
diff --git a/extensions/Renameuser/i18n/sq.json b/extensions/Renameuser/i18n/sq.json
index 57822583..0a81a002 100644
--- a/extensions/Renameuser/i18n/sq.json
+++ b/extensions/Renameuser/i18n/sq.json
@@ -4,7 +4,8 @@
"Dori",
"FatosMorina",
"Mikullovci11",
- "Olsi"
+ "Olsi",
+ "Ammartivari"
]
},
"renameuser": "Riemëroje përdoruesin",
@@ -13,7 +14,7 @@
"renameuser-desc": "Shton një [[Special:RenameUser|faqe speciale]] për të riemëruar një përdorues (duhet e drejta ''renameuser'')",
"renameuserold": "Emri i tanishëm",
"renameusernew": "Emri i ri",
- "renameuserreason": "Arsyeja për riemërim:",
+ "renameuserreason": "Arsyeja:",
"renameusermove": "Zhvendos faqet e përdoruesit dhe të diskutimit (dhe nën-faqet e tyre) tek emri i ri",
"renameusersuppress": "Mos krijoni përcjellime tek emri i ri",
"renameuserreserve": "Bllokoni emrin e vjetër të përdoruesit të përdorim në të ardhmen",
@@ -30,7 +31,8 @@
"renameuser-page-exists": "Faqja $1 ekziston dhe nuk mund të mbivendoset automatikisht.",
"renameuser-page-moved": "Faqja $1 është zhvendosur tek $2.",
"renameuser-page-unmoved": "Faqja $1 s'mund të zhvendosej tek $2.",
- "log-name-renameuser": "Regjistri i emër-ndryshimeve",
+ "log-name-renameuser": "Regjistri i riemërtimeve",
+ "logentry-renameuser-renameuser-legacier": "$1 riemëroi përdoruesin $4 në $5",
"renameuser-move-log": "Lëvizi faqen automatikisht kur riemëroi përdoruesin \"[[User:$1|$1]]\" në \"[[User:$2|$2]]\"",
"action-renameuser": "riemëro përdoruesit",
"right-renameuser": "Riemëroni përdorueset",
diff --git a/extensions/Renameuser/i18n/yi.json b/extensions/Renameuser/i18n/yi.json
index d26d51d8..e2080772 100644
--- a/extensions/Renameuser/i18n/yi.json
+++ b/extensions/Renameuser/i18n/yi.json
@@ -28,6 +28,9 @@
"renameuser-page-moved": "דער בלאַט $1 איז געווארן באַוועגט צו $2.",
"renameuser-page-unmoved": "מען קען נישט באַוועגן דעם בלאַט $1 צו $2.",
"log-name-renameuser": "באַניצער נאָמען-טויש לאָג-בוך",
+ "log-description-renameuser": "דאָס איז אַ לאג פֿון ענדערונגען צו באַניצער נעמען.",
+ "logentry-renameuser-renameuser": "$1 {{GENDER:$2|האט געענדערט דעם נאמען}} פון באניצער $4 ({{PLURAL:$6|$6 רעדאקטירונג|$6 רעדאקטירונגען}}) צו $5",
+ "logentry-renameuser-renameuser-legacier": "$1 האט געענדערט באניצער נאמען $4 צו $5",
"renameuser-move-log": "אויטאמאַטיש באַוועגט בלאַט דורך ענדערן באַניצער־נאָמען פֿון \"[[User:$1|$1]]\" צו \"[[User:$2|$2]]\"",
"action-renameuser": "בײַטן באַניצער נעמען",
"right-renameuser": "בײַטן באַניצער נעמען",
diff --git a/extensions/Renameuser/phpcs.xml b/extensions/Renameuser/phpcs.xml
new file mode 100644
index 00000000..d81a2927
--- /dev/null
+++ b/extensions/Renameuser/phpcs.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<ruleset>
+ <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
+ <file>.</file>
+ <arg name="extensions" value="php,php5,inc"/>
+ <arg name="encoding" value="utf8"/>
+ <exclude-pattern>vendor</exclude-pattern>
+</ruleset>
diff --git a/extensions/Renameuser/renameUserCleanup.php b/extensions/Renameuser/renameUserCleanup.php
index 25c4a1fd..180add11 100644
--- a/extensions/Renameuser/renameUserCleanup.php
+++ b/extensions/Renameuser/renameUserCleanup.php
@@ -27,12 +27,13 @@ $IP = getenv( 'MW_INSTALL_PATH' );
if ( $IP === false ) {
$IP = __DIR__ . '/../..';
}
-require_once( "$IP/maintenance/Maintenance.php" );
+require_once "$IP/maintenance/Maintenance.php";
class RenameUserCleanup extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription = "Maintenance script to finish incomplete rename user, in particular to reassign edits that were missed";
+ $this->mDescription = 'Maintenance script to finish incomplete rename user, ' .
+ 'in particular to reassign edits that were missed';
$this->addOption( 'olduser', 'Old user name', true, true );
$this->addOption( 'newuser', 'New user name', true, true );
$this->addOption( 'olduid', 'Old user id in revision records (DANGEROUS)', false, true );
@@ -53,9 +54,9 @@ class RenameUserCleanup extends Maintenance {
}
$this->doUpdates( $olduser, $newuser, $newuser->getId() );
$this->doUpdates( $olduser, $newuser, 0 );
-
+
print "Done!\n";
- exit(0);
+ exit( 0 );
}
/**
@@ -64,19 +65,19 @@ class RenameUserCleanup extends Maintenance {
*/
public function checkUserExistence( $olduser, $newuser ) {
if ( !$newuser->getId() ) {
- $this->error( "No such user: " . $this->getOption( 'newuser' ), true );
- exit(1);
+ $this->error( 'No such user: ' . $this->getOption( 'newuser' ), true );
+ exit( 1 );
}
- if ($olduser->getId() ) {
- print "WARNING!!: Old user still exists: " . $this->getOption( 'olduser' ) . "\n";
+ if ( $olduser->getId() ) {
+ print 'WARNING!!: Old user still exists: ' . $this->getOption( 'olduser' ) . "\n";
print "proceed anyways? We'll only re-attribute edits that have the new user uid (or 0)";
- print " or the uid specified by the caller, and the old user name. [N/y] ";
- $stdin = fopen ("php://stdin","rt");
- $line = fgets($stdin);
- fclose($stdin);
- if ( $line[0] != "Y" && $line[0] != "y" ) {
+ print ' or the uid specified by the caller, and the old user name. [N/y] ';
+ $stdin = fopen( 'php://stdin', 'rt' );
+ $line = fgets( $stdin );
+ fclose( $stdin );
+ if ( $line[0] !== 'Y' && $line[0] !== 'y' ) {
print "Exiting at user's request\n";
- exit(0);
+ exit( 0 );
}
}
}
@@ -92,50 +93,55 @@ class RenameUserCleanup extends Maintenance {
$result = $dbr->select( 'logging', '*',
array( 'log_type' => 'renameuser',
- 'log_action' => 'renameuser',
+ 'log_action' => 'renameuser',
'log_namespace' => NS_USER,
- 'log_title' => $oldTitle->getDBkey(),
- 'log_params' => $newuser->getName()
- ),
+ 'log_title' => $oldTitle->getDBkey(),
+ 'log_params' => $newuser->getName()
+ ),
__METHOD__
);
- if (! $result || ! $result->numRows() ) {
+ if ( !$result || !$result->numRows() ) {
// try the old format
$result = $dbr->select( 'logging', '*',
- array( 'log_type' => 'renameuser',
- 'log_action' => 'renameuser',
- 'log_namespace' => NS_USER,
- 'log_title' => $olduser->getName(),
- ),
+ array( 'log_type' => 'renameuser',
+ 'log_action' => 'renameuser',
+ 'log_namespace' => NS_USER,
+ 'log_title' => $olduser->getName(),
+ ),
__METHOD__
);
- if (! $result || ! $result->numRows() ) {
- print "No log entry found for a rename of ".$olduser->getName()." to ".$newuser->getName().", proceed anyways??? [N/y] ";
- $stdin = fopen ("php://stdin","rt");
- $line = fgets($stdin);
- fclose($stdin);
- if ( $line[0] != "Y" && $line[0] != "y" ) {
+ if ( !$result || !$result->numRows() ) {
+ print 'No log entry found for a rename of ' . $olduser->getName() .
+ ' to ' . $newuser->getName() . ', proceed anyways??? [N/y] ';
+ $stdin = fopen( 'php://stdin', 'rt' );
+ $line = fgets( $stdin );
+ fclose( $stdin );
+ if ( $line[0] !== 'Y' && $line[0] !== 'y' ) {
print "Exiting at user's request\n";
- exit(1);
+ exit( 1 );
}
} else {
foreach ( $result as $row ) {
- print "Found possible log entry of the rename, please check: ".$row->log_title." with comment ".$row->log_comment." on $row->log_timestamp\n";
+ print 'Found possible log entry of the rename, please check: ' .
+ $row->log_title . ' with comment ' . $row->log_comment .
+ " on $row->log_timestamp\n";
}
}
} else {
foreach ( $result as $row ) {
- print "Found log entry of the rename: ".$olduser->getName()." to ".$newuser->getName()." on $row->log_timestamp\n";
+ print 'Found log entry of the rename: ' . $olduser->getName() .
+ ' to ' . $newuser->getName() . " on $row->log_timestamp\n";
}
}
- if ($result && $result->numRows() > 1) {
- print "More than one rename entry found in the log, not sure what to do. Continue anyways? [N/y] ";
- $stdin = fopen ("php://stdin","rt");
- $line = fgets($stdin);
- fclose($stdin);
- if ( $line[0] != "Y" && $line[0] != "y" ) {
+ if ( $result && $result->numRows() > 1 ) {
+ print 'More than one rename entry found in the log, not sure ' .
+ 'what to do. Continue anyways? [N/y] ';
+ $stdin = fopen( 'php://stdin', 'rt' );
+ $line = fgets( $stdin );
+ fclose( $stdin );
+ if ( $line[0] !== 'Y' && $line[0] !== 'y' ) {
print "Exiting at user's request\n";
- exit(1);
+ exit( 1 );
}
}
}
@@ -146,12 +152,18 @@ class RenameUserCleanup extends Maintenance {
* @param $uid
*/
public function doUpdates( $olduser, $newuser, $uid ) {
- $this->updateTable( 'revision', 'rev_user_text', 'rev_user', 'rev_timestamp', $olduser, $newuser, $uid );
- $this->updateTable( 'archive', 'ar_user_text', 'ar_user', 'ar_timestamp', $olduser, $newuser, $uid );
- $this->updateTable( 'logging', 'log_user_text', 'log_user', 'log_timestamp', $olduser, $newuser, $uid );
- $this->updateTable( 'image', 'img_user_text', 'img_user', 'img_timestamp', $olduser, $newuser, $uid );
- $this->updateTable( 'oldimage', 'oi_user_text', 'oi_user', 'oi_timestamp', $olduser, $newuser, $uid );
- $this->updateTable( 'filearchive', 'fa_user_text','fa_user', 'fa_timestamp', $olduser, $newuser, $uid );
+ $this->updateTable( 'revision', 'rev_user_text', 'rev_user', 'rev_timestamp',
+ $olduser, $newuser, $uid );
+ $this->updateTable( 'archive', 'ar_user_text', 'ar_user', 'ar_timestamp',
+ $olduser, $newuser, $uid );
+ $this->updateTable( 'logging', 'log_user_text', 'log_user', 'log_timestamp',
+ $olduser, $newuser, $uid );
+ $this->updateTable( 'image', 'img_user_text', 'img_user', 'img_timestamp',
+ $olduser, $newuser, $uid );
+ $this->updateTable( 'oldimage', 'oi_user_text', 'oi_user', 'oi_timestamp',
+ $olduser, $newuser, $uid );
+ $this->updateTable( 'filearchive', 'fa_user_text', 'fa_user', 'fa_timestamp',
+ $olduser, $newuser, $uid );
}
/**
@@ -164,56 +176,63 @@ class RenameUserCleanup extends Maintenance {
* @param $uid
* @return int
*/
- public function updateTable( $table, $usernamefield, $useridfield, $timestampfield, $olduser, $newuser, $uid ) {
+ public function updateTable( $table, $usernamefield, $useridfield,
+ $timestampfield, $olduser, $newuser, $uid
+ ) {
$dbw = wfGetDB( DB_MASTER );
$contribs = $dbw->selectField( $table, 'count(*)',
array( $usernamefield => $olduser->getName(), $useridfield => $uid ), __METHOD__ );
- if ( $contribs == 0 ) {
- print "No edits to be re-attributed from table $table for uid $uid\n" ;
- return(0);
+ if ( $contribs === 0 ) {
+ print "No edits to be re-attributed from table $table for uid $uid\n";
+
+ return ( 0 );
}
print "Found $contribs edits to be re-attributed from table $table for uid $uid\n";
- if ( $uid != $newuser->getId() ) {
- print "If you proceed, the uid field will be set to that of the new user name (i.e. ".$newuser->getId().") in these rows.\n";
+ if ( $uid !== $newuser->getId() ) {
+ print 'If you proceed, the uid field will be set to that ' .
+ 'of the new user name (i.e. ' . $newuser->getId() . ") in these rows.\n";
}
- print "Proceed? [N/y] ";
- $stdin = fopen ("php://stdin","rt");
- $line = fgets($stdin);
- fclose($stdin);
- if ( $line[0] != "Y" && $line[0] != "y" ) {
+ print 'Proceed? [N/y] ';
+ $stdin = fopen( 'php://stdin', 'rt' );
+ $line = fgets( $stdin );
+ fclose( $stdin );
+ if ( $line[0] !== 'Y' && $line[0] !== 'y' ) {
print "Skipping at user's request\n";
- return(0);
+
+ return ( 0 );
}
$selectConds = array( $usernamefield => $olduser->getName(), $useridfield => $uid );
$updateFields = array( $usernamefield => $newuser->getName(), $useridfield => $newuser->getId() );
while ( $contribs > 0 ) {
- print "Doing batch of up to approximately ".$this->mBatchSize."\n";
- print "Do this batch? [N/y] ";
- $stdin = fopen ("php://stdin","rt");
- $line = fgets($stdin);
- fclose($stdin);
- if ( $line[0] != "Y" && $line[0] != "y" ) {
+ print 'Doing batch of up to approximately ' . $this->mBatchSize . "\n";
+ print 'Do this batch? [N/y] ';
+ $stdin = fopen( 'php://stdin', 'rt' );
+ $line = fgets( $stdin );
+ fclose( $stdin );
+ if ( $line[0] !== 'Y' && $line[0] !== 'y' ) {
print "Skipping at user's request\n";
- return(0);
+
+ return ( 0 );
}
$dbw->begin();
- $result = $dbw->select( $table, $timestampfield, $selectConds , __METHOD__,
- array( 'ORDER BY' => $timestampfield.' DESC', 'LIMIT' => $this->mBatchSize ) );
- if (! $result) {
+ $result = $dbw->select( $table, $timestampfield, $selectConds, __METHOD__,
+ array( 'ORDER BY' => $timestampfield . ' DESC', 'LIMIT' => $this->mBatchSize ) );
+ if ( !$result ) {
print "There were rows for updating but now they are gone. Skipping.\n";
$dbw->rollback();
- return(0);
+
+ return ( 0 );
}
- $result->seek($result->numRows() -1 );
+ $result->seek( $result->numRows() - 1 );
$row = $result->fetchObject();
$timestamp = $row->$timestampfield;
- $updateCondsWithTime = array_merge( $selectConds, array ("$timestampfield >= $timestamp") );
+ $updateCondsWithTime = array_merge( $selectConds, array( "$timestampfield >= $timestamp" ) );
$success = $dbw->update( $table, $updateFields, $updateCondsWithTime, __METHOD__ );
if ( $success ) {
$rowsDone = $dbw->affectedRows();
@@ -221,16 +240,17 @@ class RenameUserCleanup extends Maintenance {
} else {
print "Problem with the update, rolling back and exiting\n";
$dbw->rollback();
- exit(1);
+ exit( 1 );
}
- //$contribs = User::edits( $olduser->getId() );
+
+ // $contribs = User::edits( $olduser->getId() );
$contribs = $dbw->selectField( $table, 'count(*)', $selectConds, __METHOD__ );
print "Updated $rowsDone edits; $contribs edits remaining to be re-attributed\n";
}
- return(0);
- }
+ return ( 0 );
+ }
}
-$maintClass = "RenameUserCleanup";
-require_once( RUN_MAINTENANCE_IF_MAIN );
+$maintClass = 'RenameUserCleanup';
+require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/extensions/Renameuser/specials/SpecialRenameuser.php b/extensions/Renameuser/specials/SpecialRenameuser.php
index c8b2a538..f33c391a 100644
--- a/extensions/Renameuser/specials/SpecialRenameuser.php
+++ b/extensions/Renameuser/specials/SpecialRenameuser.php
@@ -13,8 +13,9 @@ class SpecialRenameuser extends SpecialPage {
* Show the special page
*
* @param mixed $par Parameter passed to the page
- * @throws UserBlockedError|PermissionsError
- * @return void
+ * @throws PermissionsError
+ * @throws ReadOnlyError
+ * @throws UserBlockedError
*/
public function execute( $par ) {
global $wgContLang, $wgCapitalLinks;
@@ -30,62 +31,74 @@ class SpecialRenameuser extends SpecialPage {
}
if ( wfReadOnly() ) {
- $out->readOnlyPage();
- return;
+ throw new ReadOnlyError;
}
- if( $user->isBlocked() ){
+ if ( $user->isBlocked() ) {
throw new UserBlockedError( $this->getUser()->mBlock );
}
$request = $this->getRequest();
$showBlockLog = $request->getBool( 'submit-showBlockLog' );
- $oldnamePar = trim( str_replace( '_', ' ', $request->getText( 'oldusername', $par ) ) );
+ $usernames = explode( '/', $par, 2 ); // this works as "/" is not valid in usernames
+ $oldnamePar = trim( str_replace( '_', ' ', $request->getText( 'oldusername', $usernames[0] ) ) );
$oldusername = Title::makeTitle( NS_USER, $oldnamePar );
- // Force uppercase of newusername, otherwise wikis with wgCapitalLinks=false can create lc usernames
- $newusername = Title::makeTitleSafe( NS_USER, $wgContLang->ucfirst( $request->getText( 'newusername' ) ) );
+ $newnamePar = isset( $usernames[1] ) ? $usernames[1] : null;
+ $newnamePar = trim( str_replace( '_', ' ', $request->getText( 'newusername', $newnamePar ) ) );
+ // Force uppercase of newusername, otherwise wikis
+ // with wgCapitalLinks=false can create lc usernames
+ $newusername = Title::makeTitleSafe( NS_USER, $wgContLang->ucfirst( $newnamePar ) );
$oun = is_object( $oldusername ) ? $oldusername->getText() : '';
$nun = is_object( $newusername ) ? $newusername->getText() : '';
$token = $user->getEditToken();
$reason = $request->getText( 'reason' );
- $move_checked = $request->getBool( 'movepages', !$request->wasPosted());
+ $move_checked = $request->getBool( 'movepages', !$request->wasPosted() );
$suppress_checked = $request->getCheck( 'suppressredirect' );
$warnings = array();
- if ( $oun && $nun && !$request->getCheck( 'confirmaction' ) ) {
+ if ( $oun && $nun && !$request->getCheck( 'confirmaction' ) ) {
Hooks::run( 'RenameUserWarning', array( $oun, $nun, &$warnings ) );
}
$out->addHTML(
- Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getPageTitle()->getLocalUrl(), 'id' => 'renameuser' ) ) .
+ Xml::openElement( 'form', array(
+ 'method' => 'post',
+ 'action' => $this->getPageTitle()->getLocalURL(),
+ 'id' => 'renameuser'
+ ) ) .
Xml::openElement( 'fieldset' ) .
Xml::element( 'legend', null, $this->msg( 'renameuser' )->text() ) .
Xml::openElement( 'table', array( 'id' => 'mw-renameuser-table' ) ) .
"<tr>
<td class='mw-label'>" .
- Xml::label( $this->msg( 'renameuserold' )->text(), 'oldusername' ) .
- "</td>
+ Xml::label( $this->msg( 'renameuserold' )->text(), 'oldusername' ) .
+ "</td>
<td class='mw-input'>" .
- Xml::input( 'oldusername', 20, $oun, array( 'type' => 'text', 'tabindex' => '1' ) ) . ' ' .
- "</td>
+ Xml::input( 'oldusername', 20, $oun, array( 'type' => 'text', 'tabindex' => '1' ) ) . ' ' .
+ "</td>
</tr>
<tr>
<td class='mw-label'>" .
- Xml::label( $this->msg( 'renameusernew' )->text(), 'newusername' ) .
- "</td>
+ Xml::label( $this->msg( 'renameusernew' )->text(), 'newusername' ) .
+ "</td>
<td class='mw-input'>" .
- Xml::input( 'newusername', 20, $nun, array( 'type' => 'text', 'tabindex' => '2' ) ) .
- "</td>
+ Xml::input( 'newusername', 20, $nun, array( 'type' => 'text', 'tabindex' => '2' ) ) .
+ "</td>
</tr>
<tr>
<td class='mw-label'>" .
- Xml::label( $this->msg( 'renameuserreason' )->text(), 'reason' ) .
- "</td>
+ Xml::label( $this->msg( 'renameuserreason' )->text(), 'reason' ) .
+ "</td>
<td class='mw-input'>" .
- Xml::input( 'reason', 40, $reason, array( 'type' => 'text', 'tabindex' => '3', 'maxlength' => 255 ) ) .
- "</td>
- </tr>"
+ Xml::input(
+ 'reason',
+ 40,
+ $reason,
+ array( 'type' => 'text', 'tabindex' => '3', 'maxlength' => 255 )
+ ) .
+ '</td>
+ </tr>'
);
if ( $user->isAllowed( 'move' ) ) {
$out->addHTML( "
@@ -93,10 +106,10 @@ class SpecialRenameuser extends SpecialPage {
<td>&#160;
</td>
<td class='mw-input'>" .
- Xml::checkLabel( $this->msg( 'renameusermove' )->text(), 'movepages', 'movepages',
- $move_checked, array( 'tabindex' => '4' ) ) .
- "</td>
- </tr>"
+ Xml::checkLabel( $this->msg( 'renameusermove' )->text(), 'movepages', 'movepages',
+ $move_checked, array( 'tabindex' => '4' ) ) .
+ '</td>
+ </tr>'
);
if ( $user->isAllowed( 'suppressredirect' ) ) {
@@ -105,15 +118,15 @@ class SpecialRenameuser extends SpecialPage {
<td>&#160;
</td>
<td class='mw-input'>" .
- Xml::checkLabel(
- $this->msg( 'renameusersuppress' )->text(),
- 'suppressredirect',
- 'suppressredirect',
- $suppress_checked,
- array( 'tabindex' => '5' )
- ) .
- "</td>
- </tr>"
+ Xml::checkLabel(
+ $this->msg( 'renameusersuppress' )->text(),
+ 'suppressredirect',
+ 'suppressredirect',
+ $suppress_checked,
+ array( 'tabindex' => '5' )
+ ) .
+ '</td>
+ </tr>'
);
}
}
@@ -130,25 +143,25 @@ class SpecialRenameuser extends SpecialPage {
<td class='mw-label'>" . $this->msg( 'renameuserwarnings' )->escaped() . "
</td>
<td class='mw-input'>" .
- '<ul style="color: red; font-weight: bold"><li>' .
- implode( '</li><li>', $warningsHtml ) . '</li></ul>' .
- "</td>
- </tr>"
+ '<ul style="color: red; font-weight: bold"><li>' .
+ implode( '</li><li>', $warningsHtml ) . '</li></ul>' .
+ '</td>
+ </tr>'
);
$out->addHTML( "
<tr>
<td>&#160;
</td>
<td class='mw-input'>" .
- Xml::checkLabel(
- $this->msg( 'renameuserconfirm' )->text(),
- 'confirmaction',
- 'confirmaction',
- false,
- array( 'tabindex' => '6' )
- ) .
- "</td>
- </tr>"
+ Xml::checkLabel(
+ $this->msg( 'renameuserconfirm' )->text(),
+ 'confirmaction',
+ 'confirmaction',
+ false,
+ array( 'tabindex' => '6' )
+ ) .
+ '</td>
+ </tr>'
);
}
$out->addHTML( "
@@ -156,25 +169,25 @@ class SpecialRenameuser extends SpecialPage {
<td>&#160;
</td>
<td class='mw-submit'>" .
- Xml::submitButton(
- $this->msg( 'renameusersubmit' )->text(),
- array(
- 'name' => 'submit',
- 'tabindex' => '7',
- 'id' => 'submit'
- )
- ) .
- ' ' .
- Xml::submitButton(
- $this->msg( 'renameuser-submit-blocklog' )->text(),
- array (
- 'name' => 'submit-showBlockLog',
- 'id' => 'submit-showBlockLog',
- 'tabindex' => '8'
- )
- ) .
- "</td>
- </tr>" .
+ Xml::submitButton(
+ $this->msg( 'renameusersubmit' )->text(),
+ array(
+ 'name' => 'submit',
+ 'tabindex' => '7',
+ 'id' => 'submit'
+ )
+ ) .
+ ' ' .
+ Xml::submitButton(
+ $this->msg( 'renameuser-submit-blocklog' )->text(),
+ array(
+ 'name' => 'submit-showBlockLog',
+ 'id' => 'submit-showBlockLog',
+ 'tabindex' => '8'
+ )
+ ) .
+ '</td>
+ </tr>' .
Xml::closeElement( 'table' ) .
Xml::closeElement( 'fieldset' ) .
Html::hidden( 'token', $token ) .
@@ -183,7 +196,8 @@ class SpecialRenameuser extends SpecialPage {
// Show block log if requested
if ( $showBlockLog && is_object( $oldusername ) ) {
- $this->showLogExtract( $oldusername, 'block', $out ) ;
+ $this->showLogExtract( $oldusername, 'block', $out );
+
return;
}
@@ -195,17 +209,21 @@ class SpecialRenameuser extends SpecialPage {
return;
} elseif ( !$request->wasPosted() || !$user->matchEditToken( $request->getVal( 'token' ) ) ) {
$out->wrapWikiMsg( "<div class=\"errorbox\">$1</div>", 'renameuser-error-request' );
+
return;
} elseif ( !is_object( $oldusername ) ) {
$out->wrapWikiMsg( "<div class=\"errorbox\">$1</div>",
array( 'renameusererrorinvalid', $request->getText( 'oldusername' ) ) );
+
return;
} elseif ( !is_object( $newusername ) ) {
$out->wrapWikiMsg( "<div class=\"errorbox\">$1</div>",
array( 'renameusererrorinvalid', $request->getText( 'newusername' ) ) );
+
return;
- } elseif ( $oldusername->getText() == $newusername->getText() ) {
+ } elseif ( $oldusername->getText() === $newusername->getText() ) {
$out->wrapWikiMsg( "<div class=\"errorbox\">$1</div>", 'renameuser-error-same-user' );
+
return;
}
@@ -217,11 +235,13 @@ class SpecialRenameuser extends SpecialPage {
if ( !is_object( $olduser ) ) {
$out->wrapWikiMsg( "<div class=\"errorbox\">$1</div>",
array( 'renameusererrorinvalid', $oldusername->getText() ) );
+
return;
}
if ( !is_object( $newuser ) || !User::isCreatableName( $newuser->getName() ) ) {
$out->wrapWikiMsg( "<div class=\"errorbox\">$1</div>",
array( 'renameusererrorinvalid', $newusername->getText() ) );
+
return;
}
@@ -247,20 +267,25 @@ class SpecialRenameuser extends SpecialPage {
$uid = $olduser->idForName();
}
- if ( $uid == 0 ) {
+ if ( $uid === 0 ) {
$out->wrapWikiMsg( "<div class=\"errorbox\">$1</div>",
array( 'renameusererrordoesnotexist', $oldusername->getText() ) );
+
return;
}
- if ( $newuser->idForName() != 0 ) {
+ if ( $newuser->idForName() !== 0 ) {
$out->wrapWikiMsg( "<div class=\"errorbox\">$1</div>",
array( 'renameusererrorexists', $newusername->getText() ) );
+
return;
}
// Give other affected extensions a chance to validate or abort
- if ( !Hooks::run( 'RenameUserAbort', array( $uid, $oldusername->getText(), $newusername->getText() ) ) ) {
+ if ( !Hooks::run(
+ 'RenameUserAbort',
+ array( $uid, $oldusername->getText(), $newusername->getText() )
+ ) ) {
return;
}
@@ -278,7 +303,7 @@ class SpecialRenameuser extends SpecialPage {
// If this user is renaming his/herself, make sure that Title::moveTo()
// doesn't make a bunch of null move edits under the old name!
- if ( $user->getId() == $uid ) {
+ if ( $user->getId() === $uid ) {
$user->setName( $newusername->getText() );
}
@@ -292,7 +317,7 @@ class SpecialRenameuser extends SpecialPage {
array(
'page_namespace IN (' . NS_USER . ',' . NS_USER_TALK . ')',
'(page_title ' . $dbr->buildLike( $oldusername->getDBkey() . '/', $dbr->anyString() ) .
- ' OR page_title = ' . $dbr->addQuotes( $oldusername->getDBkey() ) . ')'
+ ' OR page_title = ' . $dbr->addQuotes( $oldusername->getDBkey() ) . ')'
),
__METHOD__
);
@@ -312,20 +337,20 @@ class SpecialRenameuser extends SpecialPage {
if ( $newPage->exists() && !$oldPage->isValidMoveTarget( $newPage ) ) {
$link = Linker::linkKnown( $newPage );
$output .= Html::rawElement(
- 'li',
- array( 'class' => 'mw-renameuser-pe' ),
- wfMessage( 'renameuser-page-exists' )->rawParams( $link )->escaped()
- );
+ 'li',
+ array( 'class' => 'mw-renameuser-pe' ),
+ $this->msg( 'renameuser-page-exists' )->rawParams( $link )->escaped()
+ );
} else {
$success = $oldPage->moveTo(
- $newPage,
- false,
- wfMessage(
- 'renameuser-move-log',
- $oldusername->getText(),
- $newusername->getText() )->inContentLanguage()->text(),
- !$suppressRedirect
- );
+ $newPage,
+ false,
+ $this->msg(
+ 'renameuser-move-log',
+ $oldusername->getText(),
+ $newusername->getText() )->inContentLanguage()->text(),
+ !$suppressRedirect
+ );
if ( $success === true ) {
# oldPage is not known in case of redirect suppression
$oldLink = Linker::link( $oldPage, null, array(), array( 'redirect' => 'no' ) );
@@ -334,17 +359,17 @@ class SpecialRenameuser extends SpecialPage {
$newLink = Linker::linkKnown( $newPage );
$output .= Html::rawElement(
- 'li',
- array( 'class' => 'mw-renameuser-pm' ),
- wfMessage( 'renameuser-page-moved' )->rawParams( $oldLink, $newLink )->escaped()
- );
+ 'li',
+ array( 'class' => 'mw-renameuser-pm' ),
+ $this->msg( 'renameuser-page-moved' )->rawParams( $oldLink, $newLink )->escaped()
+ );
} else {
$oldLink = Linker::linkKnown( $oldPage );
$newLink = Linker::link( $newPage );
$output .= Html::rawElement(
- 'li', array( 'class' => 'mw-renameuser-pu' ),
- wfMessage( 'renameuser-page-unmoved' )->rawParams( $oldLink, $newLink )->escaped()
- );
+ 'li', array( 'class' => 'mw-renameuser-pu' ),
+ $this->msg( 'renameuser-page-unmoved' )->rawParams( $oldLink, $newLink )->escaped()
+ );
}
}
}
@@ -363,7 +388,7 @@ class SpecialRenameuser extends SpecialPage {
* @param $type
* @param $out OutputPage
*/
- function showLogExtract( $username, $type, &$out ) {
+ protected function showLogExtract( $username, $type, &$out ) {
# Show relevant lines from the logs:
$logPage = new LogPage( $type );
$out->addHTML( Xml::element( 'h2', null, $logPage->getName()->text() ) . "\n" );