[MediaWiki-commits] [Gerrit] Redirect phabricator.mediawiki.org - change (operations/puppet)

2016-06-08 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: Redirect phabricator.mediawiki.org
..

Redirect phabricator.mediawiki.org

When we used Bugzilla, bugzilla.mediawiki.org redirected
bugzilla.wikimedia.org, as did bugzilla.wikipedia.org.
This made it easier for people that were unfamilliar with the difference
between the various project names to report bugs.

This commit reintroduces these redirects, but for Phabricator.

Bug: T137252
Change-Id: Ie412c8d1f4c1661f04d69c83cc3f96909bbb3fc7
---
M modules/mediawiki/files/apache/sites/redirects.conf
M modules/mediawiki/files/apache/sites/redirects/redirects.dat
2 files changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/64/293464/1

diff --git a/modules/mediawiki/files/apache/sites/redirects.conf 
b/modules/mediawiki/files/apache/sites/redirects.conf
index 2f71613..41b9d2b 100644
--- a/modules/mediawiki/files/apache/sites/redirects.conf
+++ b/modules/mediawiki/files/apache/sites/redirects.conf
@@ -278,6 +278,8 @@
ServerAlias bugzilla.wikipedia.org
ServerAlias bugs.mediawiki.org
ServerAlias bugzilla.mediawiki.org
+   ServerAlias phabricator.mediawiki.org
+   ServerAlias phabricator.wikipedia.org
ServerAlias wiki.mediawiki.org
ServerAlias doc.mediawiki.org
ServerAlias integration.mediawiki.org
@@ -758,6 +760,12 @@
# rewrite   bugzilla.mediawiki.org  https://bugzilla.wikimedia.org
RewriteCond %{HTTP_HOST} =bugzilla.mediawiki.org
RewriteRule ^[^\x00-\x1F]* https://bugzilla.wikimedia.org$0 [R=301,L,NE]
+   # rewrite   phabricator.mediawiki.org //phabricator.wikimedia.org
+   RewriteCond %{HTTP_HOST} =phabricator.mediawiki.org
+   RewriteRule ^[^\x00-\x1F]* 
%{ENV:RW_PROTO}://phabricator.wikimedia.org$0 [R=301,L,NE]
+   # rewrite   phabricator.wikipedia.org //phabricator.wikimedia.org
+   RewriteCond %{HTTP_HOST} =phabricator.wikipedia.org
+   RewriteRule ^[^\x00-\x1F]* 
%{ENV:RW_PROTO}://phabricator.wikimedia.org$0 [R=301,L,NE]
# rewrite   wiki.mediawiki.org  //www.mediawiki.org
RewriteCond %{HTTP_HOST} =wiki.mediawiki.org
RewriteRule ^[^\x00-\x1F]* %{ENV:RW_PROTO}://www.mediawiki.org$0 
[R=301,L,NE]
diff --git a/modules/mediawiki/files/apache/sites/redirects/redirects.dat 
b/modules/mediawiki/files/apache/sites/redirects/redirects.dat
index c03d135..446282e 100644
--- a/modules/mediawiki/files/apache/sites/redirects/redirects.dat
+++ b/modules/mediawiki/files/apache/sites/redirects/redirects.dat
@@ -333,6 +333,10 @@
 rewritebugs.mediawiki.org  https://bugzilla.wikimedia.org
 rewritebugzilla.mediawiki.org  https://bugzilla.wikimedia.org
 
+# T137252
+rewritephabricator.mediawiki.org //phabricator.wikimedia.org
+rewritephabricator.wikipedia.org //phabricator.wikimedia.org
+
 rewrite*mediawiki.com  //www.mediawiki.org
 rewritewiki.mediawiki.org  //www.mediawiki.org
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie412c8d1f4c1661f04d69c83cc3f96909bbb3fc7
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] Replace in-line style for error class in warnings - change (mediawiki...Renameuser)

2016-02-17 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: Replace in-line style for error class in warnings
..

Replace in-line style for error class in warnings

This commit replaces the in-line, hard-coded style used when
representing warnings when renaming users with the shared .error
CSS class. This makes it easier for end-users to modify the look
of the messages, and ensures a uniform style across MediaWiki.

The previous hard-coded style is bright red and bold, whereas the
error class is a darker shade of red, and larger instead of bold.

Change-Id: I8ecc9eb4b023b036e86ef802e69be51490ef86f0
---
M specials/SpecialRenameuser.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Renameuser 
refs/changes/15/271315/1

diff --git a/specials/SpecialRenameuser.php b/specials/SpecialRenameuser.php
index 42aef35..2ed5219 100644
--- a/specials/SpecialRenameuser.php
+++ b/specials/SpecialRenameuser.php
@@ -149,7 +149,7 @@
" . $this->msg( 
'renameuserwarnings' )->escaped() . "

" .
-   '' .
+   '' .
implode( '', $warningsHtml ) . 
'' .
'
'

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8ecc9eb4b023b036e86ef802e69be51490ef86f0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Renameuser
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] correct spelling of "permanently" - change (mediawiki...DeletePagesForGood)

2015-10-19 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: correct spelling of "permanently"
..

correct spelling of "permanently"

Fix issue reported at https://translatewiki.net/w/i.php?oldid=6445832

Change-Id: I1217191be4aaad6cff18f7e3be68d64cfffb8079
---
M i18n/en.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DeletePagesForGood 
refs/changes/51/247251/1

diff --git a/i18n/en.json b/i18n/en.json
index 9df9c4f..cb5e364 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -3,7 +3,7 @@
"authors": []
},
"deletepagesforgood-extensionname": "DeletePagesForGood",
-   "deletepagesforgood-desc": "Allows users to delete pages permanetly 
from database by adding a new delete tab to each page.",
+   "deletepagesforgood-desc": "Allows users to delete pages permanently 
from database by adding a new delete tab to each page.",
"deletepagesforgood-delete_permanently": "Delete page permanently",
"deletepagesforgood-del_impossible": "This page can not be deleted 
permanently",
"deletepagesforgood-ask_deletion": "Are you sure, you want to delete 
this page permanently? All versions and log entries will be deleted. There is 
no chance to undo this process after completion.",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1217191be4aaad6cff18f7e3be68d64cfffb8079
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DeletePagesForGood
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] i18nize [[Special:RandomInCategory]] submit button - change (mediawiki/core)

2015-06-08 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: i18nize [[Special:RandomInCategory]] submit button
..

i18nize [[Special:RandomInCategory]] submit button

This commit fixes a regression caused by an earlier refactor of the
Special:RandomInCategory page, which introduced message reuse. This
commit splits the message again.

Bug: T101717
Change-Id: Iabfe172b2e1d8464262b244337789bca388460f8
---
M includes/specials/SpecialRandomInCategory.php
M languages/i18n/en.json
M languages/i18n/qqq.json
3 files changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/65/216765/1

diff --git a/includes/specials/SpecialRandomInCategory.php 
b/includes/specials/SpecialRandomInCategory.php
index b5c9e19..7e6043b 100644
--- a/includes/specials/SpecialRandomInCategory.php
+++ b/includes/specials/SpecialRandomInCategory.php
@@ -89,6 +89,10 @@
return false;
}
 
+   public function alterForm( $form ) {
+   $form->setSubmitTextMsg( 'randomincategory-submit' );
+   }
+
protected function setParameter( $par ) {
// if subpage present, fake form submission
$this->onSubmit( array( 'category' => $par ) );
diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index d632b9f..887d5fe 100644
--- a/languages/i18n/en.json
+++ b/languages/i18n/en.json
@@ -1576,6 +1576,7 @@
"randomincategory-nopages": "There are no pages in the 
[[:Category:$1|$1]] category.",
"randomincategory-category": "Category:",
"randomincategory-legend": "Random page in category",
+   "randomincategory-submit": "Go",
"randomredirect": "Random redirect",
"randomredirect-nopages": "There are no redirects in the namespace 
\"$1\".",
"statistics": "Statistics",
diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json
index cd2e0e2..e906f35 100644
--- a/languages/i18n/qqq.json
+++ b/languages/i18n/qqq.json
@@ -1746,6 +1746,7 @@
"randomincategory-nopages": "Message shown from 
[[Special:RandomInCategory]] if the category is empty.\n\nParameters:\n* $1 - 
the category name (without the namespace prefix)",
"randomincategory-category": "Shown on [[Special:RandomInCategory]] as 
a label for a text box allowing the user to input a category 
name.\n{{Identical|Category}}",
"randomincategory-legend": "Used as fieldset label for the form on 
[[Special:RandomInCategory]].",
+   "randomincategory-submit": "Used as label for the Submit button on 
[[Special:RandomInCategory]].\n{{Identical|Go}}",
"randomredirect": "{{doc-special|RandomRedirect}}",
"randomredirect-nopages": "Parameters:\n* $1 - list of namespaces\n* $2 
- (Unused) number of namespaces\nSee also:\n* {{msg-mw|Randompage-nopages}}",
"statistics": "{{doc-special|Statistics}}\n{{Identical|Statistics}}",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iabfe172b2e1d8464262b244337789bca388460f8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] remove "show block log for user" button - change (mediawiki...Renameuser)

2015-05-27 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: remove "show block log for user" button
..

remove "show block log for user" button

The "Show block log for user" button was created in response to bug 9315
(which is now T11315). The bug was created by an English Wikipedia
bureaucrat who wanted MediaWiki to alert if the user to be renamed was
currently blocked. This was implemented instead by showing a fragment of
the user's block log if a second "submit" button was clicked, which is
overengineered for the use case in question.

This commit removes the second button, which was probably rarely used,
and should probably have been a hyperlink. It replaces the functionality
with a warning: if someone attempts to rename a currently blocked user,
MediaWiki will now require a confirmation checkbox to be ticked, and to
submit the form a second time. This preserves the original intent of the
bug, whilst removing a rather suspect UI element.

Change-Id: I49f27ee7ff57b343fea82c4a93f75a22c1843f21
---
M i18n/en.json
M i18n/qqq.json
M specials/SpecialRenameuser.php
3 files changed, 6 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Renameuser 
refs/changes/23/214023/1

diff --git a/i18n/en.json b/i18n/en.json
index 40c7a11..97bce5d 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -16,7 +16,6 @@
 "renameuserwarnings": "Warnings:",
 "renameuserconfirm": "Yes, rename the user",
 "renameusersubmit": "Submit",
-"renameuser-submit-blocklog": "Show block log for user",
 "renameusererrordoesnotexist": "The user \"$1\" does not 
exist.",
 "renameusererrorexists": "The user \"$1\" already 
exists.",
 "renameusererrorinvalid": "The username \"$1\" is 
invalid.",
@@ -26,6 +25,7 @@
 "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.",
+   "renameuser-warning-currentblock": "User is currently blocked",
 "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",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 2ceff6e..38c242c 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -32,6 +32,7 @@
"renameusererrorexists": "Used as error message. Parameters:\n* $1 - 
username\nSee also:\n* {{msg-mw|Renameusererrordoesnotexist}}",
"renameusererrorinvalid": "Used as error message when renaming user in 
[[Special:Renameuser]]. Parameters:\n* $1 - old username, or new username",
"renameuser-error-request": "Used as error message when renaming user 
in [[Special:Renameuser]].",
+   "renameuser-warning-currentblock": "Displayed as a warning in 
[[Special:RenameUser]] before renaming a user that is currently blocked.",
"renameuser-error-same-user": "Used as error message when renaming user 
in [[Special:Renameuser]].",
"renameusersuccess": "Used as success message when renaming user in 
[[Special:Renameuser]]. Parameters:\n* $1 - old username\n* $2 - new username",
"renameuser-page-exists": "Used when renaming user in 
[[Special:Renameuser]]. Parameters:\n* $1 - new page title (with link)",
diff --git a/specials/SpecialRenameuser.php b/specials/SpecialRenameuser.php
index c8b2a53..ad343c4 100644
--- a/specials/SpecialRenameuser.php
+++ b/specials/SpecialRenameuser.php
@@ -39,7 +39,6 @@
}
 
$request = $this->getRequest();
-   $showBlockLog = $request->getBool( 'submit-showBlockLog' );
$oldnamePar = trim( str_replace( '_', ' ', $request->getText( 
'oldusername', $par ) ) );
$oldusername = Title::makeTitle( NS_USER, $oldnamePar );
// Force uppercase of newusername, otherwise wikis with 
wgCapitalLinks=false can create lc usernames
@@ -54,6 +53,10 @@
 
$warnings = array();
if ( $oun && $nun && !$request->getCheck( 'confirmaction' )  ) {
+   $oldU = User::newFromName( $oun );
+   if ( $oldU->isBlocked() ) {
+   $warnings[] = 'renameuser-warning-currentblock';
+   }
Hooks::run( 'RenameUserWarning', array( $oun, $nun, 
&$warnings ) );
}
 
@@ -165,14 +168,6 @@
)
) .
' ' .
-   Xml::submitButton(
-   $this->msg( 
'renameuser-submit-blocklog' )->text(),
-   

[MediaWiki-commits] [Gerrit] genericise example domains - change (mediawiki...PrivateDomains)

2015-05-26 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: genericise example domains
..

genericise example domains

Previously, the domain names used as examples in the interface were
associated with Stanford University. This commit changes the messages
to refer to domain names that are reserved for documentation purposes,
as defined in RFC 2606.

This change was requested on TranslateWiki.net at
Thread:Support/About_MediaWiki:Privatedomains-instructions/en (2).

Change-Id: I6403541318e08073c3e1dab892c382c8fcb95177
---
M i18n/en.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PrivateDomains 
refs/changes/83/213783/1

diff --git a/i18n/en.json b/i18n/en.json
index fe23d48..b9fdd85 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -11,6 +11,6 @@
 "privatedomains-invalidemail": "Sorry, access to this wiki is restricted 
to members of $1.\nIf you have an email address affiliated with $1, you can 
enter or reconfirm your email address on your [[Special:Preferences|account 
preference page]].\nYou can still view pages on this wiki, but you will be 
unable to edit.",
 "privatedomains-affiliatenamelabel": "Name of organization:",
 "privatedomains-emailadminlabel": "Contact username for access problems or 
queries:",
-"privatedomains-instructions": "Below is the list of email domains allowed 
for editors of this wiki.\nEach line designates an email suffix that is given 
access for editing.\nThis should be formatted with one suffix per line.\nFor 
example:cs.stanford.edustanfordalumni.org\nThis would allow edits 
from anyone with the email address whate...@cs.stanford.edu or 
whate...@stanfordalumni.org\nEnter the allowed domains in the text box 
below, and click \"save\".",
+"privatedomains-instructions": "Below is the list of email domains allowed 
for editors of this wiki.\nEach line designates an email suffix that is given 
access for editing.\nThis should be formatted with one suffix per line.\nFor 
example:example.commail.example.net\nThis would allow edits from 
anyone with the email address whate...@example.com or 
whate...@mail.example.net\nEnter the allowed domains in the text box below, 
and click \"save\".",
 "right-privatedomains": "Manage private domains"
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6403541318e08073c3e1dab892c382c8fcb95177
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PrivateDomains
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] remove apparently unused system messages - change (mediawiki...CommunityTwitter)

2015-05-25 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: remove apparently unused system messages
..

remove apparently unused system messages

This commit removes some system messages that appear to have been
removed in previous commits. For example, the characters remaining
message was removed in fc0e91aa1db91c2649438d4d074dbcc083e61f7f.

Note that I have not checked for the removal commit in all instances;
rather these do not appear if you grep for the keys within the current
revision. They certainly aren't used anywhere obvious.

Change-Id: I88755385623b889e9b55379f751c02232258572e
---
M i18n/en.json
M i18n/qqq.json
2 files changed, 1 insertion(+), 11 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CommunityTwitter 
refs/changes/92/213592/1

diff --git a/i18n/en.json b/i18n/en.json
index 840729a..30e68a4 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -4,19 +4,14 @@
 },
 "communitytwitter": "Community Twitter",
 "communitytwitter-desc": "Provides a special page, where authorized users 
are able to twitter via a community account without the need of giving away 
login credentials",
-"communitytwitter-no-db-connection": "No database connection possible.",
-"communitytwitter-no-db": "Database does not exist.",
-"communitytwitter-unknown-error": "Your account is not set up or an 
unknown error occurred.\n\nIn case you think you should have access, please 
contact an administrator.",
 "communitytwitter-connection-failure": "Connection to Twitter could not be 
established.",
 "communitytwitter-tweet-section-title": "Tweet!",
 "communitytwitter-logged-in-as": "Logged in as user 
'''{{GENDER:$1|$1}}'''.",
 "communitytwitter-update-success": "Status successfully updated",
 "communitytwitter-check-tweet": "see",
 "communitytwitter-unknown-error-request": "An error occurred during the 
communication with Twitter. Please contact your MediaWiki administrator for 
assistance.",
-"communitytwitter-tweet-too-long": "Tweets are limited to 140 characters.",
 "communitytwitter-deletion-success": "Tweet successfully deleted.",
 "communitytwitter-deletion-tweet-not-found": "A Tweet with the given ID 
does not exist.",
-"communitytwitter-remaining-chars": "Characters left",
 "communitytwitter-your-last-tweets": "Your last tweets",
 "communitytwitter-delete-tweet-title-tag": "Delete tweet",
 "communitytwitter-delete-tweet-link-name": "delete",
@@ -27,4 +22,4 @@
 "communitytwitter-access-error": "You do not have the necessary 
permissions to use Community Twitter. Use of Community Twitter is limited to 
users in {{PLURAL:$2|the group|one of the following groups}}: $1. See the 
[[$3|list of group rights]] or contact your MediaWiki administrator for more 
information.",
 "communitytwitter-userlinks-name": "Twitter",
 "right-twitter": "Use Twitter special page"
-}
\ No newline at end of file
+}
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 5d7d2ec..1a33185 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -10,19 +10,14 @@
},
"communitytwitter": "{{doc-special|CommunityTwitter}}",
"communitytwitter-desc": "{{desc|name=Community 
Twitter|url=https://www.mediawiki.org/wiki/Extension:Community_Twitter}}";,
-   "communitytwitter-no-db-connection": "Error message displayed when the 
extension is unable to connect to the database server.",
-   "communitytwitter-no-db": "Error message displayed when the database 
required by CommunityTwitter is not found.",
-   "communitytwitter-unknown-error": "Generic error message used for 
unknown error conditions when trying to access the extension.",
"communitytwitter-connection-failure": "Error message displayed when 
the Twitter API cannot be contacted.",
"communitytwitter-tweet-section-title": "Text used for title of section 
containing tweet form, verb meaning to send a tweet or to use Twitter.",
"communitytwitter-logged-in-as": "\"You are logged in as user\" text 
displayed on Twitter form.\n\nPreceded by the section heading 
{{msg-mw|Communitytwitter-tweet-section-title}}.\n\nParameters:\n* $1 - Twitter 
username",
"communitytwitter-update-success": "Message displayed when a tweet is 
successfully relayed to Twitter.\n\nFollowed by the link text 
{{msg-mw|Communitytwitter-check-tweet}}.",
"communitytwitter-check-tweet": "Verb that will link to the tweet that 
has just been sent.\n\nUsed as link text.\n\nPreceded by the success message 
{{msg-mw|Communitytwitter-update-success}}.",
"communitytwitter-unknown-error-request": "Error message displayed if 
there is a communications error with the Twitter API.",
-   "communitytwitter-tweet-too-long": "Text displayed when an entered 
tweet is too long (i.e., longer than 140 characters).",
"communitytwitter-deletion-s

[MediaWiki-commits] [Gerrit] allow the new username to be populated by subpage - change (mediawiki...Renameuser)

2015-05-25 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: allow the new username to be populated by subpage
..

allow the new username to be populated by subpage

Previously, [[Special:RenameUser/Foo]] prefilled the form with "Foo"
as the old username. This commit adds similar functionality for the
new username, so that [[Special:RenameUser/Foo/Bar]] will prefill
the form so that "Foo" is renamed to "Bar".

Change-Id: I5846e8548d8a10f3363ef45e00e9a791dd84063c
---
M specials/SpecialRenameuser.php
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Renameuser 
refs/changes/98/213498/1

diff --git a/specials/SpecialRenameuser.php b/specials/SpecialRenameuser.php
index c8b2a53..8fb7467 100644
--- a/specials/SpecialRenameuser.php
+++ b/specials/SpecialRenameuser.php
@@ -40,10 +40,12 @@
 
$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 );
+   $newnamePar = trim( str_replace( '_', ' ', $request->getText( 
'newusername', $usernames[1] ) ) );
// Force uppercase of newusername, otherwise wikis with 
wgCapitalLinks=false can create lc usernames
-   $newusername = Title::makeTitleSafe( NS_USER, 
$wgContLang->ucfirst( $request->getText( 'newusername' ) ) );
+   $newusername = Title::makeTitleSafe( NS_USER, 
$wgContLang->ucfirst( $request->getText( 'newusername', $usernames[1] ) ) );
$oun = is_object( $oldusername ) ? $oldusername->getText() : '';
$nun = is_object( $newusername ) ? $newusername->getText() : '';
$token = $user->getEditToken();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5846e8548d8a10f3363ef45e00e9a791dd84063c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Renameuser
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] allow the new username to be populated by subpage - change (mediawiki...Renameuser)

2015-05-25 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: allow the new username to be populated by subpage
..

allow the new username to be populated by subpage

Previously, [[Special:RenameUser/Foo]] prefilled the form with "Foo"
as the old username. This commit adds similar functionality for the
new username, so that [[Special:RenameUser/Foo/Bar]] will prefill
the form so that "Foo" is renamed to "Bar".

Change-Id: Ib0cd8b21339276f4f0e7f5d49d22401cce2dcd8f
---
M specials/SpecialRenameuser.php
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Renameuser 
refs/changes/84/213484/1

diff --git a/specials/SpecialRenameuser.php b/specials/SpecialRenameuser.php
index c8b2a53..8fb7467 100644
--- a/specials/SpecialRenameuser.php
+++ b/specials/SpecialRenameuser.php
@@ -40,10 +40,12 @@
 
$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 );
+   $newnamePar = trim( str_replace( '_', ' ', $request->getText( 
'newusername', $usernames[1] ) ) );
// Force uppercase of newusername, otherwise wikis with 
wgCapitalLinks=false can create lc usernames
-   $newusername = Title::makeTitleSafe( NS_USER, 
$wgContLang->ucfirst( $request->getText( 'newusername' ) ) );
+   $newusername = Title::makeTitleSafe( NS_USER, 
$wgContLang->ucfirst( $request->getText( 'newusername', $usernames[1] ) ) );
$oun = is_object( $oldusername ) ? $oldusername->getText() : '';
$nun = is_object( $newusername ) ? $newusername->getText() : '';
$token = $user->getEditToken();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib0cd8b21339276f4f0e7f5d49d22401cce2dcd8f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Renameuser
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] rephrase rename notification - change (mediawiki...CentralAuth)

2015-05-24 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: rephrase rename notification
..

rephrase rename notification

"Click here" sentence structures are proscribed. This commit rephrases
a message to avoid such a sentence.

c.f. [[mw:Localisation#Use_meaningful_link_anchors]]

Change-Id: I7d3af4e701f1b7a011a44a70fb361f33cf13f1fd
---
M i18n/en.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth 
refs/changes/59/213259/1

diff --git a/i18n/en.json b/i18n/en.json
index 1ce7df7..e21e992 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -155,7 +155,7 @@
"centralauth-admin-reason": "Reason:",
"centralauth-admin-reason-other": "Other/additional reason:",
"centralauth-admin-reason-other-select": "Other reason:",
-   "centralauth-admin-rename-in-progress" : "This account is currently 
being renamed. Click [[Special:GlobalRenameProgress/$1|here]] to see the 
current progress. The global rename log for this user is provided below.",
+   "centralauth-admin-rename-in-progress" : "This account is currently 
being renamed. You can [[Special:GlobalRenameProgress/$1|view the progress]] of 
the rename. The global rename log for this user is provided below.",
"centralauth-admin-unhide-nonexistent": "Error: the global account 
\"$1\" does not exist.",
"centralauth-admin-status": "Set global account status",
"centralauth-admin-status-intro": "You can use this form to change the 
status of this global account.",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7d3af4e701f1b7a011a44a70fb361f33cf13f1fd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] fix misleading admin-delete-description message - change (mediawiki...CentralAuth)

2015-05-24 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: fix misleading admin-delete-description message
..

fix misleading admin-delete-description message

This message was misleading, as global preferences aren't
a thing on Wikimedia projects yet. This commit rewords the
message that mentions them to remove the terminological
inexactitude.

Bug: T98390
Change-Id: I412b86bc3e1876b56a7809790cc1792d6ef9a0cc
---
M i18n/en.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth 
refs/changes/35/213235/1

diff --git a/i18n/en.json b/i18n/en.json
index 1ce7df7..d1c67e0 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -144,7 +144,7 @@
"centralauth-admin-already-unmerged": "Skipping $1, already unmerged",
"centralauth-admin-unmerge-success": "Successfully unmerged $1 
{{PLURAL:$1|account|accounts}}",
"centralauth-admin-delete-title": "Delete account",
-   "centralauth-admin-delete-description": "Deleting the global account 
will delete any global preferences, unattach all local accounts, and leave the 
global name free for another user to take.\nAll local accounts will continue to 
exist.\nThe passwords for local accounts created before the merge will revert 
to their pre-merge values.",
+   "centralauth-admin-delete-description": "Deleting the global account 
will unattach all local accounts, and leave the global name free for another 
user to take.\nAll local accounts will continue to exist.",
"centralauth-admin-delete-button": "Delete this account",
"centralauth-admin-delete-confirm": "Do you really want to delete this 
account?",
"centralauth-admin-delete-success": "Successfully deleted the global 
account for \"$1\"",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I412b86bc3e1876b56a7809790cc1792d6ef9a0cc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] Remove message reuse for "send thanks" - change (mediawiki...Thanks)

2015-05-24 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: Remove message reuse for "send thanks"
..

Remove message reuse for "send thanks"

Split the special page heading and the submit button into separate
messages. Previously, they used the same message key.

c.f. [[translatewiki:Thread:Support/About_MediaWiki:Thanks/en]].

Change-Id: I3611a0d7716ef3b0fd9d8b981a0445800906e039
---
M SpecialThanks.php
M i18n/en.json
M i18n/qqq.json
3 files changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Thanks 
refs/changes/25/213225/1

diff --git a/SpecialThanks.php b/SpecialThanks.php
index 96cd3ac..a4734a9 100644
--- a/SpecialThanks.php
+++ b/SpecialThanks.php
@@ -93,7 +93,7 @@
if ( $this->type === null || $this->type === 'rev' && $this->id 
=== '0' ) {
$form->suppressDefaultSubmit( true );
} else {
-   $form->setSubmitText( $this->msg( 'thanks' )->escaped() 
);
+   $form->setSubmitText( $this->msg( 'thanks-submit' 
)->escaped() );
}
}
 
diff --git a/i18n/en.json b/i18n/en.json
index 0f284e5..53e7733 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -18,6 +18,7 @@
"thanks-confirmation2": "{{GENDER:$1|Send}} public thanks for this 
edit?",
"thanks-thanked-notice": "$1 received your thanks for 
{{GENDER:$2|his|her|their}} edit.",
"thanks": "Send thanks",
+   "thanks-submit": "Send thanks",
"thanks-form-revid": "Revision ID for edit",
"echo-pref-subscription-edit-thank": "Thanks me for my edit",
"echo-pref-tooltip-edit-thank": "Notify me when someone thanks me for 
an edit I made.",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 4e86359..ffae8df 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -26,7 +26,8 @@
"thanks-thank-tooltip-yes": "Tooltip that appears when a user hovers 
over the \"Yes\" confirmation link (which confirms the thank action). 
Parameters:\n* $1 - The user sending the thanks.  Can be used for GENDER 
support.",
"thanks-confirmation2": "A confirmation message to make sure the user 
actually wants to send thanks to another user.\n\nParameters:\n* $1 - The user 
sending the thanks. Can be used for GENDER.\nSee also:\n* 
{{msg-mw|Thanks-confirmation-special}}",
"thanks-thanked-notice": "{{doc-singularthey}}\nPop-up message that is 
displayed after a user has thanked another user for their 
edit.\n\nParameters:\n* $1 - the username of the user that was thanked\n* $2 - 
the gender of the user that was thanked\nSee also:\n* 
{{msg-mw|Flow-thanks-thanked-notice}}",
-   "thanks": "{{doc-special|Thanks|unlisted=1}}\nThe special page contains 
the form to thank for the edit.",
+   "thanks": "{{doc-special|Thanks|unlisted=1}}\nThe special page contains 
the form to thank for the edit. {{Identical|Send thanks}}",
+   "thanks-submit": "The text of the submit button on the Special:Thanks 
page. {{Identical|Send thanks}}",
"thanks-form-revid": "Label for form field where the user inputs the 
revision ID.",
"echo-pref-subscription-edit-thank": "Option for getting notifications 
when someone thanks the user for their edit.\n\nThis is the conclusion of the 
sentence begun by the header: {{msg-mw|Prefs-echosubscriptions}}.",
"echo-pref-tooltip-edit-thank": "This is a short description of the 
edit-thank notification category.\n{{Related|Echo-pref-tooltip}}",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3611a0d7716ef3b0fd9d8b981a0445800906e039
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Thanks
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] add link description to wantedpages-summary - change (mediawiki/core)

2015-05-24 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: add link description to wantedpages-summary
..

add link description to wantedpages-summary

[[translatewiki:Thread:Support/About_MediaWiki:Wantedpages-summary/en]]

Change-Id: I0ee6fb312bf57be0a775e68553351b6094738d64
---
M languages/i18n/en.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/19/213219/1

diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index 48beacd..9ad4d55 100644
--- a/languages/i18n/en.json
+++ b/languages/i18n/en.json
@@ -1634,7 +1634,7 @@
"wantedcategories": "Wanted categories",
"wantedcategories-summary": "",
"wantedpages": "Wanted pages",
-   "wantedpages-summary": "List of non-existing pages with the most links 
to them, excluding pages which only have redirects linking to them. For a list 
of non-existent pages that have redirects linking to them, see 
[[{{#special:BrokenRedirects}}]].",
+   "wantedpages-summary": "List of non-existing pages with the most links 
to them, excluding pages which only have redirects linking to them. For a list 
of non-existent pages that have redirects linking to them, see 
[[{{#special:BrokenRedirects}}|the list of broken redirects]].",
"wantedpages-badtitle": "Invalid title in result set: $1",
"wantedfiles": "Wanted files",
"wantedfiles-summary": "",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0ee6fb312bf57be0a775e68553351b6094738d64
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] rephrase feedback button to be less ambiguous - change (mediawiki...VisualEditor)

2015-05-23 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: rephrase feedback button to be less ambiguous
..

rephrase feedback button to be less ambiguous

Rephrased "Leave feedback" to "Leave feedback about this software"
to make it clearer that we are talking about VisualEditor, not the
content of the article currently being edited.

Bug: T91804
Change-Id: I24a16ff5e07316abb16347ff76a5d466d6e62580
---
M modules/ve-wmf/i18n/en.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/51/212951/1

diff --git a/modules/ve-wmf/i18n/en.json b/modules/ve-wmf/i18n/en.json
index ec30d87..a812370 100644
--- a/modules/ve-wmf/i18n/en.json
+++ b/modules/ve-wmf/i18n/en.json
@@ -23,7 +23,7 @@
"tag-visualeditor-switched": 
"[[{{MediaWiki:visualeditor-descriptionpagelink}}|VisualEditor: Switched]]",
"tag-visualeditor-switched-description": "User started to edit using 
VisualEditor then changed to the wikitext editor.",
"visualeditor-feedback-link": "Project:VisualEditor\/Feedback",
-   "visualeditor-feedback-tool": "Leave feedback",
+   "visualeditor-feedback-tool": "Leave feedback about this software",
"visualeditor-help-label": "Read the user guide",
"visualeditor-help-link": 
"mw:Special:MyLanguage\/Help:VisualEditor\/User guide",
"visualeditor-help-title": "Guide for how to use the editor"

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I24a16ff5e07316abb16347ff76a5d466d6e62580
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] add an addHelpLink() example - change (mediawiki...examples)

2015-05-23 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: add an addHelpLink() example
..

add an addHelpLink() example

This commit adds an example of the new addHelpLink() functionality
introduced in MediaWiki 1.25. Because this is merely an example
extension, there is no actual help page for the special page in
question: as such we use the "How to become a MediaWiki hacker" page
as a placeholder.

Bug: T97619
Change-Id: I4d105a6b852359b3606f2a2f0077cfe2b604b65d
---
M BoilerPlate/specials/SpecialHelloWorld.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/examples 
refs/changes/06/212906/1

diff --git a/BoilerPlate/specials/SpecialHelloWorld.php 
b/BoilerPlate/specials/SpecialHelloWorld.php
index 61f537c..304dd90 100644
--- a/BoilerPlate/specials/SpecialHelloWorld.php
+++ b/BoilerPlate/specials/SpecialHelloWorld.php
@@ -22,6 +22,8 @@
 
$out->setPageTitle( $this->msg( 'boilerplate-helloworld' ) );
 
+   $out->addHelpLink( 'How to become a MediaWiki hacker' );
+
$out->addWikiMsg( 'boilerplate-helloworld-intro' );
}
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4d105a6b852359b3606f2a2f0077cfe2b604b65d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/examples
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] Display meaningful message for very old users - change (mediawiki...CentralAuth)

2015-03-14 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: Display meaningful message for very old users
..

Display meaningful message for very old users

Added a new interface message "centralauth-uwbr-registration-nodate"
that is displayed on Special:UsersWhoWillBeRenamed in place of the
registration date of an account when the date is not known (because
the account dates back to time immemorial).

Bug: T91839
Change-Id: I116c32530ac2985747fc5d7556f8cbb75fe2feee
---
M i18n/en.json
M i18n/qqq.json
M includes/specials/SpecialUsersWhoWillBeRenamed.php
3 files changed, 9 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth 
refs/changes/85/196785/1

diff --git a/i18n/en.json b/i18n/en.json
index 0c3c02c..2afa545 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -24,6 +24,7 @@
"Aaron Schulz",
"Peter Gehres",
"Raimond Spekking",
+   "Douglas Gardner",
"Brion Vibber"
]
},
@@ -535,6 +536,7 @@
"userswhowillberenamed": "Users who will be renamed",
"centralauth-uwbr-name": "User name",
"centralauth-uwbr-registration": "Registration date",
+   "centralauth-uwbr-registration-nodate": "< 2004",
"centralauth-uwbr-editcount": "Edit count",
"centralauth-uwbr-intro": "This page lists users registered with this 
wiki who will be renamed."
 }
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 44f6945..14e9c74 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -549,6 +549,7 @@
"userswhowillberenamed": "{{doc-special|UsersWhoWillBeRenamed}}",
"centralauth-uwbr-name": "Heading for column in 
table\n{{Identical|Username}}",
"centralauth-uwbr-registration": "Heading for column in table",
+   "centralauth-uwbr-registration-nodate": "Message displayed in place of 
a registration date when one has not been recorded (generally, because the 
account is very old)",
"centralauth-uwbr-editcount": "Heading for column in table",
"centralauth-uwbr-intro": "Text above table which lists users who will 
be renamed."
 }
diff --git a/includes/specials/SpecialUsersWhoWillBeRenamed.php 
b/includes/specials/SpecialUsersWhoWillBeRenamed.php
index 25642c0..8dc23ac 100644
--- a/includes/specials/SpecialUsersWhoWillBeRenamed.php
+++ b/includes/specials/SpecialUsersWhoWillBeRenamed.php
@@ -125,7 +125,12 @@
Linker::userToolLinksRedContribs( 
$user->getId(), $user->getName(), $user->getEditCount() );
break;
case 'user_registration':
-   $formatted = $this->formatDateTime( 
$user->getRegistration() );
+   $regdate = $user->getRegistration();
+   if ( $regdate === null ) {
+   $formatted = 
$this->msg('centralauth-uwbr-registration-nodate');
+   } else {
+   $formatted = $this->formatDateTime( 
$regdate );
+   }
break;
case 'user_editcount':
$formatted = $this->getLanguage()->formatNum( 
$user->getEditCount() );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I116c32530ac2985747fc5d7556f8cbb75fe2feee
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] change [[Special:Block]] to destructive - change (mediawiki/core)

2014-10-07 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: change [[Special:Block]] to destructive
..

change [[Special:Block]] to destructive

Bug: 66145
Change-Id: I1ae04e15ea8046d50a58952f627a3e7d8bd941a4
---
M includes/specials/SpecialBlock.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/92/165392/1

diff --git a/includes/specials/SpecialBlock.php 
b/includes/specials/SpecialBlock.php
index 3297c17..cf82b86 100644
--- a/includes/specials/SpecialBlock.php
+++ b/includes/specials/SpecialBlock.php
@@ -98,6 +98,7 @@
$form->setWrapperLegendMsg( 'blockip-legend' );
$form->setHeaderText( '' );
$form->setSubmitCallback( array( __CLASS__, 'processUIForm' ) );
+   $form->setSubmitDestructive();
 
$msg = $this->alreadyBlocked ? 'ipb-change-block' : 'ipbsubmit';
$form->setSubmitTextMsg( $msg );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1ae04e15ea8046d50a58952f627a3e7d8bd941a4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] Surround edit notices with appropriate classes - change (mediawiki/core)

2014-08-16 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: Surround edit notices with appropriate classes
..

Surround edit notices with appropriate classes

This commit adds a  around edit notices with relevant classes to aid in the
creation of user scripts, following an earlier change (bug 30959) for
edit intros.

It adds an .editnotice class to each edit notice, and because classes are fairly
cheap, a second mirroring the edit notice's message key, and a third depending
on the edit notice type:
.editnotice-namespace   for a namespace-wide edit notice
.editnotice-basefor a edit notice for the subpage's base page
.editnotice-pagefor an edit notice set explicitly for the page

Bug: 68749
Change-Id: Idf44f2a344d64893f799286914bda3f8d4aff6bf
---
M includes/Title.php
1 file changed, 6 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/97/154397/1

diff --git a/includes/Title.php b/includes/Title.php
index a1b2352..d320e5c 100644
--- a/includes/Title.php
+++ b/includes/Title.php
@@ -5007,7 +5007,8 @@
$editnotice_ns = 'editnotice-' . $this->getNamespace();
$editnotice_ns_message = wfMessage( $editnotice_ns );
if ( $editnotice_ns_message->exists() ) {
-   $notices[$editnotice_ns] = 
$editnotice_ns_message->parseAsBlock();
+   $notices[$editnotice_ns] = "";
+   $notices[$editnotice_ns] .= 
$editnotice_ns_message->parseAsBlock() . '';
}
if ( MWNamespace::hasSubpages( $this->getNamespace() ) ) {
$parts = explode( '/', $this->getDBkey() );
@@ -5016,7 +5017,8 @@
$editnotice_base .= '-' . array_shift( $parts );
$editnotice_base_msg = wfMessage( 
$editnotice_base );
if ( $editnotice_base_msg->exists() ) {
-   $notices[$editnotice_base] = 
$editnotice_base_msg->parseAsBlock();
+   $notices[$editnotice_base] = "";
+   $notices[$editnotice_base] .= 
$editnotice_base_msg->parseAsBlock() . '';
}
}
} else {
@@ -5024,7 +5026,8 @@
$editnoticeText = $editnotice_ns . '-' . str_replace( 
'/', '-', $this->getDBkey() );
$editnoticeMsg = wfMessage( $editnoticeText );
if ( $editnoticeMsg->exists() ) {
-   $notices[$editnoticeText] = 
$editnoticeMsg->parseAsBlock();
+   $notices[$editnoticeText] = "";
+   $notices[$editnoticeText] .= 
$editnoticeMsg->parseAsBlock() . '';
}
}
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idf44f2a344d64893f799286914bda3f8d4aff6bf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] Use FormSpecialPage for Special:RandomInCategory - change (mediawiki/core)

2014-08-15 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: Use FormSpecialPage for Special:RandomInCategory
..

Use FormSpecialPage for Special:RandomInCategory

This commit moves [[Special:RandomInCategory]] from using the SpecialPage class
to using the FormSpecialPage class, in the process moving from a simple input
box in the middle of a sentence to a "proper" form.

This commit fixes bug 67581, and invalidates bug 67253.

Bug: 67581
Change-Id: Ibf8694c0643f7cd3964ff9f62ffc6049f0978416
---
M includes/specials/SpecialRandomInCategory.php
M languages/i18n/en.json
M languages/i18n/qqq.json
3 files changed, 32 insertions(+), 28 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/74/154374/1

diff --git a/includes/specials/SpecialRandomInCategory.php 
b/includes/specials/SpecialRandomInCategory.php
index 28a1bc5..807ad28 100644
--- a/includes/specials/SpecialRandomInCategory.php
+++ b/includes/specials/SpecialRandomInCategory.php
@@ -46,7 +46,7 @@
  *
  * @ingroup SpecialPage
  */
-class SpecialRandomInCategory extends SpecialPage {
+class SpecialRandomInCategory extends FormSpecialPage {
protected $extra = array(); // Extra SQL statements
protected $category = false; // Title object of category
protected $maxOffset = 30; // Max amount to fudge randomness by.
@@ -67,10 +67,27 @@
$this->minTimestamp = null;
}
 
-   public function execute( $par ) {
+   protected function getFormFields() {
+   $form = array(
+   'category' => array(
+   'type' => 'text',
+   'label-message' => 
'randomincategory-selectcategory',
+   'required' => true,
+   )
+   );
+
+   return $form;
+   }
+
+   protected function setParameter( $par ) {
+   // if subpage present, fake form submission
+   $this->onSubmit( array( 'category' => $par ) );
+   }
+
+   public function onSubmit( array $data ) {
$cat = false;
 
-   $categoryStr = $this->getRequest()->getText( 'category', $par );
+   $categoryStr = $data['category'];
 
if ( $categoryStr ) {
$cat = Title::newFromText( $categoryStr, NS_CATEGORY );
@@ -86,41 +103,26 @@
}
 
if ( !$this->category && $categoryStr ) {
-   $this->setHeaders();
-   $this->getOutput()->addWikiMsg( 
'randomincategory-invalidcategory',
+   $msg = wfMessage( 'randomincategory-invalidcategory',
wfEscapeWikiText( $categoryStr ) );
 
-   return;
+   return Status::newFatal( $msg );
+
} elseif ( !$this->category ) {
-   $this->setHeaders();
-   $input = Html::input( 'category' );
-   $submitText = $this->msg( 
'randomincategory-selectcategory-submit' )->text();
-   $submit = Html::input( '', $submitText, 'submit' );
-
-   $msg = $this->msg( 'randomincategory-selectcategory' );
-   $form = Html::rawElement( 'form', array( 'action' => 
wfScript() ),
-   Html::hidden( 'title', 
$this->getPageTitle()->getPrefixedText() ) .
-   $msg->rawParams( $input, $submit )->parse()
-   );
-   $this->getOutput()->addHtml( $form );
-
-   return;
+   return; // no data sent
}
 
$title = $this->getRandomTitle();
 
+
if ( is_null( $title ) ) {
-   $this->setHeaders();
-   $this->getOutput()->addWikiMsg( 
'randomincategory-nopages',
+   $msg = wfMessage( 'randomincategory-nopages',
$this->category->getText() );
 
-   return;
+   return Status::newFatal( $msg );
}
 
-   $query = $this->getRequest()->getValues();
-   unset( $query['title'] );
-   unset( $query['category'] );
-   $this->getOutput()->redirect( $title->getFullURL( $query ) );
+   $this->getOutput()->redirect( $title->getFullURL() );
}
 
/**
diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index a43a742..37a3030 100644
--- a/languages/i18n/en.json
+++ b/languages/i18n/en.json
@@ -1520,7 +1520,8 @@
"randomincategory": "Random page in category",
"randomincategory-invalidcategory": "\"$1\" is not a valid category 
name.",
"randomincategory-nopages": "There are no pages in 

[MediaWiki-commits] [Gerrit] add synopses for MediaWiki-Vagrant commands - change (mediawiki/vagrant)

2014-08-15 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: add synopses for MediaWiki-Vagrant commands
..

add synopses for MediaWiki-Vagrant commands

This commit adds synopses for MediaWiki-Vagrant's custom commands, so that they
have meaningful help messages when somebody runs `vagrant -h`, hopefully making
it clearer as to what each command does at a glance.

Before this commit, most non-vanilla Vagrant commands had a blank space where
their synopsis would be. `vagrant vbguest` is now the only command missing a
synopsis.

Change-Id: I7173a27cf2f70f44d3387eb1a004874e6b569fa3
---
M lib/mediawiki-vagrant/git-update.rb
M lib/mediawiki-vagrant/import-dump.rb
M lib/mediawiki-vagrant/paste-puppet.rb
M lib/mediawiki-vagrant/roles.rb
M lib/mediawiki-vagrant/run-tests.rb
5 files changed, 32 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant 
refs/changes/46/154346/1

diff --git a/lib/mediawiki-vagrant/git-update.rb 
b/lib/mediawiki-vagrant/git-update.rb
index 78443ca..5f892c4 100644
--- a/lib/mediawiki-vagrant/git-update.rb
+++ b/lib/mediawiki-vagrant/git-update.rb
@@ -1,4 +1,8 @@
 class GitUpdates < Vagrant.plugin(2, :command)
+def self.synopsis
+"fetches new code from Gerrit"
+end
+
 def execute
 if %w(-h --help).include? @argv.first
 @env.ui.info 'Usage: vagrant git-update [-h]'
diff --git a/lib/mediawiki-vagrant/import-dump.rb 
b/lib/mediawiki-vagrant/import-dump.rb
index 8718c9e..9e1388b 100644
--- a/lib/mediawiki-vagrant/import-dump.rb
+++ b/lib/mediawiki-vagrant/import-dump.rb
@@ -1,4 +1,8 @@
 class ImportDump < Vagrant.plugin(2, :command)
+def self.synopsis
+"imports an XML file into MediaWiki"
+end
+
 def execute
 if ['-h', '--help'].include? @argv.first
 @env.ui.info "Usage: vagrant import-dump dumpfile.xml [-h]"
diff --git a/lib/mediawiki-vagrant/paste-puppet.rb 
b/lib/mediawiki-vagrant/paste-puppet.rb
index 1ddaa78..9db7283 100644
--- a/lib/mediawiki-vagrant/paste-puppet.rb
+++ b/lib/mediawiki-vagrant/paste-puppet.rb
@@ -4,6 +4,10 @@
 
 URL = URI('http://dpaste.de/api/')
 
+def self.synopsis
+"uploads your puppet logs to dpaste.de pastebin"
+end
+
 def latest_logfile
 Dir[File.join $DIR, '/logs/puppet/*.log'].max_by { |f| File.mtime f }
 end
diff --git a/lib/mediawiki-vagrant/roles.rb b/lib/mediawiki-vagrant/roles.rb
index 906a0e3..032997f 100644
--- a/lib/mediawiki-vagrant/roles.rb
+++ b/lib/mediawiki-vagrant/roles.rb
@@ -6,6 +6,10 @@
 class ListRoles < Vagrant.plugin(2, :command)
 include PluginEnvironment
 
+def self.synopsis
+"lists available mediawiki-vagrant roles"
+end
+
 def execute
 @env.ui.info "Available roles:\n"
 enabled = @mwv.roles_enabled
@@ -28,6 +32,10 @@
 
 class EnableRole < Vagrant.plugin(2, :command)
 include PluginEnvironment
+
+def self.synopsis
+"enables a mediawiki-vagrant role"
+end
 
 def execute
 if @argv.empty? or ['-h', '--help'].include? @argv.first
@@ -52,6 +60,10 @@
 class DisableRole < Vagrant.plugin(2, :command)
 include PluginEnvironment
 
+def self.synopsis
+"disables a mediawiki-vagrant role"
+end
+
 def execute
 if @argv.empty? or ['-h', '--help'].include? @argv.first
 @env.ui.info 'Disable one or more optional roles.'
@@ -75,6 +87,10 @@
 class ResetRoles < Vagrant.plugin(2, :command)
 include PluginEnvironment
 
+def self.synopsis
+"disables all optional mediawiki-vagrant roles"
+end
+
 def execute
 if ['-h', '--help'].include? @argv.first
 @env.ui.info 'Disable all optional roles.'
diff --git a/lib/mediawiki-vagrant/run-tests.rb 
b/lib/mediawiki-vagrant/run-tests.rb
index 79dc78f..4e50245 100644
--- a/lib/mediawiki-vagrant/run-tests.rb
+++ b/lib/mediawiki-vagrant/run-tests.rb
@@ -1,4 +1,8 @@
 class RunTests < Vagrant.plugin(2, :command)
+def self.synopsis
+"runs MediaWiki's test suite"
+end
+
 def execute
 if ['-h', '--help'].include? @argv.first
 @env.ui.info "Usage: vagrant run-tests [tests] [-h]"

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7173a27cf2f70f44d3387eb1a004874e6b569fa3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] add compact setting for generated CSS - change (wikimedia/TransparencyReport)

2014-08-13 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: add compact setting for generated CSS
..

add compact setting for generated CSS

This commit adds a `compact` setting to compass' config, minifying the generated
CSS so each rule set occupies a single line, instead of the usual one 
declaration
on each line separated by tabs or spaces.

This isn't the most minified of settings: there is a "compressed" option that
takes the minification further by putting everything in a sole line. "compact"
is a less drastic option, which maintains some readability.

Follow up from comments on I0d312e93bb3615640ecc91462dfd6f96bde1bed7.

Change-Id: Ice1dac49e1ea9bc05c4c6d3cf6d7201681954b67
---
M build/stylesheets/graph.css
M build/stylesheets/master.css
M config.rb
3 files changed, 161 insertions(+), 612 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/TransparencyReport 
refs/changes/54/153954/1

diff --git a/build/stylesheets/graph.css b/build/stylesheets/graph.css
index a8e9257..414c5b8 100644
--- a/build/stylesheets/graph.css
+++ b/build/stylesheets/graph.css
@@ -1,226 +1,63 @@
-.analytics {
-  background: #ff;
-  border-top: 6px solid #347bff;
-  margin: 40px 0; }
-  .analytics h2 {
-margin: 20px; }
-  .analytics ul.tabs {
-list-style: none;
-padding: 0;
-border-bottom: 1px solid #d1d1d1; }
-.analytics ul.tabs li {
-  display: inline; }
-  .analytics ul.tabs li a {
-display: inline-block;
-padding: 3px 10px;
-text-transform: uppercase;
-font-size: 12px;
-font-weight: 400;
-color: #666;
-border-bottom: 4px solid transparent; }
-.analytics ul.tabs li a.active, .analytics ul.tabs li a:hover {
-  text-decoration: none;
-  border-color: #347bff; }
-  .analytics ul.tabs li:first-child {
-margin-left: 10px; }
-  .analytics .bar_graph_horizontal.rect.gray_bars, .analytics 
.bar_graph_horizontal.rect.blue_bars {
-cursor: pointer; }
-  .analytics h3 {
-font-family: serif;
-font-size: 20px;
-margin: 20px;
-margin-bottom: 0; }
-.analytics h3 a {
-  font-size: 14px;
-  margin-left: 5px;
-  font-family: sans-serif; }
-  .analytics h3 a.disabled {
-color: #ccc;
-cursor: text; }
-.analytics h3 a.disabled:hover {
-  text-decoration: none; }
-  .analytics #complied_requests {
-display: inline-block;
-margin: 10px;
-margin-bottom: 10px;
-padding: 10px;
-background: #E4E6E8; }
-.analytics #complied_requests label {
-  font-weight: normal; }
+.analytics { background: #ff; border-top: 6px solid #347bff; margin: 40px 
0; }
+.analytics h2 { margin: 20px; }
+.analytics ul.tabs { list-style: none; padding: 0; border-bottom: 1px solid 
#d1d1d1; }
+.analytics ul.tabs li { display: inline; }
+.analytics ul.tabs li a { display: inline-block; padding: 3px 10px; 
text-transform: uppercase; font-size: 12px; font-weight: 400; color: #666; 
border-bottom: 4px solid transparent; }
+.analytics ul.tabs li a.active, .analytics ul.tabs li a:hover { 
text-decoration: none; border-color: #347bff; }
+.analytics ul.tabs li:first-child { margin-left: 10px; }
+.analytics .bar_graph_horizontal.rect.gray_bars, .analytics 
.bar_graph_horizontal.rect.blue_bars { cursor: pointer; }
+.analytics h3 { font-family: serif; font-size: 20px; margin: 20px; 
margin-bottom: 0; }
+.analytics h3 a { font-size: 14px; margin-left: 5px; font-family: sans-serif; }
+.analytics h3 a.disabled { color: #ccc; cursor: text; }
+.analytics h3 a.disabled:hover { text-decoration: none; }
+.analytics #complied_requests { display: inline-block; margin: 10px; 
margin-bottom: 10px; padding: 10px; background: #E4E6E8; }
+.analytics #complied_requests label { font-weight: normal; }
 
-#where_from_graph {
-  margin-left: 13px;
-  width: 750px;
-  height: 100px;
-  padding-bottom: 30px; }
+#where_from_graph { margin-left: 13px; width: 750px; height: 100px; 
padding-bottom: 30px; }
 
-#targeted_takedown_graph, #targeted_dmca_graph, #dmca_requests_graph {
-  margin-left: -20px;
-  width: 750px;
-  height: 100px;
-  padding-bottom: 30px; }
+#targeted_takedown_graph, #targeted_dmca_graph, #dmca_requests_graph { 
margin-left: -20px; width: 750px; height: 100px; padding-bottom: 30px; }
 
-#dmca_requests_graph {
-  width: 400px; }
+#dmca_requests_graph { width: 400px; }
 
-#dmca_requests_legend {
-  padding-left: 0; }
+#dmca_requests_legend { padding-left: 0; }
 
-#bar_graph_by_country {
-  width: 100%;
-  height: 600px;
-  padding-bottom: 30px; }
+#bar_graph_by_country { width: 100%; height: 600px; padding-bottom: 30px; }
 
-#bar_graph_by_type {
-  width: 100%;
-  height: 200px; }
+#bar_graph_by_type { width: 100%; height: 200px; }
 
-#bar_graph_by_disclosed {
-  width: 100%;
-  height: 200px; }
+#bar_graph_by_disclosed { width: 100%; height:

[MediaWiki-commits] [Gerrit] remove path comments from .css files - change (wikimedia/TransparencyReport)

2014-08-09 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: remove path comments from .css files
..

remove path comments from .css files

Before this commit, the build process added comments to CSS files that
documented which SASS file the code originated from. However, these comments use
full paths, so change depending on which computer was used to build the code:
this is not ideal when committing them to a Git repository.

This commit sets an appropriate option in the config.rb file to prevent these
comments from being generated, and removes the comments from the CSS files in
the build directory.

You can view the documentation for Compass' configuration here:


Change-Id: I0d312e93bb3615640ecc91462dfd6f96bde1bed7
---
M build/stylesheets/graph.css
M build/stylesheets/master.css
M config.rb
3 files changed, 3 insertions(+), 163 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/TransparencyReport 
refs/changes/29/153129/1

diff --git a/build/stylesheets/graph.css b/build/stylesheets/graph.css
index 39f837f..a8e9257 100644
--- a/build/stylesheets/graph.css
+++ b/build/stylesheets/graph.css
@@ -1,20 +1,15 @@
-/* line 3, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
 .analytics {
   background: #ff;
   border-top: 6px solid #347bff;
   margin: 40px 0; }
-  /* line 8, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
   .analytics h2 {
 margin: 20px; }
-  /* line 12, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
   .analytics ul.tabs {
 list-style: none;
 padding: 0;
 border-bottom: 1px solid #d1d1d1; }
-/* line 17, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
 .analytics ul.tabs li {
   display: inline; }
-  /* line 20, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
   .analytics ul.tabs li a {
 display: inline-block;
 padding: 3px 10px;
@@ -23,162 +18,127 @@
 font-weight: 400;
 color: #666;
 border-bottom: 4px solid transparent; }
-/* line 29, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
 .analytics ul.tabs li a.active, .analytics ul.tabs li a:hover {
   text-decoration: none;
   border-color: #347bff; }
-  /* line 35, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
   .analytics ul.tabs li:first-child {
 margin-left: 10px; }
-  /* line 42, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
   .analytics .bar_graph_horizontal.rect.gray_bars, .analytics 
.bar_graph_horizontal.rect.blue_bars {
 cursor: pointer; }
-  /* line 48, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
   .analytics h3 {
 font-family: serif;
 font-size: 20px;
 margin: 20px;
 margin-bottom: 0; }
-/* line 54, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
 .analytics h3 a {
   font-size: 14px;
   margin-left: 5px;
   font-family: sans-serif; }
-  /* line 59, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
   .analytics h3 a.disabled {
 color: #ccc;
 cursor: text; }
-/* line 63, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
 .analytics h3 a.disabled:hover {
   text-decoration: none; }
-  /* line 70, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
   .analytics #complied_requests {
 display: inline-block;
 margin: 10px;
 margin-bottom: 10px;
 padding: 10px;
 background: #E4E6E8; }
-/* line 77, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
 .analytics #complied_requests label {
   font-weight: normal; }
 
-/* line 83, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
 #where_from_graph {
   margin-left: 13px;
   width: 750px;
   height: 100px;
   padding-bottom: 30px; }
 
-/* line 90, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
 #targeted_takedown_graph, #targeted_dmca_graph, #dmca_requests_graph {
   margin-left: -20px;
   width: 750px;
   height: 100px;
   padding-bottom: 30px; }
 
-/* line 97, 
/Users/moizsyed/Documents/Projects/TransparencyReport/source/stylesheets/graph.css.scss
 */
 #dmca_requests_graph {
   width: 400px; }
 
-/* line 101, 
/Users/moizsyed/Documents/Projects/T

[MediaWiki-commits] [Gerrit] correct typographical errors in privacy.html - change (wikimedia/TransparencyReport)

2014-08-08 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: correct typographical errors in privacy.html
..

correct typographical errors in privacy.html

The Transparency Report currently contains typographical errors.
This commit fixes two of them.

Change-Id: I140e50aac5b9a82002c640e17b265849d44d2525
---
M build/privacy.html
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/TransparencyReport 
refs/changes/12/153012/1

diff --git a/build/privacy.html b/build/privacy.html
index a532b41..179d452 100644
--- a/build/privacy.html
+++ b/build/privacy.html
@@ -105,7 +105,7 @@
8


-   Criminal Subopenas
+   Criminal Subpoenas
5


@@ -125,7 +125,7 @@
8


-   User Accounts Pottentially Affected
+   User Accounts Potentially Affected
69



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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I140e50aac5b9a82002c640e17b265849d44d2525
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/TransparencyReport
Gerrit-Branch: master
Gerrit-Owner: Microchip08 

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


[MediaWiki-commits] [Gerrit] Do not add ?uselang= on the default language - change (mediawiki...StickToThatLanguage)

2014-06-01 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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

Change subject: Do not add ?uselang= on the default language
..

Do not add ?uselang= on the default language

Adding ?uselang= is only useful when the language in question is different to
that of the wiki's default. This commit removes the ?uselang= parameter if the
two languages are the same (for example, on an English wiki, ?uselang=de would
remain, but ?uselang=en would be stripped from the links).

Change-Id: I6a9191ae67a6d7acacef5ce21358d797c72169ab
---
M StickToThatLanguage.hooks.php
1 file changed, 17 insertions(+), 14 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/StickToThatLanguage 
refs/changes/24/136624/1

diff --git a/StickToThatLanguage.hooks.php b/StickToThatLanguage.hooks.php
index a3b6b42..6c4f02c 100644
--- a/StickToThatLanguage.hooks.php
+++ b/StickToThatLanguage.hooks.php
@@ -78,7 +78,7 @@
 */
public static function onSkinTemplateOutputPageBeforeExec( 
\SkinTemplate &$sk, \QuickTemplate &$tpl ) {
global $egSTTLanguageDisplaySelector, 
$egSTTLanguageTopLanguages;
-   if( ! $egSTTLanguageDisplaySelector ) {
+   if ( ! $egSTTLanguageDisplaySelector ) {
return true; // option for disabling the selector is 
active
}
 
@@ -96,14 +96,14 @@
? Ext::getUserLanguageCodes( $user ) // display users 
preferred languages on top
: $egSTTLanguageTopLanguages;
 
-   foreach( \Language::fetchLanguageNames() as $code => $name ) {
-   if( $code === $sk->getLanguage()->getCode() ) {
+   foreach ( \Language::fetchLanguageNames() as $code => $name ) {
+   if ( $code === $sk->getLanguage()->getCode() ) {
continue; // don't add language the page is 
displayed in
}
 
// set 'uselang' and in case this was a GET request 
also all other parameters when switching language
$urlParams = array( 'uselang' => $code );
-   if( ! $sk->getRequest()->wasPosted() ) {
+   if ( ! $sk->getRequest()->wasPosted() ) {
$urlParams += $sk->getRequest()->getValues();
unset( $urlParams['title'] ); // don't want the 
'title' twice
}
@@ -119,7 +119,7 @@
);
 
$topIndex =  array_search( $code, $topLanguages );
-   if( $topIndex !== false ) {
+   if ( $topIndex !== false ) {
// language is considered a 'top' language
$url['class'] .= ' sttl-toplang';
$topLangUrls[ $topIndex ] = $url;
@@ -128,7 +128,7 @@
}
}
 
-   if( count( $topLangUrls ) ) { // can be empty when the only 
language in here is the one displayed!
+   if ( count( $topLangUrls ) ) { // can be empty when the only 
language in here is the one displayed!
// make sure top languages are still in defined order 
and there are no gaps:
ksort( $topLangUrls );
$topLangUrls = array_values( $topLangUrls );
@@ -163,7 +163,7 @@
// add styles for the language selector:
global $egSTTLanguageDisplaySelector;
 
-   if( $egSTTLanguageDisplaySelector ) {
+   if ( $egSTTLanguageDisplaySelector ) {
// add styles for language selector (has to be done 
separately for non-JS version):
$out->addModuleStyles( 'sticktothatlanguage' );
$out->addModules( 'sticktothatlanguage' );
@@ -188,7 +188,7 @@
public static function onLinkBegin( $skin, $target, &$text, 
&$customAttribs, &$query, &$options, &$ret ) {
global $wgLang, $wgParser;
 
-   if( is_string( $query ) ) {
+   if ( is_string( $query ) ) {
// this check is not yet in MW core (pending on review 
in 1.20). This can actually be a string
$query = wfCgiToArray( $query );
}
@@ -203,7 +203,7 @@
// NOTE: we can't just add 'uselang' in case it is different 
from the sites global language (e.g. 'en')
//   because a users language could still be different than 
that language.
 
-   if( array_key_exists( 'uselang', $query ) ) { // only add it if 
there is no uselang set to that link already!
+   if ( array_key_exists( 'uselang', $query ) ) { // only add it 
if there is no uselang set to that link already!
// t

[MediaWiki-commits] [Gerrit] Make show/hide link in RC individually localizable - change (mediawiki/core)

2014-01-24 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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


Change subject: Make show/hide link in RC individually localizable
..

Make show/hide link in RC individually localizable

This commit concerns the filters on the [[Special:RecentChanges]] box.
Previously, "Show" and "Hide" in messages such as "Show anonymous users" were a
shared system message: now each filter can be assigned a verb individually.

For example:
* Argument $1 of `rcshowhideminor` used to come from `show` or `hide`.
* $1 now comes from `rcshowhideminor-show` or `rcshowhideminor-hide`.

In place of `show` and `hide`, the following system messages are affected:
* `rcshowhideminor` uses `rcshowhideminor-show` and `rcshowhideminor-hide`.
* `rcshowhidebots` uses `rcshowhidebots-show` and `rcshowhidebots-hide`.
* `rcshowhideanons` uses `rcshowhideanons-show` and `rcshowhideanons-hide`.
* `rcshowhidepatr` uses `rcshowhidepatr-show` and `rcshowhideanons-hide`.
* `rcshowhidemine` uses `rcshowhidemine-show` and `rcshowhidemine-hide`.

This change attempts to correct an issue encountered when localising into
Chechen (ce); previous behaviour made it impossible to translate the entire
sentence fragment correctly (as the verb is rendered slightly differently
depending on the rest of the sentence, and this was not possible with a shared
Show/Hide message).

Bug: 58449
Change-Id: Ibbfc3cd0477b029c8f22a3c812a891ac2109d660
---
M includes/specials/SpecialRecentchanges.php
M languages/messages/MessagesEn.php
M languages/messages/MessagesQqq.php
M maintenance/language/messages.inc
4 files changed, 115 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/96/109296/1

diff --git a/includes/specials/SpecialRecentchanges.php 
b/includes/specials/SpecialRecentchanges.php
index 90abe1c..aa8d519 100644
--- a/includes/specials/SpecialRecentchanges.php
+++ b/includes/specials/SpecialRecentchanges.php
@@ -936,7 +936,6 @@
$dl = $lang->pipeList( $dl );
 
// show/hide links
-   $showhide = array( $this->msg( 'show' )->text(), $this->msg( 
'hide' )->text() );
$filters = array(
'hideminor' => 'rcshowhideminor',
'hidebots' => 'rcshowhidebots',
@@ -944,7 +943,16 @@
'hideliu' => 'rcshowhideliu',
'hidepatrolled' => 'rcshowhidepatr',
'hidemyself' => 'rcshowhidemine'
-   );
+ );
+
+   // The following messages are also used as the link text itself:
+   // rcshowhideminor-show rcshowhideminor-hide
+   // rcshowhidebots-show  rcshowhideminor-hide
+   // rcshowhideanons-show rcshowhideanons-hide
+   // rcshowhidepatr-show  rcshowhidepatr-hide
+   // rcshowhidemine-show  rcshowhidemine-hide
+   $showhide = array( 'show', 'hide' );
+
foreach ( $this->getCustomFilters() as $key => $params ) {
$filters[$key] = $params['msg'];
}
@@ -955,7 +963,7 @@
 
$links = array();
foreach ( $filters as $key => $msg ) {
-   $link = $this->makeOptionsLink( $showhide[1 - 
$options[$key]],
+   $link = $this->makeOptionsLink( $this->msg( $msg . '-' 
. $showhide[1 - $options[$key]] ),
array( $key => 1 - $options[$key] ), 
$nondefaults );
$links[] = $this->msg( $msg )->rawParams( $link 
)->escaped();
}
diff --git a/languages/messages/MessagesEn.php 
b/languages/messages/MessagesEn.php
index 726b8f0..c1f1333 100644
--- a/languages/messages/MessagesEn.php
+++ b/languages/messages/MessagesEn.php
@@ -2199,11 +2199,23 @@
 'rcnotefrom'=> "Below are the changes since '''$2''' 
(up to '''$1''' shown).",
 'rclistfrom'=> 'Show new changes starting from $1',
 'rcshowhideminor'   => '$1 minor edits',
+'rcshowhideminor-show'  => 'Show',
+'rcshowhideminor-hide'  => 'Hide',
 'rcshowhidebots'=> '$1 bots',
+'rcshowhidebots-show'   => 'Show',
+'rcshowhidebots-hide'   => 'Hide',
 'rcshowhideliu' => '$1 registered users',
+'rcshowhideliu-show'=> 'Show',
+'rcshowhideliu-hide'=> 'Hide',
 'rcshowhideanons'   => '$1 anonymous users',
+'rcshowhideanons-show'  => 'Show',
+'rcshowhideanons-hide'  => 'Hide',
 'rcshowhidepatr'=> '$1 patrolled edits',
+'rcshowhidepatr-show'   => 'Show',
+'rcshowhidepatr-hide'   => 'Hide',
 'rcshowhidemine'=> '$1 my edits',
+'rcshowhidemine-show'   => 'Show',
+'rcshowhid

[MediaWiki-commits] [Gerrit] Remove `login-throttled` system message reuse - change (mediawiki/core)

2014-01-19 Thread Microchip08 (Code Review)
Microchip08 has uploaded a new change for review.

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


Change subject: Remove `login-throttled` system message reuse
..

Remove `login-throttled` system message reuse

Replaced calls to the `login-throttled` system message to new, separate system
messages for [[Special:ChangeEmail]] and [[Special:ChangePassword]] in order to
minimise message reuse.

* [[Special:ChangeEmail]] now uses `changeemail-throttled` instead of
  `login-throttled`.
* [[Special:ChangePassword]] now uses `changepassword-throttled` instead of
  `login-throttled`.

Follow-up to I565971a90fc383327a51d717a80013cb7a3e9c9b.
Bug: 53655

Change-Id: Icc7ad829b381514627dca16cde62ccf0831967b6
---
M includes/specials/SpecialChangeEmail.php
M includes/specials/SpecialChangePassword.php
M languages/messages/MessagesEn.php
M languages/messages/MessagesQqq.php
4 files changed, 47 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/86/108486/1

diff --git a/includes/specials/SpecialChangeEmail.php 
b/includes/specials/SpecialChangeEmail.php
index d9ef5d7..e678259 100644
--- a/includes/specials/SpecialChangeEmail.php
+++ b/includes/specials/SpecialChangeEmail.php
@@ -232,7 +232,7 @@
$throttleCount = LoginForm::incLoginThrottle( $user->getName() 
);
if ( $throttleCount === true ) {
$lang = $this->getLanguage();
-   $this->error( array( 'login-throttled', 
$lang->formatDuration( $wgPasswordAttemptThrottle['seconds'] ) ) );
+   $this->error( array( 'changeemail-throttled', 
$lang->formatDuration( $wgPasswordAttemptThrottle['seconds'] ) ) );
 
return false;
}
diff --git a/includes/specials/SpecialChangePassword.php 
b/includes/specials/SpecialChangePassword.php
index d54828a..484e00c 100644
--- a/includes/specials/SpecialChangePassword.php
+++ b/includes/specials/SpecialChangePassword.php
@@ -205,7 +205,7 @@
$throttleCount = LoginForm::incLoginThrottle( $this->mUserName 
);
if ( $throttleCount === true ) {
$lang = $this->getLanguage();
-   throw new PasswordError( $this->msg( 'login-throttled' )
+   throw new PasswordError( $this->msg( 
'changepassword-throttled' )
->params( $lang->formatDuration( 
$wgPasswordAttemptThrottle['seconds'] ) )
->text()
);
diff --git a/languages/messages/MessagesEn.php 
b/languages/messages/MessagesEn.php
index 726b8f0..4d12683 100644
--- a/languages/messages/MessagesEn.php
+++ b/languages/messages/MessagesEn.php
@@ -1268,6 +1268,8 @@
 # Change password dialog
 'changepassword'=> 'Change password',
 'changepassword-summary'=> '', # do not translate or duplicate this 
message to other languages
+'changepassword-throttled'  => 'You have made too many recent login attempts.
+Please wait $1 before trying again.',
 'resetpass_announce'=> 'You logged in with a temporary emailed code.
 To finish logging in, you must set a new password here:',
 'resetpass_text'=> '', # only translate this 
message to other languages if you have to change it
@@ -1338,6 +1340,8 @@
 'changeemail-password' => 'Your {{SITENAME}} password:',
 'changeemail-submit'   => 'Change email',
 'changeemail-cancel'   => 'Cancel',
+'changeemail-throttled' => 'You have made too many login attempts.
+Please wait $1 before trying again.',
 
 # Special:ResetTokens
 'resettokens' => 'Reset tokens',
diff --git a/languages/messages/MessagesQqq.php 
b/languages/messages/MessagesQqq.php
index 5ab76d2..a97f84e 100644
--- a/languages/messages/MessagesQqq.php
+++ b/languages/messages/MessagesQqq.php
@@ -1558,7 +1558,7 @@
 * $3 - a password (randomly generated)
 * $4 - a URL to the wiki ('<' + server name + script name + '>')
 * $5 - (Unused) number of days to password expiry date",
-'login-throttled' => 'Error message shown at [[Special:UserLogin]] after the 
user has tried to login with incorrect password too many times; also used by 
[[Special:ChangeEmail]] and [[Special:ChangePassword]].
+'login-throttled' => 'Error message shown at [[Special:UserLogin]] after the 
user has tried to login with incorrect password too many times.
 
 The user has to wait a certain time before trying to log in again.
 
@@ -1576,7 +1576,8 @@
 
 This is a protection against robots trying to find the password by trying lots 
of them.
 The number of attempts and waiting time are configured via 
[[mw:Manual:$wgPasswordAttemptThrottle|$wgPasswordAttemptThrottle]].
-This message is used in html.',
+This message is used in html.
+{{identical|Login throttled}}',
 'login-abort-generic' => 'The generic unsuccessful login message is used 
unless otherwise specified by hook writers',
 'logi