[MediaWiki-commits] [Gerrit] Fixup for Partial revert of r6605 - change (pywikibot/core)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Fixup for Partial revert of r6605
..


Fixup for Partial revert of r6605

The compat code was copied as is, but it contained syntax which
core doesnt support.

Change-Id: I45b2d968ded226de8d95b4ca5a976e01d577c326
---
M pywikibot/interwiki_graph.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/interwiki_graph.py b/pywikibot/interwiki_graph.py
index 14d5a4b..571d5c4 100644
--- a/pywikibot/interwiki_graph.py
+++ b/pywikibot/interwiki_graph.py
@@ -65,7 +65,7 @@
 self.subject = subject
 
 def getLabel(self, page):
-return (u'%s:%s' % (page.site().language(),
+return (u'%s:%s' % (page.site.language(),
   page.title())).encode('utf-8')
 
 def addNode(self, page):

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I45b2d968ded226de8d95b4ca5a976e01d577c326
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg jay...@gmail.com
Gerrit-Reviewer: Ladsgroup ladsgr...@gmail.com
Gerrit-Reviewer: Merlijn van Deen valhall...@arctus.nl
Gerrit-Reviewer: Xqt i...@gno.de
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Fixup for Partial revert of r6605 - change (pywikibot/core)

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

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

Change subject: Fixup for Partial revert of r6605
..

Fixup for Partial revert of r6605

The compat code was copied as is, but it contained syntax which
core doesnt support.

Change-Id: I45b2d968ded226de8d95b4ca5a976e01d577c326
---
M pywikibot/interwiki_graph.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/79/213479/1

diff --git a/pywikibot/interwiki_graph.py b/pywikibot/interwiki_graph.py
index 14d5a4b..571d5c4 100644
--- a/pywikibot/interwiki_graph.py
+++ b/pywikibot/interwiki_graph.py
@@ -65,7 +65,7 @@
 self.subject = subject
 
 def getLabel(self, page):
-return (u'%s:%s' % (page.site().language(),
+return (u'%s:%s' % (page.site.language(),
   page.title())).encode('utf-8')
 
 def addNode(self, page):

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I45b2d968ded226de8d95b4ca5a976e01d577c326
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg jay...@gmail.com

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


[MediaWiki-commits] [Gerrit] Set mwparserfromhell as optional on all platforms - change (pywikibot/core)

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

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

Change subject: Set mwparserfromhell as optional on all platforms
..

Set mwparserfromhell as optional on all platforms

Potential users are writing their own library instead
of using pywikibot because it has mandatory dependencies
that they do not want, such as mwparserfromhell.

Bug: T78378
Change-Id: I9daf480996ca6f9d2f0deff492c968bdd200
---
M setup.py
1 file changed, 0 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/80/213480/1

diff --git a/setup.py b/setup.py
index 0691588..248141f 100644
--- a/setup.py
+++ b/setup.py
@@ -98,11 +98,6 @@
 print(ERROR: Python 3.3 or higher is required!)
 sys.exit(1)
 
-if os.name != 'nt':
-# See bug 66010, Windows users will have issues
-# when trying to build the C modules.
-dependencies += extra_deps['mwparserfromhell']
-
 # Some of the ui_tests depend on accessing the console window's menu
 # to set the console font and copy and paste, achieved using pywinauto
 # which depends on pywin32.

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9daf480996ca6f9d2f0deff492c968bdd200
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg jay...@gmail.com

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


[MediaWiki-commits] [Gerrit] Translate to English in English translation stash - change (mediawiki...Translate)

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

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

Change subject: Translate to English in English translation stash
..

Translate to English in English translation stash

Selecting a random language means we have 99 % chance to pick one
the user doesn't know. It's less meaningless to ask translations
to the source language, which the translator is expected to know.

Bug: T75664
Change-Id: If64d113b0153fe0e82c6198a50c569078a180a69
---
M specials/SpecialTranslationStash.php
1 file changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/82/213482/1

diff --git a/specials/SpecialTranslationStash.php 
b/specials/SpecialTranslationStash.php
index a6bba7c..7298ecb 100644
--- a/specials/SpecialTranslationStash.php
+++ b/specials/SpecialTranslationStash.php
@@ -200,8 +200,7 @@
}
}
 
-   // User has not chosen any valid language. Pick one at random.
-   $codes = array_keys( $supported );
-   return Language::factory( $codes[rand( 0, count( $codes ) - 1 
)] );
+   // User has not chosen any valid language. Pick the source.
+   return $source-getCode();
}
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If64d113b0153fe0e82c6198a50c569078a180a69
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nemo bis federicol...@tiscali.it

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


[MediaWiki-commits] [Gerrit] Show article snippets for Browse article - change (mediawiki...MobileFrontend)

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

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

Change subject: Show article snippets for Browse article
..

Show article snippets for Browse article

Bug: T99102
Change-Id: I094013c08045342e3b200a85a5996ecd5038d4b3
---
M includes/specials/browse/SpecialTopicTag.php
1 file changed, 4 insertions(+), 2 deletions(-)


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

diff --git a/includes/specials/browse/SpecialTopicTag.php 
b/includes/specials/browse/SpecialTopicTag.php
index 82ee71d..b1df47c 100644
--- a/includes/specials/browse/SpecialTopicTag.php
+++ b/includes/specials/browse/SpecialTopicTag.php
@@ -131,10 +131,12 @@
array(
'action' = 'query',
'list' = 'allpages',
-   'prop' = 'extracts|pageimages',
'pageids' = implode( '|', $pageIds ),
-   'exsentences' = 
self::EXTRACT_SENTENCES,
+   'prop' = 'extracts|pageimages',
'explaintext' = true,
+   'exsentences' = 
self::EXTRACT_SENTENCES,
+   'exlimit' = count( $pageIds ),
+   'exintro' = true,
'piprop' = 'name',
'continue' = '',
)

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I094013c08045342e3b200a85a5996ecd5038d4b3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Phuedx g...@samsmith.io

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


[MediaWiki-commits] [Gerrit] Update languages by size - change (pywikibot/core)

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

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

Change subject: Update languages by size
..

Update languages by size

In order to have an RC

Change-Id: I9e9bd6b4b05319d63f1d14591ae7c793e60fb5d0
---
M pywikibot/families/anarchopedia_family.py
M pywikibot/families/wikibooks_family.py
M pywikibot/families/wikinews_family.py
M pywikibot/families/wikipedia_family.py
M pywikibot/families/wikiquote_family.py
M pywikibot/families/wikisource_family.py
M pywikibot/families/wikiversity_family.py
M pywikibot/families/wikivoyage_family.py
M pywikibot/families/wiktionary_family.py
9 files changed, 70 insertions(+), 71 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/86/213486/1

diff --git a/pywikibot/families/anarchopedia_family.py 
b/pywikibot/families/anarchopedia_family.py
index 1cbacb9..f67914d 100644
--- a/pywikibot/families/anarchopedia_family.py
+++ b/pywikibot/families/anarchopedia_family.py
@@ -64,10 +64,9 @@
 self.name = 'anarchopedia'
 
 self.languages_by_size = [
-'ar', 'en', 'de', 'nl', 'el', 'it', 'fa', 'fi', 'fr', 'he',
-'es', 'hy', 'id', 'meta', 'ja', 'ko', 'lv', 'lt', 'no', 'hr',
-'pl', 'pt', 'ro', 'ru', 'sr', 'sq', 'da', 'sv', 'tr', 'zh',
-'eo',
+'ar', 'en', 'de', 'nl', 'el', 'it', 'fa', 'fi', 'fr', 'he', 'es',
+'hy', 'id', 'meta', 'ja', 'ko', 'lv', 'lt', 'no', 'hr', 'pl', 'pt',
+'ro', 'ru', 'hrv', 'sq', 'sr', 'sv', 'tr', 'zh', 'eo', 'da',
 ]
 for l in self.languages_by_size:
 self.langs[l] = '%s.anarchopedia.org' % l
diff --git a/pywikibot/families/wikibooks_family.py 
b/pywikibot/families/wikibooks_family.py
index b4ed20d..389c4f0 100644
--- a/pywikibot/families/wikibooks_family.py
+++ b/pywikibot/families/wikibooks_family.py
@@ -110,12 +110,12 @@
 
 self.languages_by_size = [
 'en', 'de', 'fr', 'hu', 'ja', 'it', 'es', 'pt', 'nl', 'pl', 'he',
-'vi', 'id', 'sq', 'ca', 'fi', 'ru', 'fa', 'cs', 'zh', 'sv', 'da',
-'hr', 'tr', 'no', 'th', 'sr', 'ar', 'gl', 'ko', 'ta', 'mk', 'tl',
-'ro', 'is', 'ka', 'tt', 'lt', 'az', 'eo', 'uk', 'bg', 'sk', 'sl',
-'el', 'hy', 'ms', 'si', 'li', 'la', 'ml', 'ur', 'ang', 'ia', 'cv',
-'et', 'bn', 'km', 'hi', 'mr', 'sa', 'oc', 'kk', 'eu', 'ne', 'fy',
-'ie', 'te', 'af', 'tg', 'ky', 'bs', 'pa', 'mg', 'be', 'cy',
+'vi', 'ca', 'id', 'sq', 'fi', 'ru', 'fa', 'cs', 'zh', 'sv', 'hr',
+'tr', 'ro', 'sr', 'ar', 'no', 'th', 'ko', 'gl', 'da', 'ta', 'mk',
+'az', 'tl', 'is', 'ka', 'lt', 'tt', 'uk', 'eo', 'bg', 'sk', 'sl',
+'el', 'hy', 'ms', 'sa', 'si', 'li', 'la', 'ml', 'ur', 'bn', 'ang',
+'ia', 'cv', 'et', 'hi', 'km', 'mr', 'eu', 'oc', 'kk', 'fy', 'ne',
+'ie', 'te', 'af', 'tg', 'ky', 'bs', 'pa', 'be', 'mg', 'cy',
 'zh-min-nan', 'ku', 'uz',
 ]
 
diff --git a/pywikibot/families/wikinews_family.py 
b/pywikibot/families/wikinews_family.py
index b4e53e3..43df5bb 100644
--- a/pywikibot/families/wikinews_family.py
+++ b/pywikibot/families/wikinews_family.py
@@ -29,9 +29,9 @@
 self.name = 'wikinews'
 
 self.languages_by_size = [
-'sr', 'en', 'fr', 'pl', 'de', 'it', 'es', 'pt', 'ru', 'ca', 'zh',
-'sv', 'ja', 'ta', 'el', 'cs', 'ar', 'uk', 'fa', 'fi', 'ro', 'tr',
-'he', 'bg', 'sq', 'no', 'ko', 'eo', 'bs',
+'sr', 'en', 'fr', 'de', 'pl', 'es', 'pt', 'ru', 'it', 'zh', 'ta',
+'el', 'ca', 'cs', 'sv', 'ar', 'fa', 'ro', 'uk', 'tr', 'ja', 'sq',
+'no', 'ko', 'eo', 'fi', 'bs', 'he', 'bg',
 ]
 
 self.langs = dict([(lang, '%s.wikinews.org' % lang)
diff --git a/pywikibot/families/wikipedia_family.py 
b/pywikibot/families/wikipedia_family.py
index 17689a4..d863adb 100644
--- a/pywikibot/families/wikipedia_family.py
+++ b/pywikibot/families/wikipedia_family.py
@@ -52,34 +52,34 @@
 self.name = 'wikipedia'
 
 self.languages_by_size = [
-'en', 'sv', 'nl', 'de', 'fr', 'ru', 'it', 'es', 'vi', 'war', 'ceb',
-'pl', 'ja', 'pt', 'zh', 'uk', 'ca', 'no', 'fa', 'fi', 'id', 'ar',
-'cs', 'ko', 'ms', 'hu', 'ro', 'sr', 'tr', 'min', 'sh', 'kk', 'eo',
-'sk', 'eu', 'da', 'lt', 'bg', 'he', 'hr', 'sl', 'uz', 'hy', 'et',
-'vo', 'nn', 'gl', 'simple', 'hi', 'la', 'el', 'az', 'th', 'oc',
-'ka', 'mk', 'be', 'new', 'tt', 'pms', 'tl', 'ta', 'te', 'cy', 'lv',
-'be-x-old', 'ht', 'ur', 'ce', 'bs', 'sq', 'br', 'jv', 'mg', 'lb',
-'mr', 'is', 'ml', 'pnb', 'ba', 'af', 'my', 'zh-yue', 'bn', 'ga',
-'lmo', 'yo', 'fy', 'an', 'cv', 'tg', 'ky', 'sw', 'ne', 'io', 'gu',
-'bpy', 'sco', 'scn', 'nds', 'ku', 'ast', 'qu', 'su', 'als', 'gd',
-'kn', 'am', 'ckb', 

[MediaWiki-commits] [Gerrit] Fix deed validation - change (mediawiki...UploadWizard)

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

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

Change subject: Fix deed validation
..

Fix deed validation

We were letting users go to the describe step without filling out
required fields - causing frustration and loss of data. Now fixed.

Change-Id: I3c529320eaf9258f7fd5ce053ec560fd01419f12
---
M resources/controller/uw.controller.Deed.js
M resources/mw.UploadWizardDeed.js
2 files changed, 6 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard 
refs/changes/97/213497/1

diff --git a/resources/controller/uw.controller.Deed.js 
b/resources/controller/uw.controller.Deed.js
index 4dd6536..bb9a00f 100644
--- a/resources/controller/uw.controller.Deed.js
+++ b/resources/controller/uw.controller.Deed.js
@@ -28,10 +28,7 @@
 
uw.controller.Step.call(
this,
-   new uw.ui.Deed()
-   .connect( this, {
-   'next-step': 'validate'
-   } ),
+   new uw.ui.Deed(),
config
);
 
@@ -42,11 +39,12 @@
 
DP = Deed.prototype;
 
-   DP.validate = function () {
+   DP.moveFrom = function () {
+   var valid = this.deedChooser.valid();
// validate has the side effect of notifying the user of 
problems, or removing existing notifications.
// if returns false, you can assume there are notifications in 
the interface.
-   if ( this.deedChooser.valid() ) {
-   this.emit( 'next-step' );
+   if ( valid ) {
+   uw.controller.Step.prototype.moveFrom.call( this );
}
};
 
diff --git a/resources/mw.UploadWizardDeed.js b/resources/mw.UploadWizardDeed.js
index 1e42ba9..c616a66 100644
--- a/resources/mw.UploadWizardDeed.js
+++ b/resources/mw.UploadWizardDeed.js
@@ -430,6 +430,7 @@
// do not short-circuit.
var formValid = this.$form.valid(),
licenseInputValid = 
this.licenseInput.valid();
+
return formValid  licenseInputValid;
}
} );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3c529320eaf9258f7fd5ce053ec560fd01419f12
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: MarkTraceur mtrac...@member.fsf.org

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


[MediaWiki-commits] [Gerrit] Update message documentation - change (mediawiki...TimedMediaHandler)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Update message documentation
..


Update message documentation

Was split off from Change-Id: I65c59bc3b93276

Change-Id: If531543834aea11dbe4f944e0dcf98603a649057
---
M i18n/qqq.json
1 file changed, 36 insertions(+), 22 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/i18n/qqq.json b/i18n/qqq.json
index f49ad19..b8afb67 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -74,28 +74,42 @@
timedmedia-source-file: The source file. Parameters:\n* $1 - file 
type; any one of the following messages:\n** {{msg-mw|Timedmedia-ogg}}\n** 
{{msg-mw|Timedmedia-webm}}\n** {{msg-mw|Timedmedia-mp4}}\n** 
{{msg-mw|Timedmedia-flac}}\n** {{msg-mw|Timedmedia-wav}}\nSee also:\n* 
{{msg-mw|Timedmedia-source-audio-file-desc}}\n* 
{{msg-mw|Timedmedia-source-file-desc}}\n{{Identical|Source}},
timedmedia-source-file-desc: Source file description. This is a file 
title in the primary source attributes of a timed media file. I can look like 
\''Original Ogg file, 640 × 480 (10 Mbps)''\.\n\nParameters:\n* $1 - file 
type; any one of the following messages:\n** {{msg-mw|Timedmedia-ogg}}\n** 
{{msg-mw|Timedmedia-webm}}\n** {{msg-mw|Timedmedia-mp4}}\n** 
{{msg-mw|Timedmedia-flac}}\n** {{msg-mw|Timedmedia-wav}}\n* $2 - resolution 
width\n* $3 - resolution height\n* $4 - human readable bitrate\nSee also:\n* 
{{msg-mw|Timedmedia-source-audio-file-desc}} - for audio file,
timedmedia-source-audio-file-desc: Source file description. 
Parameters:\n* $1 - file type; any one of the following messages:\n** 
{{msg-mw|Timedmedia-ogg}}\n** {{msg-mw|Timedmedia-webm}}\n** 
{{msg-mw|Timedmedia-mp4}}\n** {{msg-mw|Timedmedia-flac}}\n** 
{{msg-mw|Timedmedia-wav}}\n* $2 - human readable bitrate\nSee also:\n* 
{{msg-mw|Timedmedia-source-file-desc}} - for video file,
-   timedmedia-derivative-160p.ogv: {{optional}},
-   timedmedia-derivative-360p.ogv: {{optional}},
-   timedmedia-derivative-480p.ogv: {{optional}},
-   timedmedia-derivative-720p.ogv: {{optional}},
-   timedmedia-derivative-1080p.ogv: {{optional}},
-   timedmedia-derivative-160p.webm: {{optional}},
-   timedmedia-derivative-360p.webm: {{optional}},
-   timedmedia-derivative-480p.webm: {{optional}},
-   timedmedia-derivative-720p.webm: {{optional}},
-   timedmedia-derivative-1080p.webm: {{optional}},
-   timedmedia-derivative-320p.mp4: {{optional}},
-   timedmedia-derivative-480p.mp4: {{optional}},
-   timedmedia-derivative-720p.mp4: {{optional}},
-   timedmedia-derivative-1080p.mp4: {{optional}},
-   timedmedia-derivative-ogg: {{optional}},
-   timedmedia-derivative-desc-ogg: {{optional}},
-   timedmedia-derivative-opus: {{optional}},
-   timedmedia-derivative-desc-opus: {{optional}},
-   timedmedia-derivative-mp3: {{optional}},
-   timedmedia-derivative-desc-mp3: {{optional}},
-   timedmedia-derivative-m4a: {{optional}},
-   timedmedia-derivative-desc-m4a: {{optional}},
+   timedmedia-derivative-160p.ogv: {{optional}}  A type of media format 
encoding,
+   timedmedia-derivative-desc-160p.ogv: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-360p.ogv: {{optional}}  A type of media format 
encoding,
+   timedmedia-derivative-desc-360p.ogv: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-480p.ogv: {{optional}}  A type of media format 
encoding,
+   timedmedia-derivative-desc-480p.ogv: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-720p.ogv: {{optional}}  A type of media format 
encoding,
+   timedmedia-derivative-desc-720p.ogv: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-1080p.ogv: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-1080p.ogv: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-160p.webm: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-160p.webm: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-360p.webm: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-360p.webm: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-480p.webm: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-480p.webm: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-720p.webm: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-720p.webm: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-1080p.webm: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-1080p.webm: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-320p.mp4: 

[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 doug...@chippy.ch

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


[MediaWiki-commits] [Gerrit] Fix typo in help message - change (mediawiki...release)

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

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

Change subject: Fix typo in help message
..

Fix typo in help message

Change-Id: I26cfb049e9eb1fd343b18b21fd4dde4a866019e5
---
M make-release/make-release.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/tools/release 
refs/changes/81/213481/1

diff --git a/make-release/make-release.py b/make-release/make-release.py
index 5ad00e8..5739612 100755
--- a/make-release/make-release.py
+++ b/make-release/make-release.py
@@ -116,7 +116,7 @@
 parser.add_argument(
 '--list-bundled', dest='list_bundled',
 action='store_true',
-help='List all bundled extensions for the given versoin and quit'
+help='List all bundled extensions for the given version and quit'
 )
 
 return parser.parse_args()

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I26cfb049e9eb1fd343b18b21fd4dde4a866019e5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/tools/release
Gerrit-Branch: master
Gerrit-Owner: Lewis Cawte le...@lewiscawte.me

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


[MediaWiki-commits] [Gerrit] Don't try to initialise watchstar on main page - change (mediawiki...MobileFrontend)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Don't try to initialise watchstar on main page
..


Don't try to initialise watchstar on main page

No watchstar is present on the main page

Change-Id: I7fa6be4101aa07206a3462f8c110754c70fbe29a
---
M includes/skins/SkinMinerva.php
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Florianschmidtwelzow: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php
index 48a3a43..3fb2754 100644
--- a/includes/skins/SkinMinerva.php
+++ b/includes/skins/SkinMinerva.php
@@ -164,7 +164,10 @@
 * @return boolean
 */
protected function isAllowedPageAction( $action ) {
-   if ( in_array( $action, $this-getMFConfig()-get( 
'MFPageActions' ) ) ) {
+   $title = $this-getTitle();
+   // All actions disabled on main apge.
+   if ( !$title-isMainPage() 
+   in_array( $action, $this-getMFConfig()-get( 
'MFPageActions' ) ) ) {
return true;
} else {
return false;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7fa6be4101aa07206a3462f8c110754c70fbe29a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson jrob...@wikimedia.org
Gerrit-Reviewer: Florianschmidtwelzow florian.schmidt.wel...@t-online.de
Gerrit-Reviewer: jenkins-bot 

___
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 doug...@chippy.ch

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


[MediaWiki-commits] [Gerrit] jquery.tipsy: Improve accessibility slightly - change (mediawiki/core)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: jquery.tipsy: Improve accessibility slightly
..


jquery.tipsy: Improve accessibility slightly

- use role tooltip
- use aria-hidden when element is hidden
- use focus and blur in case of trigger:hover as well

Bug: T65960
Change-Id: Ib7746458e11e068e43cdc3c168751e81f9d9876e
---
M resources/src/jquery.tipsy/jquery.tipsy.js
1 file changed, 24 insertions(+), 6 deletions(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/src/jquery.tipsy/jquery.tipsy.js 
b/resources/src/jquery.tipsy/jquery.tipsy.js
index 2a37fa8..29b7490 100644
--- a/resources/src/jquery.tipsy/jquery.tipsy.js
+++ b/resources/src/jquery.tipsy/jquery.tipsy.js
@@ -16,6 +16,7 @@
 this.$element = $(element);
 this.options = options;
 this.enabled = true;
+this.keyHandler = $.proxy( this.closeOnEsc, this );
 this.fixTitle();
 }
 
@@ -30,7 +31,10 @@
 if (this.options.className) {
 $tip.addClass(maybeCall(this.options.className, 
this.$element[0]));
 }
-$tip.remove().css({top: 0, left: 0, visibility: 'hidden', 
display: 'block'}).appendTo(document.body);
+$tip.remove()
+.css({top: 0, left: 0, visibility: 'hidden', display: 
'block'})
+.attr( 'aria-hidden', 'true' )
+.appendTo(document.body);
 
 var pos = $.extend({}, this.$element.offset(), {
 width: this.$element[0].offsetWidth,
@@ -82,15 +86,22 @@
 }
 $tip.css(tp);
 
+$( document ).on( 'keydown', this.keyHandler );
 if (this.options.fade) {
-$tip.stop().css({opacity: 0, display: 'block', visibility: 
'visible'}).animate({opacity: this.options.opacity}, 100);
+$tip.stop()
+.css({opacity: 0, display: 'block', visibility: 
'visible'})
+.attr( 'aria-hidden', 'false' )
+.animate({opacity: this.options.opacity}, 100);
 } else {
-$tip.css({visibility: 'visible', opacity: 
this.options.opacity});
+$tip
+.css({visibility: 'visible', opacity: 
this.options.opacity})
+.attr( 'aria-hidden', 'false' );
 }
 }
 },
 
 hide: function() {
+$( document ).off( 'keydown', this.keyHandler );
 if (this.options.fade) {
 this.tip().stop().fadeOut(100, function() { $(this).remove(); 
});
 } else {
@@ -120,7 +131,7 @@
 
 tip: function() {
 if (!this.$tip) {
-this.$tip = $('div class=tipsy/div').html('div 
class=tipsy-arrow/divdiv class=tipsy-inner/div');
+this.$tip = $('div class=tipsy 
role=tooltip/div').html('div class=tipsy-arrow/divdiv 
class=tipsy-inner/div');
 }
 return this.$tip;
 },
@@ -130,6 +141,13 @@
 this.hide();
 this.$element = null;
 this.options = null;
+}
+},
+
+// $.proxy event handler
+closeOnEsc: function ( e ) {
+if ( e.keyCode === 27 ) {
+this.hide();
 }
 },
 
@@ -183,8 +201,8 @@
 if (!options.live) this.each(function() { get(this); });
 
 if ( options.trigger != 'manual' ) {
-var eventIn  = options.trigger == 'hover' ? 'mouseenter' : 'focus',
-eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
+var eventIn  = options.trigger == 'hover' ? 'mouseenter focus' : 
'focus',
+eventOut = options.trigger == 'hover' ? 'mouseleave blur' : 
'blur';
 if ( options.live ) {
 mw.track( 'mw.deprecate', 'tipsy-live' );
 mw.log.warn( 'Use of the live option of jquery.tipsy is 
deprecated.' );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib7746458e11e068e43cdc3c168751e81f9d9876e
Gerrit-PatchSet: 7
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: TheDJ hartman.w...@gmail.com
Gerrit-Reviewer: Bartosz Dziewoński matma@gmail.com
Gerrit-Reviewer: Jack Phoenix j...@countervandalism.net
Gerrit-Reviewer: Jackmcbarn jackmcb...@gmail.com
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Use the power of alphabet to ensure reset file loads first. - change (mediawiki...MobileFrontend)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Use the power of alphabet to ensure reset file loads first.
..


Use the power of alphabet to ensure reset file loads first.

Change-Id: Ib6c3eb1afcd7cdb58f33642aa31c11b7cbed05d6
---
M includes/Resources.php
M includes/skins/SkinMinerva.php
R resources/skins.minerva.base.reset/reset.less
3 files changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Florianschmidtwelzow: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/Resources.php b/includes/Resources.php
index fb084ba..0fcd330 100644
--- a/includes/Resources.php
+++ b/includes/Resources.php
@@ -30,9 +30,9 @@
  * these with respect to caching.
 **/
 $wgMinervaStyleModules = array(
-   'skins.minerva.reset' = $wgMFResourceFileModuleBoilerplate + array(
+   'skins.minerva.base.reset' = $wgMFResourceFileModuleBoilerplate + 
array(
'styles' = array(
-   'resources/skins.minerva.reset/reset.less',
+   'resources/skins.minerva.base.reset/reset.less',
),
),
 
@@ -40,7 +40,7 @@
'skins.minerva.chrome.styles' = $wgMFResourceFileModuleBoilerplate + 
array(
'position' = 'top',
'styles' = array(
-   'resources/skins.minerva.reset/reset.less',
+   'resources/skins.minerva.base.reset/reset.less',
'less/ui.less',
'less/pageactions.less',
'less/footer.less',
diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php
index 35ce177..e6451a5 100644
--- a/includes/skins/SkinMinerva.php
+++ b/includes/skins/SkinMinerva.php
@@ -1027,7 +1027,7 @@
protected function getSkinStyles() {
$title = $this-getTitle();
$styles = array(
-   'skins.minerva.reset',
+   'skins.minerva.base.reset',
'skins.minerva.base.styles',
'skins.minerva.content.styles',
'skins.minerva.tablet.styles',
diff --git a/resources/skins.minerva.reset/reset.less 
b/resources/skins.minerva.base.reset/reset.less
similarity index 100%
rename from resources/skins.minerva.reset/reset.less
rename to resources/skins.minerva.base.reset/reset.less

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib6c3eb1afcd7cdb58f33642aa31c11b7cbed05d6
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson jrob...@wikimedia.org
Gerrit-Reviewer: Florianschmidtwelzow florian.schmidt.wel...@t-online.de
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Create daily stats for VisualEditor localisation - change (translatewiki)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Create daily stats for VisualEditor localisation
..


Create daily stats for VisualEditor localisation

Change-Id: I3814aff35c57ea177fa180a17510cf9b3e9ea2c2
---
M bin/twn-wikistats
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/bin/twn-wikistats b/bin/twn-wikistats
index 6956ddf..0b64731 100755
--- a/bin/twn-wikistats
+++ b/bin/twn-wikistats
@@ -21,3 +21,4 @@
 $BASEDIR/wikistats $WIKI $USER Translating:Wikia/stats $PARAMS 
--groups=wikia-0-all
 $BASEDIR/wikistats $WIKI $USER Translating:WikiBlame/stats/trunk 
$PARAMS --groups=out-wikiblame
 $BASEDIR/wikistats $WIKI $USER 
Project:MediaWiki_localisation_in_the_50_most_spoken_languages 
--most=wikimedia --speakers --continent --summary 
--legenddetail=Stats-legend-detail --legendsummary=Stats-legend-summary
+$BASEDIR/wikistats $WIKI $USER User:Jdforrester/VEstats $PARAMS 
--groups=ext-visualeditor-0-all

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I3814aff35c57ea177fa180a17510cf9b3e9ea2c2
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Follow-up a43af3bc: Add Import integration test - change (mediawiki/core)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Follow-up a43af3bc: Add Import integration test
..


Follow-up a43af3bc: Add Import integration test

Previously failing test until fixed by a43af3bc.

Bug: T89307
Change-Id: I2be12fa7d439ba4ad7e00fdd0f73495322c870a6
---
A tests/phpunit/data/import/ImportLinkCacheIntegrationTest.xml
A tests/phpunit/includes/ImportLinkCacheIntegrationTest.php
2 files changed, 155 insertions(+), 0 deletions(-)

Approvals:
  TTO: Looks good to me, approved
  Jforrester: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/tests/phpunit/data/import/ImportLinkCacheIntegrationTest.xml 
b/tests/phpunit/data/import/ImportLinkCacheIntegrationTest.xml
new file mode 100644
index 000..8949f40
--- /dev/null
+++ b/tests/phpunit/data/import/ImportLinkCacheIntegrationTest.xml
@@ -0,0 +1,43 @@
+mediawiki xmlns=http://www.mediawiki.org/xml/export-0.6/; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://www.mediawiki.org/xml/export-0.6/ 
http://www.mediawiki.org/xml/export-0.6.xsd; version=0.6 xml:lang=en-gb
+  siteinfo
+sitenameMW-19/sitename
+basehttp://localhost:8080/w/index.php/Main_Page/base
+generatorMediaWiki 1.19.7/generator
+casefirst-letter/case
+  /siteinfo
+  page
+titleLorem ipsum/title
+ns0/ns
+id493/id
+  sha194lztkh4kgb0mvjr87iyjfq4iv7ltlh/sha1
+revision
+  id1358/id
+  timestamp2014-04-04T22:55:04Z/timestamp
+  contributor
+usernameTester/username
+id1/id
+  /contributor
+  text xml:space=preserve bytes=979[[Has text::Lorem ipsum dolor sit 
amet consectetuer Maecenas adipiscing Pellentesque id sem]]. [[Has page::Elit 
Aliquam urna interdum]] morbi faucibus id tellus ipsum semper wisi. [[Has 
page::Platea enim hendrerit]] pellentesque consectetuer scelerisque Sed est 
felis felis quis. Auctor Proin In dolor id et ipsum vel at vitae ut. Praesent 
elit convallis Praesent aliquet pellentesque vel dolor pellentesque lacinia 
vitae. At tortor lacus Sed In interdum pulvinar et.
+
+[[Has number::1001]] [[Has quantity::10.25 km²]] [[Has date::1 Jan 2014]] 
[[Has Url::http://loremipsum.org/]] [[Has annotation 
uri::http://loremipsum.org/foaf.rdf]] [[Has email::lo...@ipsum.org]] [[Has 
temperature::100 °C]] [[Has boolean::true]]
+
+[[Category:Lorem ipsum]]/text
+/revision
+  /page
+  page
+titleCategory:Lorem ipsum/title
+ns14/ns
+id496/id
+  sha1sir97j6uzt9ev2uyhaz1aj4i3spogih/sha1
+revision
+  id1355/id
+  timestamp2014-04-04T22:29:18Z/timestamp
+  contributor
+usernameTester/username
+id1/id
+  /contributor
+  text xml:space=preserve bytes=17[[Category:Main]]/text
+/revision
+  /page
+/mediawiki
+
diff --git a/tests/phpunit/includes/ImportLinkCacheIntegrationTest.php 
b/tests/phpunit/includes/ImportLinkCacheIntegrationTest.php
new file mode 100644
index 000..1433b89
--- /dev/null
+++ b/tests/phpunit/includes/ImportLinkCacheIntegrationTest.php
@@ -0,0 +1,112 @@
+?php
+/**
+ * Integration test that checks import success and
+ * LinkCache integration.
+ *
+ * @group medium
+ * @group Database
+ *
+ * @author mwjames
+ */
+class ImportLinkCacheIntegrationTest extends MediaWikiTestCase {
+
+   private $importStreamSource;
+
+   protected function setUp() {
+   parent::setUp();
+
+   $file = dirname( __DIR__ ) . 
'/data/import/ImportLinkCacheIntegrationTest.xml';
+
+   $this-importStreamSource = ImportStreamSource::newFromFile( 
$file );
+
+   if ( !$this-importStreamSource-isGood() ) {
+   throw new Exception( Import source for {$file} failed 
);
+   }
+   }
+
+   public function testImportForImportSource() {
+
+   $this-doImport( $this-importStreamSource );
+
+   // Imported title
+   $loremIpsum = Title::newFromText( 'Lorem ipsum' );
+
+   $this-assertSame(
+   $loremIpsum-getArticleID(),
+   $loremIpsum-getArticleID( Title::GAID_FOR_UPDATE )
+   );
+
+   $categoryLoremIpsum = Title::newFromText( 'Category:Lorem 
ipsum' );
+
+   $this-assertSame(
+   $categoryLoremIpsum-getArticleID(),
+   $categoryLoremIpsum-getArticleID( 
Title::GAID_FOR_UPDATE )
+   );
+
+   $page = new WikiPage( $loremIpsum );
+   $page-doDeleteArticle( 'import test: delete page' );
+
+   $page = new WikiPage( $categoryLoremIpsum );
+   $page-doDeleteArticle( 'import test: delete page' );
+   }
+
+   /**
+* @depends testImportForImportSource
+*/
+   public function testReImportForImportSource() {
+
+   $this-doImport( $this-importStreamSource );
+
+   

[MediaWiki-commits] [Gerrit] [WIP] Refactor Flickr code to be MVC-y - change (mediawiki...UploadWizard)

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

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

Change subject: [WIP] Refactor Flickr code to be MVC-y
..

[WIP] Refactor Flickr code to be MVC-y

Bug: T100153
Change-Id: I8237c4ed1a346a75f94cfa24f348a5e792576d8e
---
M UploadWizardHooks.php
A resources/controller/uw.controller.FlickrInput.js
M resources/controller/uw.controller.Upload.js
D resources/mw.FlickrChecker.js
M resources/mw.UploadWizard.js
A resources/ui/uw.ui.FlickrInput.js
M resources/ui/uw.ui.Upload.js
7 files changed, 393 insertions(+), 290 deletions(-)


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

diff --git a/UploadWizardHooks.php b/UploadWizardHooks.php
index 1ac24b0..1ec35ea 100644
--- a/UploadWizardHooks.php
+++ b/UploadWizardHooks.php
@@ -51,6 +51,7 @@
 
'uw.controller.Deed',
'uw.controller.Details',
+   'uw.controller.FlickrInput',
'uw.controller.Thanks',
'uw.controller.Tutorial',
'uw.controller.Upload',
@@ -89,9 +90,6 @@
'resources/mw.Firefogg.js',
'resources/handlers/mw.FirefoggHandler.js',
'resources/transports/mw.FirefoggTransport.js',
-
-   // flickr libraries
-   'resources/mw.FlickrChecker.js',
 
// interface libraries
'resources/mw.GroupProgressBar.js',
@@ -521,6 +519,18 @@
),
),
 
+   'uw.controller.FlickrInput' = array(
+   'scripts' = array(
+   
'resources/controller/uw.controller.FlickrInput.js',
+   ),
+
+   'dependencies' = array(
+   'oojs',
+   'uw.controller.base',
+   'uw.ui.FlickrInput',
+   ),
+   ),
+
'uw.controller.Step' = array(
'scripts' = array(
'resources/controller/uw.controller.Step.js',
@@ -688,6 +698,17 @@
),
),
 
+   'uw.ui.FlickrInput' = array(
+   'scripts' = array(
+   'resources/ui/uw.ui.FlickrInput.js',
+   ),
+
+   'dependencies' = array(
+   'oojs-ui',
+   'uw.ui.base',
+   ),
+   ),
+
'uw.ui.Tutorial' = array(
'scripts' = array(
'resources/ui/uw.ui.Tutorial.js',
diff --git a/resources/controller/uw.controller.FlickrInput.js 
b/resources/controller/uw.controller.FlickrInput.js
new file mode 100644
index 000..a550a04
--- /dev/null
+++ b/resources/controller/uw.controller.FlickrInput.js
@@ -0,0 +1,210 @@
+/*
+ * This file is part of the MediaWiki extension UploadWizard.
+ *
+ * UploadWizard is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * UploadWizard is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with UploadWizard.  If not, see http://www.gnu.org/licenses/.
+ */
+
+// Only turning these jshint options off for ''this file''
+/* jshint camelcase: false, nomen: false */
+/* jscs:disable disallowDanglingUnderscores, 
requireCamelCaseOrUpperCaseIdentifiers */
+( function ( mw, uw, $, oo ) {
+   var FIP;
+
+   /**
+* @class mw.uw.controller.FlickrInput
+* Input for Flickr images, validation.
+* @constructor
+* @param {mw.Api} api
+*/
+   function FlickrInput( api, config ) {
+   var input = this;
+
+   this.api = api;
+   this.apiUrl = config.flickrApiUrl;
+   this.apiKey = config.flickrApiKey;
+
+   this.ui = new uw.ui.FlickrInput( $( '#mwe-upwiz-files' ) )
+   .on( 'submit', function ( value ) {
+   input.checkFlickr( value );
+   } );
+   }
+
+   FIP = FlickrInput.prototype;
+
+   /**
+* Static list of all Flickr upload filenames.
+* Used to avoid name 

[MediaWiki-commits] [Gerrit] Make authentication window leniency configurable - change (mediawiki...OATHAuth)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Make authentication window leniency configurable
..


Make authentication window leniency configurable

Make window radius configurable by the system administrator, rather than
hardcoded.

Bug: 53194
Change-Id: I7fe1bfdfa1e7bfc07646a9704084977e17c65313
---
M OATHAuth.php
M OATHUser.php
2 files changed, 21 insertions(+), 2 deletions(-)

Approvals:
  CSteipp: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/OATHAuth.php b/OATHAuth.php
index f8c0a4a..60bc2e8 100644
--- a/OATHAuth.php
+++ b/OATHAuth.php
@@ -26,6 +26,21 @@
'descriptionmsg' = 'oathauth-desc',
 );
 
+/**
+ * The number of token windows in each direction that should be valid
+ *
+ * This tells OATH to accept tokens for a range of $wgOATHAuthWindowRadius * 2 
windows
+ * (which is effectively ((1 + 2 * $wgOATHAuthWindowRadius) * 30) seconds).
+ * This range of valid windows is centered around the current time.
+ *
+ * The purpose of this configuration variable is to account for differences 
between
+ * the user's clock and the server's clock. However, it is recommended to keep 
it as
+ * low as possible.
+ *
+ * @var int
+ */
+$wgOATHAuthWindowRadius = 4;
+
 $dir = __DIR__ . '/';
 
 $wgMessagesDirs['OATHAuth'] = __DIR__ . '/i18n';
diff --git a/OATHUser.php b/OATHUser.php
index 2e35266..f46d95f 100644
--- a/OATHUser.php
+++ b/OATHUser.php
@@ -143,6 +143,8 @@
 * @return Boolean
 */
public function verifyToken( $token, $reset = false ) {
+   global $wgOATHAuthWindowRadius;
+
$memc = ObjectCache::newAnything( array() );
 
// Prevent replay attacks
@@ -151,7 +153,9 @@
 
$retval = false;
$secret = $reset ? $this-secretReset : $this-secret;
-   $results = HOTP::generateByTimeWindow( Base32::decode( $secret 
), 30, -4, 4 );
+   $results = HOTP::generateByTimeWindow(
+   Base32::decode( $secret ),
+   30, -$wgOATHAuthWindowRadius, $wgOATHAuthWindowRadius );
// Check to see if the user's given token is in the list of 
tokens generated
// for the time window.
foreach ( $results as $window = $result ) {
@@ -175,7 +179,7 @@
}
 
if ( $retval ) {
-   $memc-set( $memcKey, $lastWindow, 30 * 8 );
+   $memc-set( $memcKey, $lastWindow, 30 * (1 + 2 * 
$wgOATHAuthWindowRadius) );
}
 
return $retval;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7fe1bfdfa1e7bfc07646a9704084977e17c65313
Gerrit-PatchSet: 9
Gerrit-Project: mediawiki/extensions/OATHAuth
Gerrit-Branch: master
Gerrit-Owner: Parent5446 tylerro...@gmail.com
Gerrit-Reviewer: CSteipp cste...@wikimedia.org
Gerrit-Reviewer: Jjanes jeff.ja...@gmail.com
Gerrit-Reviewer: Parent5446 tylerro...@gmail.com
Gerrit-Reviewer: Reedy s...@reedyboy.net
Gerrit-Reviewer: Ryan Lane r...@ryandlane.com
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Introduce wikipage.editform hook - change (mediawiki/core)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Introduce wikipage.editform hook
..


Introduce wikipage.editform hook

* New wikipage.editform hook (Bug T53583)
* Make editpage module emit wikipage.editform
* Make collapsibleFooter setup the .hiddencats .limitreport and
  .templatesUsed elements from the wikipage.editform hook

Bug: T55918
Change-Id: I515f7cdf4a6bbff2da3670946a12dc8027507226
---
M resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js
M resources/src/mediawiki.action/mediawiki.action.edit.js
M resources/src/mediawiki.action/mediawiki.action.edit.preview.js
3 files changed, 55 insertions(+), 30 deletions(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  jenkins-bot: Verified



diff --git 
a/resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js 
b/resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js
index 7ae51ab..bf1142b 100644
--- a/resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js
+++ b/resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js
@@ -1,21 +1,21 @@
-jQuery( document ).ready( function ( $ ) {
-   var collapsibleLists, i, handleOne;
+( function ( mw, $ ) {
+   var collapsibleLists, handleOne;
 
// Collapsible lists of categories and templates
collapsibleLists = [
{
-   $list: $( '.templatesUsed ul' ),
-   $toggler: $( '.mw-templatesUsedExplanation' ),
+   listSel: '.templatesUsed ul',
+   togglerSel: '.mw-templatesUsedExplanation',
cookieName: 'templates-used-list'
},
{
-   $list: $( '.hiddencats ul' ),
-   $toggler: $( '.mw-hiddenCategoriesExplanation' ),
+   listSel: '.hiddencats ul',
+   togglerSel: '.mw-hiddenCategoriesExplanation',
cookieName: 'hidden-categories-list'
},
{
-   $list: $( '.preview-limit-report-wrapper' ),
-   $toggler: $( '.mw-limitReportExplanation' ),
+   listSel: '.preview-limit-report-wrapper',
+   togglerSel: '.mw-limitReportExplanation',
cookieName: 'preview-limit-report'
}
];
@@ -47,8 +47,15 @@
} );
};
 
-   for ( i = 0; i  collapsibleLists.length; i++ ) {
-   // Pass to a function for iteration-local variables
-   handleOne( collapsibleLists[i].$list, 
collapsibleLists[i].$toggler, collapsibleLists[i].cookieName );
-   }
-} );
+   mw.hook( 'wikipage.editform' ).add( function ( $editForm ) {
+   var i;
+   for ( i = 0; i  collapsibleLists.length; i++ ) {
+   // Pass to a function for iteration-local variables
+   handleOne(
+   $editForm.find( collapsibleLists[i].listSel ),
+   $editForm.find( collapsibleLists[i].togglerSel 
),
+   collapsibleLists[i].cookieName
+   );
+   }
+   } );
+}( mediaWiki, jQuery ) );
diff --git a/resources/src/mediawiki.action/mediawiki.action.edit.js 
b/resources/src/mediawiki.action/mediawiki.action.edit.js
index 01a25f3..c9834f0 100644
--- a/resources/src/mediawiki.action/mediawiki.action.edit.js
+++ b/resources/src/mediawiki.action/mediawiki.action.edit.js
@@ -1,23 +1,40 @@
 /*!
  * Scripts for action=edit at domready
  */
-jQuery( function ( $ ) {
-   var editBox, scrollTop, $editForm;
+( function ( mw, $ ) {
+   'use strict';
 
-   // Make sure edit summary does not exceed byte limit
-   $( '#wpSummary' ).byteLimit( 255 );
+   /**
+* Fired when the editform is added to the edit page
+*
+* Similar to the {@link mw.hook#event-wikipage_content 
wikipage.content hook}
+* $editForm can still be detached when this hook is fired.
+*
+* @event wikipage_editform
+* @member mw.hook
+* @param {jQuery} $editForm The most appropriate element containing the
+*   editform, usually #editform.
+*/
 
-   // Restore the edit box scroll state following a preview operation,
-   // and set up a form submission handler to remember this state.
-   editBox = document.getElementById( 'wpTextbox1' );
-   scrollTop = document.getElementById( 'wpScrolltop' );
-   $editForm = $( '#editform' );
-   if ( $editForm.length  editBox  scrollTop ) {
-   if ( scrollTop.value ) {
-   editBox.scrollTop = scrollTop.value;
+   $( function () {
+   var editBox, scrollTop, $editForm;
+
+   // Make 

[MediaWiki-commits] [Gerrit] Allow to set message group IDs aliases to preserve incoming ... - change (mediawiki...Translate)

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

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

Change subject: Allow to set message group IDs aliases to preserve incoming 
links
..

Allow to set message group IDs aliases to preserve incoming links

Bug: T89813
Change-Id: I854433a2c8bf57c927da9ac0bba873edf4d0fb4a
---
M MessageGroups.php
M Translate.php
2 files changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/87/213487/1

diff --git a/MessageGroups.php b/MessageGroups.php
index 01cfe0f..b6c6f36 100644
--- a/MessageGroups.php
+++ b/MessageGroups.php
@@ -189,6 +189,11 @@
}
self::init();
 
+   global $wgTranslateGroupAliases;
+   if ( isset $wgTranslateGroupAliases[$id] ) {
+   $id = $wgTranslateGroupAliases[$id];
+   }
+
if ( isset( self::$groups[$id] ) ) {
if ( is_callable( self::$groups[$id] ) ) {
return call_user_func( self::$groups[$id], $id 
);
diff --git a/Translate.php b/Translate.php
index e1964a8..b6e73c4 100644
--- a/Translate.php
+++ b/Translate.php
@@ -486,6 +486,12 @@
  */
 $GLOBALS['wgTranslateWorkflowStates'] = false;
 
+/**
+ * Map from deprecated group IDs to their current ID
+ * Example value: array( 'core' = 'mediawiki-core', )
+ */
+$GLOBALS['wgTranslateGroupAliases'] = array();
+
 # /source
 # === System setup related configuration ===
 # source lang=php

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I854433a2c8bf57c927da9ac0bba873edf4d0fb4a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nemo bis federicol...@tiscali.it

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


[MediaWiki-commits] [Gerrit] Add tooltip to annotation indicator - change (mediawiki...CodeEditor)

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

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

Change subject: Add tooltip to annotation indicator
..

Add tooltip to annotation indicator

In the past I had made the annotation indicators clickable, and your
cursor will in this case navigate to the next annotation in editor.
This was not really easily discoverable, so I have added a tooltip to
make it slightly more discoverable.

I also added a CSS line to prevent users from accidently selecting the
text (or rather numbers) in this area, which I had noticed happened to
me at times when trying to click it.

Change-Id: I47ecba232ff925169d0f64d85ae34ff6564cc1a5
---
M CodeEditor.php
M i18n/en.json
M i18n/qqq.json
M modules/jquery.codeEditor.css
M modules/jquery.codeEditor.js
5 files changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CodeEditor 
refs/changes/93/213493/1

diff --git a/CodeEditor.php b/CodeEditor.php
index 74cea86..0feca04 100644
--- a/CodeEditor.php
+++ b/CodeEditor.php
@@ -58,6 +58,7 @@
'user.options',
),
'messages' = array(
+   'codeeditor-next-annotation',
'codeeditor-toolbar-toggle',
'codeeditor-save-with-errors'
)
diff --git a/i18n/en.json b/i18n/en.json
index 13eca13..9aaca60 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -6,6 +6,7 @@
 ]
 },
 codeeditor-desc: Syntax-highlighted editing for JavaScript and CSS 
pages using [http://ace.ajax.org/ Ace editor],
+codeeditor-next-annotation: Go to next annotation,
 codeeditor-toolbar-toggle: Toggle code editor,
 codeeditor-save-with-errors: The document contains errors. Are you sure 
you want to save?
 }
diff --git a/i18n/qqq.json b/i18n/qqq.json
index b438d00..52fa59e 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -8,6 +8,7 @@
]
},
codeeditor-desc: {{desc|name=Code 
Editor|url=https://www.mediawiki.org/wiki/Extension:CodeEditor}};,
+   codeeditor-next-annotation: Used as a label for button to navigate 
to the next line in the editor that has an annotation,
codeeditor-toolbar-toggle: Used as label for toolbar button.,
codeeditor-save-with-errors: Used as message in a dialog before 
saving a document with errors.
 }
diff --git a/modules/jquery.codeEditor.css b/modules/jquery.codeEditor.css
index 50c56d5..ee71d9c 100644
--- a/modules/jquery.codeEditor.css
+++ b/modules/jquery.codeEditor.css
@@ -26,6 +26,7 @@
 
 .codeEditor-status-worker {
padding: 0 0.3em;
+   user-select: none;
cursor: pointer;
display: table-cell;
*float: left;
diff --git a/modules/jquery.codeEditor.js b/modules/jquery.codeEditor.js
index 11cc2d0..46cc36b 100644
--- a/modules/jquery.codeEditor.js
+++ b/modules/jquery.codeEditor.js
@@ -331,6 +331,7 @@
$lineAndMode = $( 'div' ).addClass( 
'codeEditor-status-line' ),
$workerStatus = $( 'div' )
.addClass( 
'codeEditor-status-worker' )
+   .attr( 'title', mw.msg( 
'codeeditor-next-annotation' ) )
.append( $errors )
.append( $warnings )
.append( $infos );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I47ecba232ff925169d0f64d85ae34ff6564cc1a5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CodeEditor
Gerrit-Branch: master
Gerrit-Owner: TheDJ hartman.w...@gmail.com

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


[MediaWiki-commits] [Gerrit] Hygiene: Move less mixins to root folder - change (mediawiki...MobileFrontend)

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

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

Change subject: Hygiene: Move less mixins to root folder
..

Hygiene: Move less mixins to root folder

Change-Id: I5f088f160b82def34935d5eaed2e59027d9f8398
---
M MobileFrontend.php
D less/styleguide.md
R minerva.less/minerva.mixins.less
R minerva.less/minerva.variables.less
4 files changed, 1 insertion(+), 13 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/94/213494/1

diff --git a/MobileFrontend.php b/MobileFrontend.php
index aaf6376..bb19a01 100644
--- a/MobileFrontend.php
+++ b/MobileFrontend.php
@@ -180,7 +180,7 @@
 $wgConfigRegistry['mobilefrontend'] = 'GlobalVarConfig::newInstance';
 
 // Set LESS importpath
-$wgResourceLoaderLESSImportPaths[] = __DIR__ . /less/minerva.less/;
+$wgResourceLoaderLESSImportPaths[] = __DIR__ . /minerva.less/;
 
 // ResourceLoader modules
 
diff --git a/less/styleguide.md b/less/styleguide.md
deleted file mode 100644
index 3e6b0a8..000
--- a/less/styleguide.md
+++ /dev/null
@@ -1,12 +0,0 @@
-div class=content
-   h2Overview/h2
-
-   This document describes the UI patterns for mobile.
-
-   h2See Also/h2
-   ul
-   li
-   a href=../js/index.htmlDocumentation for 
JavaScript/a
-   /li
-   /ul
-/div
diff --git a/less/minerva.less/minerva.mixins.less 
b/minerva.less/minerva.mixins.less
similarity index 100%
rename from less/minerva.less/minerva.mixins.less
rename to minerva.less/minerva.mixins.less
diff --git a/less/minerva.less/minerva.variables.less 
b/minerva.less/minerva.variables.less
similarity index 100%
rename from less/minerva.less/minerva.variables.less
rename to minerva.less/minerva.variables.less

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5f088f160b82def34935d5eaed2e59027d9f8398
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson jrob...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] Hygiene: Move mobileoptions.js and templates into resources - change (mediawiki...MobileFrontend)

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

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

Change subject: Hygiene: Move mobileoptions.js and templates into resources
..

Hygiene: Move mobileoptions.js and templates into resources

Change-Id: If330c05292c156e8f909720da7c92cc8177b9cb8
---
M includes/Resources.php
R resources/mobile.special.mobileoptions.scripts/checkbox.mustache
R resources/mobile.special.mobileoptions.scripts/mobileoptions.js
3 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/95/213495/1

diff --git a/includes/Resources.php b/includes/Resources.php
index ad205a9..21b0635 100644
--- a/includes/Resources.php
+++ b/includes/Resources.php
@@ -1528,10 +1528,10 @@
'mobile.settings',
),
'scripts' = array(
-   'javascripts/specials/mobileoptions.js',
+   
'resources/resources/mobile.special.mobileoptions.scripts/mobileoptions.js',
),
'templates' = array(
-   'Checkbox.hogan' = 
'templates/specials/checkbox.mustache',
+   'Checkbox.hogan' = 
'resources/resources/mobile.special.mobileoptions.scripts/checkbox.mustache',
),
'messages' = array(
'mobile-frontend-expand-sections-description',
diff --git a/templates/specials/checkbox.mustache 
b/resources/mobile.special.mobileoptions.scripts/checkbox.mustache
similarity index 100%
rename from templates/specials/checkbox.mustache
rename to resources/mobile.special.mobileoptions.scripts/checkbox.mustache
diff --git a/javascripts/specials/mobileoptions.js 
b/resources/mobile.special.mobileoptions.scripts/mobileoptions.js
similarity index 100%
rename from javascripts/specials/mobileoptions.js
rename to resources/mobile.special.mobileoptions.scripts/mobileoptions.js

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If330c05292c156e8f909720da7c92cc8177b9cb8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson jrob...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] Update message documentation - change (mediawiki...TimedMediaHandler)

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

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

Change subject: Update message documentation
..

Update message documentation

Was split off from Change-Id: I65c59bc3b93276

Change-Id: If531543834aea11dbe4f944e0dcf98603a649057
---
M i18n/qqq.json
1 file changed, 36 insertions(+), 22 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TimedMediaHandler 
refs/changes/96/213496/1

diff --git a/i18n/qqq.json b/i18n/qqq.json
index f49ad19..b8afb67 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -74,28 +74,42 @@
timedmedia-source-file: The source file. Parameters:\n* $1 - file 
type; any one of the following messages:\n** {{msg-mw|Timedmedia-ogg}}\n** 
{{msg-mw|Timedmedia-webm}}\n** {{msg-mw|Timedmedia-mp4}}\n** 
{{msg-mw|Timedmedia-flac}}\n** {{msg-mw|Timedmedia-wav}}\nSee also:\n* 
{{msg-mw|Timedmedia-source-audio-file-desc}}\n* 
{{msg-mw|Timedmedia-source-file-desc}}\n{{Identical|Source}},
timedmedia-source-file-desc: Source file description. This is a file 
title in the primary source attributes of a timed media file. I can look like 
\''Original Ogg file, 640 × 480 (10 Mbps)''\.\n\nParameters:\n* $1 - file 
type; any one of the following messages:\n** {{msg-mw|Timedmedia-ogg}}\n** 
{{msg-mw|Timedmedia-webm}}\n** {{msg-mw|Timedmedia-mp4}}\n** 
{{msg-mw|Timedmedia-flac}}\n** {{msg-mw|Timedmedia-wav}}\n* $2 - resolution 
width\n* $3 - resolution height\n* $4 - human readable bitrate\nSee also:\n* 
{{msg-mw|Timedmedia-source-audio-file-desc}} - for audio file,
timedmedia-source-audio-file-desc: Source file description. 
Parameters:\n* $1 - file type; any one of the following messages:\n** 
{{msg-mw|Timedmedia-ogg}}\n** {{msg-mw|Timedmedia-webm}}\n** 
{{msg-mw|Timedmedia-mp4}}\n** {{msg-mw|Timedmedia-flac}}\n** 
{{msg-mw|Timedmedia-wav}}\n* $2 - human readable bitrate\nSee also:\n* 
{{msg-mw|Timedmedia-source-file-desc}} - for video file,
-   timedmedia-derivative-160p.ogv: {{optional}},
-   timedmedia-derivative-360p.ogv: {{optional}},
-   timedmedia-derivative-480p.ogv: {{optional}},
-   timedmedia-derivative-720p.ogv: {{optional}},
-   timedmedia-derivative-1080p.ogv: {{optional}},
-   timedmedia-derivative-160p.webm: {{optional}},
-   timedmedia-derivative-360p.webm: {{optional}},
-   timedmedia-derivative-480p.webm: {{optional}},
-   timedmedia-derivative-720p.webm: {{optional}},
-   timedmedia-derivative-1080p.webm: {{optional}},
-   timedmedia-derivative-320p.mp4: {{optional}},
-   timedmedia-derivative-480p.mp4: {{optional}},
-   timedmedia-derivative-720p.mp4: {{optional}},
-   timedmedia-derivative-1080p.mp4: {{optional}},
-   timedmedia-derivative-ogg: {{optional}},
-   timedmedia-derivative-desc-ogg: {{optional}},
-   timedmedia-derivative-opus: {{optional}},
-   timedmedia-derivative-desc-opus: {{optional}},
-   timedmedia-derivative-mp3: {{optional}},
-   timedmedia-derivative-desc-mp3: {{optional}},
-   timedmedia-derivative-m4a: {{optional}},
-   timedmedia-derivative-desc-m4a: {{optional}},
+   timedmedia-derivative-160p.ogv: {{optional}}  A type of media format 
encoding,
+   timedmedia-derivative-desc-160p.ogv: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-360p.ogv: {{optional}}  A type of media format 
encoding,
+   timedmedia-derivative-desc-360p.ogv: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-480p.ogv: {{optional}}  A type of media format 
encoding,
+   timedmedia-derivative-desc-480p.ogv: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-720p.ogv: {{optional}}  A type of media format 
encoding,
+   timedmedia-derivative-desc-720p.ogv: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-1080p.ogv: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-1080p.ogv: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-160p.webm: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-160p.webm: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-360p.webm: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-360p.webm: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-480p.webm: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-480p.webm: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-720p.webm: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-720p.webm: {{optional}} A type of media 
format encoding,
+   timedmedia-derivative-1080p.webm: {{optional}}  A type of media 
format encoding,
+   timedmedia-derivative-desc-1080p.webm: {{optional}} A type of 

[MediaWiki-commits] [Gerrit] Add tooltip to annotation indicator - change (mediawiki...CodeEditor)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add tooltip to annotation indicator
..


Add tooltip to annotation indicator

In the past I had made the annotation indicators clickable, and your
cursor will in this case navigate to the next annotation in editor.
This was not really easily discoverable, so I have added a tooltip to
make it slightly more discoverable.

I also added a CSS line to prevent users from accidently selecting the
text (or rather numbers) in this area, which I had noticed happened to
me at times when trying to click it.

Change-Id: I47ecba232ff925169d0f64d85ae34ff6564cc1a5
---
M CodeEditor.php
M i18n/en.json
M i18n/qqq.json
M modules/jquery.codeEditor.css
M modules/jquery.codeEditor.js
5 files changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/CodeEditor.php b/CodeEditor.php
index 74cea86..0feca04 100644
--- a/CodeEditor.php
+++ b/CodeEditor.php
@@ -58,6 +58,7 @@
'user.options',
),
'messages' = array(
+   'codeeditor-next-annotation',
'codeeditor-toolbar-toggle',
'codeeditor-save-with-errors'
)
diff --git a/i18n/en.json b/i18n/en.json
index 13eca13..9aaca60 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -6,6 +6,7 @@
 ]
 },
 codeeditor-desc: Syntax-highlighted editing for JavaScript and CSS 
pages using [http://ace.ajax.org/ Ace editor],
+codeeditor-next-annotation: Go to next annotation,
 codeeditor-toolbar-toggle: Toggle code editor,
 codeeditor-save-with-errors: The document contains errors. Are you sure 
you want to save?
 }
diff --git a/i18n/qqq.json b/i18n/qqq.json
index b438d00..52fa59e 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -8,6 +8,7 @@
]
},
codeeditor-desc: {{desc|name=Code 
Editor|url=https://www.mediawiki.org/wiki/Extension:CodeEditor}};,
+   codeeditor-next-annotation: Used as a label for button to navigate 
to the next line in the editor that has an annotation,
codeeditor-toolbar-toggle: Used as label for toolbar button.,
codeeditor-save-with-errors: Used as message in a dialog before 
saving a document with errors.
 }
diff --git a/modules/jquery.codeEditor.css b/modules/jquery.codeEditor.css
index 50c56d5..ee71d9c 100644
--- a/modules/jquery.codeEditor.css
+++ b/modules/jquery.codeEditor.css
@@ -26,6 +26,7 @@
 
 .codeEditor-status-worker {
padding: 0 0.3em;
+   user-select: none;
cursor: pointer;
display: table-cell;
*float: left;
diff --git a/modules/jquery.codeEditor.js b/modules/jquery.codeEditor.js
index 11cc2d0..46cc36b 100644
--- a/modules/jquery.codeEditor.js
+++ b/modules/jquery.codeEditor.js
@@ -331,6 +331,7 @@
$lineAndMode = $( 'div' ).addClass( 
'codeEditor-status-line' ),
$workerStatus = $( 'div' )
.addClass( 
'codeEditor-status-worker' )
+   .attr( 'title', mw.msg( 
'codeeditor-next-annotation' ) )
.append( $errors )
.append( $warnings )
.append( $infos );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I47ecba232ff925169d0f64d85ae34ff6564cc1a5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CodeEditor
Gerrit-Branch: master
Gerrit-Owner: TheDJ hartman.w...@gmail.com
Gerrit-Reviewer: Bartosz Dziewoński matma@gmail.com
Gerrit-Reviewer: Mattflaschen mflasc...@wikimedia.org
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] New Wikidata Build - 2015-05-25T10:00:01+0000 - change (mediawiki...Wikidata)

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

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

Change subject: New Wikidata Build - 2015-05-25T10:00:01+
..

New Wikidata Build - 2015-05-25T10:00:01+

Change-Id: Ia06418e56d6c1c000a9d8f23bae8e798d168d9f7
---
M composer.lock
M extensions/Wikibase/client/i18n/gu.json
M extensions/Wikibase/client/i18n/hi.json
M extensions/Wikibase/lib/i18n/gu.json
M extensions/Wikibase/lib/i18n/hi.json
M extensions/Wikibase/lib/i18n/kk-cyrl.json
M extensions/Wikibase/lib/i18n/sa.json
M extensions/Wikibase/lib/i18n/te.json
M extensions/Wikibase/repo/i18n/gu.json
M extensions/Wikibase/repo/i18n/hi.json
M extensions/Wikibase/repo/i18n/kk-cyrl.json
M vendor/composer/installed.json
12 files changed, 295 insertions(+), 21 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikidata 
refs/changes/02/213502/1

diff --git a/composer.lock b/composer.lock
index 628df6b..1d6bbf8 100644
--- a/composer.lock
+++ b/composer.lock
@@ -1213,12 +1213,12 @@
 source: {
 type: git,
 url: 
https://github.com/wikimedia/mediawiki-extensions-Wikibase.git;,
-reference: fa3e87e0439212afa2e16656a0d49d9ef5fac935
+reference: a0cafee1a1907b1548d66ef8d4940357f1f75a60
 },
 dist: {
 type: zip,
-url: 
https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/fa3e87e0439212afa2e16656a0d49d9ef5fac935;,
-reference: fa3e87e0439212afa2e16656a0d49d9ef5fac935,
+url: 
https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/a0cafee1a1907b1548d66ef8d4940357f1f75a60;,
+reference: a0cafee1a1907b1548d66ef8d4940357f1f75a60,
 shasum: 
 },
 require: {
@@ -1286,7 +1286,7 @@
 wikibaserepo,
 wikidata
 ],
-time: 2015-05-23 22:20:48
+time: 2015-05-24 21:10:42
 },
 {
 name: wikibase/wikimedia-badges,
diff --git a/extensions/Wikibase/client/i18n/gu.json 
b/extensions/Wikibase/client/i18n/gu.json
index 6658d11..5af2f00 100644
--- a/extensions/Wikibase/client/i18n/gu.json
+++ b/extensions/Wikibase/client/i18n/gu.json
@@ -4,7 +4,8 @@
Ashok modhvadia,
KartikMistry,
Vyom,
-   Arbhatt
+   Arbhatt,
+   NehalDaveND
]
},
tooltip-t-wikibase: ડેટા રીપોઝીટરીમાંની વસ્તુને સંકળતી કડી,
@@ -12,6 +13,10 @@
wikibase-dataitem: {{WBREPONAME}} વસ્તુ,
wikibase-editlinks: કડીઓમાં ફેરફાર કરો,
wikibase-editlinkstitle: આંતરવિકિ ભાષાઓની કડીમાં ફેરફાર કરો,
+   wikibase-linkitem-title: પાનાં સાથે જોડો,
+   wikibase-linkitem-linkpage: પાનાં સે જોડાયેલ,
+   wikibase-linkitem-input-site: ભાષા:,
+   wikibase-linkitem-confirmitem-button: પુષ્ટી કરો,
wikibase-rc-hide-wikidata: $1 {{WBREPONAME}},
wikibase-rc-hide-wikidata-hide: છુપાવો,
wikibase-rc-hide-wikidata-show: દર્શાવો,
diff --git a/extensions/Wikibase/client/i18n/hi.json 
b/extensions/Wikibase/client/i18n/hi.json
index 3affa15..21b14fd 100644
--- a/extensions/Wikibase/client/i18n/hi.json
+++ b/extensions/Wikibase/client/i18n/hi.json
@@ -4,7 +4,8 @@
Adithyavr,
Bill william compton,
Siddhartha Ghai,
-   बिप्लब आनन्द
+   बिप्लब आनन्द,
+   NehalDaveND
]
},
wikibase-client-desc: विकिबेस एक्सटेंशन के लिए क्लाइन्ट,
@@ -46,5 +47,6 @@
wikibase-rc-wikibase-edit-title: {{WBREPONAME}} परिवर्तन्,
wikibase-unconnectedpages-submit: जाएँ,
wikibase-unconnectedpages-invalid-language: \$1\ एक मान्य भाषा कोड 
नहीं है।,
+   wikibase-pageinfo-entity-id-none: कुछ नहीं,
wikibase-otherprojects: अन्य परियोजनाएँ
 }
diff --git a/extensions/Wikibase/lib/i18n/gu.json 
b/extensions/Wikibase/lib/i18n/gu.json
index 3dc6011..77c3f54 100644
--- a/extensions/Wikibase/lib/i18n/gu.json
+++ b/extensions/Wikibase/lib/i18n/gu.json
@@ -1,17 +1,27 @@
 {
@metadata: {
authors: [
-   KartikMistry
+   KartikMistry,
+   NehalDaveND
]
},
+   wikibase-error-unexpected: ક્ષતિ: $1,
+   wikibase-quantitydetails-amount: રકમ,
wikibase-timedetails-time: સમય,
wikibase-timedetails-timezone: સમયવિસ્તાર,
+   wikibase-timedetails-calendar: પંચાંગ,
wikibase-timedetails-before: પહેલાં,
wikibase-timedetails-after: પછી,
wikibase-globedetails-longitude: રેખાંશ,
wikibase-globedetails-latitude: અક્ષાંસ,
wikibase-globedetails-globe: 

[MediaWiki-commits] [Gerrit] Quotes and clarity in apihelp-query+messagecollection-param-... - change (mediawiki...Translate)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Quotes and clarity in 
apihelp-query+messagecollection-param-filter
..


Quotes and clarity in apihelp-query+messagecollection-param-filter

https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Apihelp-query%2Bmessagecollection-param-filter/en

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

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/i18n/api/en.json b/i18n/api/en.json
index 0b0bf36..f6e5f6e 100644
--- a/i18n/api/en.json
+++ b/i18n/api/en.json
@@ -27,7 +27,7 @@
apihelp-query+messagecollection-param-language: Language code.,
apihelp-query+messagecollection-param-limit: How many messages to 
show (after filtering).,
apihelp-query+messagecollection-param-offset: Integer or key offset 
for start.,
-   apihelp-query+messagecollection-param-filter: Message collection 
filters. Use ! to negate condition. For example !fuzzy means list only all 
non-fuzzy messages. Filters are applied in the order given.\n;fuzzy:Messages 
with fuzzy tag.\n;optional:Messages which should be translated only if changes 
are necessary.\n;ignored:Messages which are never 
translated.\n;hastranslation:Messages which have a translation regardless if it 
is fuzzy or not.\n;translated:Messages which have a translation which is not 
fuzzy.\n;changed:Messages which has been translated or changed since last 
export.\n;reviewer#58;#:Messages where given user ID # is among 
reviewers.\n;last-translator#58;#:Messages where given user ID # is the last 
translator.,
+   apihelp-query+messagecollection-param-filter: Message collection 
filters. Use kbd!/kbd to negate condition. For example kbd!fuzzy/kbd 
means list only all non-fuzzy messages. Filters are applied in the order 
given.\n;fuzzy:Messages with fuzzy tag.\n;optional:Messages which should be 
translated only if changes are necessary.\n;ignored:Messages which are never 
translated.\n;hastranslation:Messages which have a translation regardless if it 
is fuzzy or not.\n;translated:Messages which have a translation which is not 
fuzzy.\n;changed:Messages which have been translated or changed since last 
export.\n;reviewer58;N:Messages where the user number kbdN/kbd is among 
reviewers.\n;last-translator#58;N:Messages where the user number kbdN/kbd 
is the last translator.,
apihelp-query+messagecollection-param-prop: Which properties to 
get:\n;definition:Message definition.\n;translation:Current translation 
(without $1 string if any, use the tags to check for outdated or broken 
translations).\n;tags:Message tags, like optional, ignored and 
fuzzy.\n;properties:Message properties, like status, revision, last-translator. 
Can vary between messages.\n;revision:span 
class=\deprecated\Deprecated!/span Use $2prop=properties.,
apihelp-query+messagecollection-example-1: List of supported 
languages,
apihelp-query+messagecollection-example-2: List of non-optional 
message definitions for the group \page-Example\,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifdd22cfd6472c87468d4d569a8d8cf4eb0dcac34
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nemo bis federicol...@tiscali.it
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot 

___
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-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I3611a0d7716ef3b0fd9d8b981a0445800906e039
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Thanks
Gerrit-Branch: master
Gerrit-Owner: Microchip08 doug...@chippy.ch
Gerrit-Reviewer: Legoktm legoktm.wikipe...@gmail.com
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Added hatnote processing. - change (mediawiki...mobileapps)

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

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

Change subject: Added hatnote processing.
..

Added hatnote processing.

Change-Id: I02385b97b84a799536547227260d7ca36aa8b8ff
---
M routes/mobileapp-lite.js
1 file changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps 
refs/changes/09/213509/1

diff --git a/routes/mobileapp-lite.js b/routes/mobileapp-lite.js
index 57a99a0..23fe961 100644
--- a/routes/mobileapp-lite.js
+++ b/routes/mobileapp-lite.js
@@ -87,7 +87,6 @@
 var doc = domino.createDocument(section.text);
 rmSelectorAll(doc, 'div.noprint');
 rmSelectorAll(doc, 'div.infobox');
-rmSelectorAll(doc, 'div.hatnote');
 rmSelectorAll(doc, 'div.metadata');
 rmSelectorAll(doc, 'table'); // TODO: later we may want to transform some 
of the tables into a JSON structure
 
@@ -97,6 +96,14 @@
 var itemIndex = 0;
 var thumbnails, tid, thumb;
 
+var hatnotes = doc.querySelectorAll(div.hatnote) || [];
+for (var hid = 0; hid  hatnotes.length; hid++) {
+section.items[itemIndex] = {};
+section.items[itemIndex].type = hatnote;
+section.items[itemIndex].text = hatnotes[hid].innerHTML;
+itemIndex++;
+}
+
 var ps = doc.querySelectorAll(p) || [];
 for (var pid = 0; pid  ps.length; pid++) {
 var p = ps[pid];

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I02385b97b84a799536547227260d7ca36aa8b8ff
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Dbrant dbr...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] Set $::ipaddress_eth0 as the default IP address - change (operations...cassandra)

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

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

Change subject: Set $::ipaddress_eth0 as the default IP address
..

Set $::ipaddress_eth0 as the default IP address

All of the relevant IP addresses in Cassandra (listen_address,
rpc_address, seeds) need to point to a public network interface by
default. However, using $::ipaddress causes Puppet to pick the first
one, even if it is a private iface. This patch switches the default to
be $::ipaddress_eth0

Note: this change does not affect the actual configuration in
production, as there the first iface happens to be eth0.

Bug: T99564
Change-Id: I0eb118825bc98c2e4c9d0f673d3af522836ac21b
---
M manifests/init.pp
1 file changed, 7 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet/cassandra 
refs/changes/11/213511/1

diff --git a/manifests/init.pp b/manifests/init.pp
index bb7baa3..0010b04 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -23,7 +23,7 @@
 #
 # [*seeds*]
 #   Array of seed IPs for this Cassandra cluster.
-#   Default: [$::ipaddress]
+#   Default: [$::ipaddress_eth0]
 #
 # [*num_tokens*]
 #   Number of tokens randomly assigned to this node on the ring.
@@ -88,7 +88,7 @@
 #   Default: 7000
 #
 # [*listen_address*]
-#   Cassandra listen IP address.  Default $::ipaddress
+#   Cassandra listen IP address.  Default $::ipaddress_eth0
 #
 # [*broadcast_address*]
 #   IP address to broadcast to other Cassandra nodes.  Default: undef (uses 
$listen _address)
@@ -103,7 +103,8 @@
 #   Whether to start the thrift rpc server.  Default: true
 #
 # [*rpc_address*]
-#   IP address to bind the Thrift RPC service and native transport server.  
Default: $::ipaddress
+#   IP address to bind the Thrift RPC service and native transport server.
+#   Default: $::ipaddress_eth0
 #
 # [*rpc_port*]
 #   Port for Thrift to listen for clients on.  Default: 9160
@@ -174,7 +175,7 @@
 #
 class cassandra(
 $cluster_name = 'Test Cluster',
-$seeds= [$::ipaddress],
+$seeds= [$::ipaddress_eth0],
 $num_tokens   = 256,
 $authenticator= true,
 $authorizor   = true,
@@ -188,12 +189,12 @@
 $concurrent_writes= 32,
 $concurrent_counter_writes= 32,
 $storage_port = 7000,
-$listen_address   = $::ipaddress,
+$listen_address   = $::ipaddress_eth0,
 $broadcast_address= undef,
 $start_native_transport   = 'true',
 $native_transport_port= 9042,
 $start_rpc= 'true',
-$rpc_address  = $::ipaddress,
+$rpc_address  = $::ipaddress_eth0,
 $rpc_port = 9160,
 $rpc_server_type  = 'sync',
 $incremental_backups  = 'false',

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0eb118825bc98c2e4c9d0f673d3af522836ac21b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet/cassandra
Gerrit-Branch: master
Gerrit-Owner: Mobrovac mobro...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] registration: Fix 'ResourceModules' in schema - change (mediawiki/core)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: registration: Fix 'ResourceModules' in schema
..


registration: Fix 'ResourceModules' in schema

Change-Id: I6fb833133a6d6bde42cb40eb8fd7e02f7ca9797a
---
M docs/extension.schema.json
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/docs/extension.schema.json b/docs/extension.schema.json
index 3b75b72..d5c17a1 100644
--- a/docs/extension.schema.json
+++ b/docs/extension.schema.json
@@ -297,7 +297,7 @@
}
}
},
-   ResourceLoaderModules: {
+   ResourceModules: {
type: object,
description: ResourceLoader modules to register,
additionalProperties: false,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I6fb833133a6d6bde42cb40eb8fd7e02f7ca9797a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm legoktm.wikipe...@gmail.com
Gerrit-Reviewer: Chad ch...@wikimedia.org
Gerrit-Reviewer: Jforrester jforres...@wikimedia.org
Gerrit-Reviewer: Waldir wal...@email.com
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Depooling db1018 for maintenance and testing References T99485 - change (operations/mediawiki-config)

2015-05-25 Thread Jcrespo (Code Review)
Jcrespo has submitted this change and it was merged.

Change subject: Depooling db1018 for maintenance and testing References T99485
..


Depooling db1018 for maintenance and testing
References T99485

Change-Id: Ie5b69989608327552f9b7e5f1579ed522b7d7425
---
M wmf-config/db-eqiad.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jcrespo: Looks good to me, approved



diff --git a/wmf-config/db-eqiad.php b/wmf-config/db-eqiad.php
index 6ee18e5..ddd4ed0 100755
--- a/wmf-config/db-eqiad.php
+++ b/wmf-config/db-eqiad.php
@@ -102,7 +102,7 @@
'db1024' = 0,   # 1.4TB  64GB
'db1021' = 0,   # 1.4TB  64GB, dump, vslow
'db1036' = 200, # 1.4TB  64GB, watchlist, recentchanges, 
contributions, logpager
-   'db1018' = 200, # 1.4TB  64GB
+#  'db1018' = 200, # 1.4TB  64GB temporarelly disabled for 
maintenance
'db1054' = 200, # 2.8TB  96GB, api
'db1060' = 200, # 2.8TB  96GB, api
'db1063' = 400, # 2.8TB 128GB

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie5b69989608327552f9b7e5f1579ed522b7d7425
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jcrespo jcre...@wikimedia.org
Gerrit-Reviewer: Jcrespo jcre...@wikimedia.org
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] RESTBase: Set Graphoid address for deployment-prep - change (operations/puppet)

2015-05-25 Thread Alexandros Kosiaris (Code Review)
Alexandros Kosiaris has submitted this change and it was merged.

Change subject: RESTBase: Set Graphoid address for deployment-prep
..


RESTBase: Set Graphoid address for deployment-prep

This patch sets the RESTBase configuration in deployment-prep to point
to deployment-sca01 for Graphoid. It effectivelly reverts
I125d94cfd5bc76a7fcc445503d7033ed0306989a and moves the config from
labs/restbase/common.yaml to labs/deployment-prep/common.yaml

Bug: T99885
Change-Id: I01afb0f5f552ce3d5cdc7ed068a27423022d0252
---
M hieradata/labs/deployment-prep/common.yaml
M hieradata/labs/restbase/common.yaml
2 files changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Alexandros Kosiaris: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/hieradata/labs/deployment-prep/common.yaml 
b/hieradata/labs/deployment-prep/common.yaml
index 7d30b06..2bb760d 100644
--- a/hieradata/labs/deployment-prep/common.yaml
+++ b/hieradata/labs/deployment-prep/common.yaml
@@ -39,6 +39,7 @@
 restbase::statsd_host: labmon1001.eqiad.wmnet
 restbase::logstash_host: deployment-logstash1.eqiad.wmflabs
 restbase::cassandra_defaultConsistency: localQuorum
+restbase::graphoid_host_port: http://deployment-sca01.eqiad.wmflabs:19000
 mediawiki::log_aggregator: deployment-fluorine.eqiad.wmflabs:8420
 mediawiki::forward_syslog: deployment-logstash1.eqiad.wmflabs:10514
 mediawiki_memcached_servers:
diff --git a/hieradata/labs/restbase/common.yaml 
b/hieradata/labs/restbase/common.yaml
index 3cfa1f9..7c69d4a 100644
--- a/hieradata/labs/restbase/common.yaml
+++ b/hieradata/labs/restbase/common.yaml
@@ -2,5 +2,3 @@
   - localhost
 logstash_port: 12201
 logstash_host: deployment-logstash1.eqiad.wmflabs
-# deployment-sca01
-graphoid_host_port: http://10.68.17.54:19000

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I01afb0f5f552ce3d5cdc7ed068a27423022d0252
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mobrovac mobro...@wikimedia.org
Gerrit-Reviewer: Alexandros Kosiaris akosia...@wikimedia.org
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Version 2.0 Release Candidate 1 - change (pywikibot/core)

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

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

Change subject: Version 2.0 Release Candidate 1
..

Version 2.0 Release Candidate 1

Change-Id: I83fb8ce96a954ea15d7634a7ae526f2b252258be
---
M ChangeLog
M docs/conf.py
M setup.py
3 files changed, 37 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/12/213512/1

diff --git a/ChangeLog b/ChangeLog
index 12772a4..4e94e4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,39 @@
 
+Release 2.0rc1 (25 May 2015)
+
+Major changes include:
+
+- Sphinx documentation at https://doc.wikimedia.org/pywikibot/
+- i18n data uses JSON format
+- Python 3 support fixes
+- Support for Python warning system
+- Python 3 ipaddress support
+- unicode_literals used throughout source code
+- initial ProofreadPage support
+- batch upload support
+- improved diff output, with context
+- daemonize support
+- Wikibase support for isbn script
+- Wikibase redirect support
+- Optionally uses external library for improved isbn validation
+- generate_user_files automatic mode
+- Improve performance for replaceExcept
+- api layer support for boolean and date datatypes
+- api badtoken recovery
+- api client side prevention of anonymous writes
+- Allow pywikibot to load without i18n data
+- Appveyor CI Win32 builds
+- compat scripts patrol.py and piper.py ported
+- Page.content_model added
+- Page.contributors() and Page.revision_count() added
+- FilePage.latest_file_info and FilePage.oldest_file_info added
+- APISite.compare added
+- Site.undelete and Page.undelete added
+- DataSite.search_entities support
+- RecentChanges stream (rcstream) support
+- Improved MediaWiki version detection
+- ItemClaimFilterPageGenerator added
+
 Release 2.0b3 (30 November 2014)
 
 Major changes include:
diff --git a/docs/conf.py b/docs/conf.py
index 84ed0a8..a7b4ec4 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -52,7 +52,7 @@
 # The short X.Y version.
 version = '2.0'
 # The full version, including alpha/beta/rc tags.
-release = '2.0b3'
+release = '2.0rc1'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff --git a/setup.py b/setup.py
index fb92b4c..db13b1e 100644
--- a/setup.py
+++ b/setup.py
@@ -134,7 +134,7 @@
 from setuptools import setup, find_packages
 
 name = 'pywikibot'
-version = '2.0b3'
+version = '2.0rc1'
 github_url = 'https://github.com/wikimedia/pywikibot-core'
 download_url = github_url + '/archive/master.zip#egg=' + name + '-' + version
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I83fb8ce96a954ea15d7634a7ae526f2b252258be
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg jay...@gmail.com

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


[MediaWiki-commits] [Gerrit] Update doc strings and minor code parts from core - change (pywikibot/compat)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Update doc strings and minor code parts from core
..


Update doc strings and minor code parts from core

Change-Id: I52283b4533d5556d6f7c55ebce8a970a66845fe6
---
M solve_disambiguation.py
1 file changed, 69 insertions(+), 36 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/solve_disambiguation.py b/solve_disambiguation.py
index 678302e..1fb5a37 100644
--- a/solve_disambiguation.py
+++ b/solve_disambiguation.py
@@ -6,9 +6,11 @@
 Specify the disambiguation page on the command line, or enter it at the
 prompt after starting the program. (If the disambiguation page title starts
 with a '-', you cannot name it on the command line, but you can enter it at
-the prompt.)  The program will pick up the page, and look for all
-alternative links, and show them with a number adjacent to them.  It will
-then automatically loop over all pages referring to the disambiguation page,
+the prompt.)
+
+The program will pick up the page, and look for all alternative links,
+and show them with a number adjacent to them.  It will then automatically
+loop over all pages referring to the disambiguation page,
 and show 30 characters of context on each side of the reference to help you
 make the decision between the alternatives.  It will ask you to type the
 number of the appropriate replacement, and perform the change.
@@ -279,8 +281,8 @@
 u'Wikipedy:Fangnet',
 ],
 'hu': [
-#hu:Wikipédia:Kocsmafal (egyéb)#Hol nem kell egyértelműsíteni?
-#2012-02-08
+# hu:Wikipédia:Kocsmafal (egyéb)#Hol nem kell egyértelműsíteni?
+# 2012-02-08
 u'Wikipédia:(?!Sportműhely/Eddigi cikkeink).*',
 u'.*\(egyértelműsítő lap\)$',
 u'.*[Vv]ita:.*',
@@ -373,11 +375,15 @@
 return string[0].upper() + string[1:]
 
 
+def first_lower(string):
+return string[:1].lower() + string[1:]
+
+
 def correctcap(link, text):
 # If text links to a page with title link uncapitalized, uncapitalize link,
 # otherwise capitalize it
 linkupper = link.title()
-linklower = linkupper[0].lower() + linkupper[1:]
+linklower = first_lower(linkupper)
 if [[%s]] % linklower in text or [[%s| % linklower in text:
 return linklower
 else:
@@ -404,6 +410,9 @@
 
 
 class ReferringPageGeneratorWithIgnore:
+
+Referring Page generator, with an ignore manager.
+
 def __init__(self, disambPage, primary=False, minimum=0):
 self.disambPage = disambPage
 self.minimum = minimum
@@ -427,12 +436,16 @@
 
 
 class PrimaryIgnoreManager(object):
+
 
+Primary ignore manager.
+
 If run with the -primary argument, reads from a file which pages should
 not be worked on; these are the ones where the user pressed n last time.
 If run without the -primary argument, doesn't ignore any pages.
 
 
+
 def __init__(self, disambPage, enabled=False):
 self.disambPage = disambPage
 self.enabled = enabled
@@ -449,7 +462,7 @@
 # remove trailing newlines and carriage returns
 while line[-1] in ['\n', '\r']:
 line = line[:-1]
-#skip empty lines
+# skip empty lines
 if line != '':
 self.ignorelist.append(line)
 f.close()
@@ -461,7 +474,7 @@
 
 def ignore(self, refPage):
 if self.enabled:
-# Skip this occurence next time.
+# Skip this occurrence next time.
 filename = config.datafilepath(
 'disambiguations',
 self.disambPage.urlname() + '.txt')
@@ -475,6 +488,8 @@
 
 
 class DisambiguationRobot(object):
+
+Disambiguation bot.
 
 ignore_contents = {
 'de': (u'{{[Ii]nuse}}',
@@ -517,13 +532,15 @@
 self.setupRegexes()
 
 def checkContents(self, text):
-'''
+
+Check if the text matches any of the ignore regexes.
+
 For a given text, returns False if none of the regular
 expressions given in the dictionary at the top of this class
 matches a substring of the text.
 Otherwise returns the substring which is matched by one of
 the regular expressions.
-'''
+
 for ig in self.ignore_contents_regexes:
 match = ig.search(text)
 if match:
@@ -531,11 +548,9 @@
 return None
 
 def makeAlternativesUnique(self):
-# remove duplicate entries
-result = {}
-for i in self.alternatives:
-result[i] = None
-self.alternatives = result.keys()
+# remove duplicate entries stable
+unique = set(self.alternatives)
+self.alternatives = [alt for alt in self.alternatives if alt in unique]
 
 def listAlternatives(self):
   

[MediaWiki-commits] [Gerrit] WIP Entryscape - change (translatewiki)

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

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

Change subject: WIP Entryscape
..

WIP Entryscape

Change-Id: I31921d83c4cafcb4854119908ed48557a0645a64
---
M REPOCONF
M bin/repocommit
M bin/repocreate
M bin/repoexport
M bin/repoupdate
5 files changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/13/213513/1

diff --git a/REPOCONF b/REPOCONF
index 260999d..34f102d 100644
--- a/REPOCONF
+++ b/REPOCONF
@@ -8,6 +8,7 @@
 
 REPO_BLOCKLY=git://github.com/google/blockly.git
 REPO_BLOCKLYGAMES=git://github.com/google/blockly-games.git
+REPO_ENTRYSCAPE=https://bitbucket.org/metasolutions/entryscape.git
 REPO_EOL=git://github.com/EOL/eol.git
 REPO_ETHERPADLITE=git://github.com/ether/etherpad-lite.git
 REPO_ETHERPADLITE_BRANCH=develop
diff --git a/bin/repocommit b/bin/repocommit
index cbbc679..5cff1d5 100755
--- a/bin/repocommit
+++ b/bin/repocommit
@@ -53,6 +53,7 @@
 # TODO: Move to separate file?
 GITPROJECTS=\
 blockly \
+entryscape \
 eol \
 europeana \
 freecol \
diff --git a/bin/repocreate b/bin/repocreate
index 6de6871..12b2b22 100755
--- a/bin/repocreate
+++ b/bin/repocreate
@@ -38,6 +38,11 @@
checkVar 'REPO_BLOCKLYGAMES'
git clone $REPO_BLOCKLYGAMES blockly-games
 
+elif [ $PROJECT = entryscape ]
+then
+   checkVar 'REPO_ENTRYSCAPE'
+   git clone $REPO_ENTRYSCAPE $PROJECT
+
 elif [ $PROJECT = eol ]
 then
checkVar 'REPO_EOL'
diff --git a/bin/repoexport b/bin/repoexport
index 74874ab..787a7ea 100755
--- a/bin/repoexport
+++ b/bin/repoexport
@@ -24,6 +24,10 @@
 then
php $EXPORTER --target . --group=out-blockly* --lang='*' --skip en 
$THRESHOLD
 
+if [ $PROJECT = entryscape ]
+then
+   php $EXPORTER --target . --group=out-entryscape* --lang='*' --skip en 
$THRESHOLD
+
 elif [ $PROJECT = eol ]
 then
php $EXPORTER --target . --group=out-eol* --lang='*' --skip en 
$THRESHOLD
diff --git a/bin/repoupdate b/bin/repoupdate
index ffafb74..66ac65b 100755
--- a/bin/repoupdate
+++ b/bin/repoupdate
@@ -72,6 +72,7 @@
 }
 
 GITUPDATEPROJECTS=\
+entryscape \
 eol \
 europeana \
 freecol \

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I31921d83c4cafcb4854119908ed48557a0645a64
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit niklas.laxst...@gmail.com

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


[MediaWiki-commits] [Gerrit] Only call php5{en, dis}mod if they exist - change (mediawiki...luasandbox)

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

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

Change subject: Only call php5{en,dis}mod if they exist
..

Only call php5{en,dis}mod if they exist

Precise does not have php5enmod or php5dismod. Check for the existence
on postinst, prerm and only execute them if they exist. Otherwise the
installation breaks

Change-Id: I1a6a3d8b3fdbfe5e19ab2c5d7ac9fed984d3dcf7
---
M debian/php-luasandbox.postinst
M debian/php-luasandbox.prerm
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/php/luasandbox 
refs/changes/21/213521/1

diff --git a/debian/php-luasandbox.postinst b/debian/php-luasandbox.postinst
index f452042..639753a 100755
--- a/debian/php-luasandbox.postinst
+++ b/debian/php-luasandbox.postinst
@@ -3,7 +3,7 @@
 set -e
 
 #EXTRA#
-[ $1 = configure ]  php5enmod -s ALL luasandbox
+[ $1 = configure ]  [ -x /usr/sbin/php5enmod ]  php5enmod -s ALL 
luasandbox
 
 #DEBHELPER#
 
diff --git a/debian/php-luasandbox.prerm b/debian/php-luasandbox.prerm
index c47a69b..f9c4bc4 100755
--- a/debian/php-luasandbox.prerm
+++ b/debian/php-luasandbox.prerm
@@ -5,7 +5,7 @@
 #EXTRA#
 
 if [ $1 = remove ] || [ $1 = deconfigure ]; then
-   php5dismod -s ALL luasandbox
+   [ -x /usr/sbin/php5enmod ]  php5dismod -s ALL luasandbox
 fi;
 
 #DEBHELPER#

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1a6a3d8b3fdbfe5e19ab2c5d7ac9fed984d3dcf7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/php/luasandbox
Gerrit-Branch: master
Gerrit-Owner: Alexandros Kosiaris akosia...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] Add translations for the name of Maharashtrian Konkani language - change (mediawiki...cldr)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add translations for the name of Maharashtrian Konkani language
..


Add translations for the name of Maharashtrian Konkani language

Change-Id: I61d8996bac508c08cb67a081ccf95414c1703554
---
M LocalNames/LocalNamesEn.php
M LocalNames/LocalNamesFa.php
M LocalNames/LocalNamesJa.php
3 files changed, 15 insertions(+), 0 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/LocalNames/LocalNamesEn.php b/LocalNames/LocalNamesEn.php
index c2c17cb..6837519 100644
--- a/LocalNames/LocalNamesEn.php
+++ b/LocalNames/LocalNamesEn.php
@@ -35,6 +35,11 @@
'gom-mlym' = 'Goan Konkani (Malayalam script)',
'gom-arab' = 'Goan Konkani (Arabic script)',
 
+   /* Not in CLDR 27.0.1. Maharashtrian Konkani language
+* https://www.ethnologue.com/language/knn
+*/
+   'knn' = 'Maharashtrian Konkani',
+
/* Not in CLDR 27.0.1. Northern Luri language
 * https://www.ethnologue.com/language/lrc
 */
diff --git a/LocalNames/LocalNamesFa.php b/LocalNames/LocalNamesFa.php
index c7f663e..2f91323 100644
--- a/LocalNames/LocalNamesFa.php
+++ b/LocalNames/LocalNamesFa.php
@@ -108,6 +108,11 @@
 */
// 'jut' = 'Jutish',
 
+   /* Not in CLDR 27.0.1. Maharashtrian Konkani language
+* https://www.ethnologue.com/language/knn
+*/
+   'knn' = 'کونکانی مراتی',
+
/* Not in CLDR 27.0.1. Artificial language.
 * https://www.ethnologue.com/language/lfn
 * Added 2008-01-18.
diff --git a/LocalNames/LocalNamesJa.php b/LocalNames/LocalNamesJa.php
index 6104b80..5b7703e 100644
--- a/LocalNames/LocalNamesJa.php
+++ b/LocalNames/LocalNamesJa.php
@@ -35,6 +35,11 @@
// 'gom-mlym' = 'Goan Konkani (Malayalam script)',
// 'gom-arab' = 'Goan Konkani (Arabic script)',
 
+   /* Not in CLDR 27.0.1. Maharashtrian Konkani language
+* https://www.ethnologue.com/language/knn
+*/
+   'knn' = 'マラーティーコンカニ語',
+
/* Not in CLDR 27.0.1. Northern Luri language
 * https://www.ethnologue.com/language/lrc
 */

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I61d8996bac508c08cb67a081ccf95414c1703554
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/cldr
Gerrit-Branch: master
Gerrit-Owner: Mjbmr mjb...@gmail.com
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Add login error browser test - change (mediawiki/core)

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

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

Change subject: Add login error browser test
..

Add login error browser test

Change-Id: I19a7f708825d5f11859d8ea70db4cdde752df26c
---
M tests/browser/features/create_account.feature
M tests/browser/features/step_definitions/create_account_steps.rb
M tests/browser/features/support/pages/create_account_page.rb
3 files changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/07/213507/1

diff --git a/tests/browser/features/create_account.feature 
b/tests/browser/features/create_account.feature
index 0b4e83a..64a986d 100644
--- a/tests/browser/features/create_account.feature
+++ b/tests/browser/features/create_account.feature
@@ -10,3 +10,8 @@
 | Special:CreateAccount |
 | Special:UserLogin/signup  |
 | Special:UserLogin?type=signup |
+
+  Scenario: If not username is entered error is displayed
+Given I go to Create account page at Special:CreateAccount
+When I submit the form
+Then an error message is displayed
diff --git a/tests/browser/features/step_definitions/create_account_steps.rb 
b/tests/browser/features/step_definitions/create_account_steps.rb
index 03bff66..c8eb54a 100644
--- a/tests/browser/features/step_definitions/create_account_steps.rb
+++ b/tests/browser/features/step_definitions/create_account_steps.rb
@@ -16,3 +16,13 @@
 Then(/^form has Create account button$/) do
   expect(on(CreateAccountPage).create_account_element).to exist
 end
+
+When(/^I submit the form$/) do
+  #on(CreateAccountPage).create_account_element.click
+  on(CreateAccountPage).create_account
+end
+
+Then(/^an error message is displayed$/) do
+  expect(on(CreateAccountPage).error_message_element.class_name).to eq 
errorbox
+end
+
diff --git a/tests/browser/features/support/pages/create_account_page.rb 
b/tests/browser/features/support/pages/create_account_page.rb
index 98b893a..9aa00cd 100644
--- a/tests/browser/features/support/pages/create_account_page.rb
+++ b/tests/browser/features/support/pages/create_account_page.rb
@@ -15,4 +15,5 @@
   page_url '%=params[:page_title]%'
 
   button(:create_account, id: 'wpCreateaccount')
+  div(:error_message, id: 'mw-createacct-status-area')
 end

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I19a7f708825d5f11859d8ea70db4cdde752df26c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Thcipriani tcipri...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] registration: Fix 'ResourceModules' in schema - change (mediawiki/core)

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

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

Change subject: registration: Fix 'ResourceModules' in schema
..

registration: Fix 'ResourceModules' in schema

Change-Id: I6fb833133a6d6bde42cb40eb8fd7e02f7ca9797a
---
M docs/extension.schema.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/06/213506/1

diff --git a/docs/extension.schema.json b/docs/extension.schema.json
index 3b75b72..d5c17a1 100644
--- a/docs/extension.schema.json
+++ b/docs/extension.schema.json
@@ -297,7 +297,7 @@
}
}
},
-   ResourceLoaderModules: {
+   ResourceModules: {
type: object,
description: ResourceLoader modules to register,
additionalProperties: false,

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

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

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


[MediaWiki-commits] [Gerrit] Update languages by size - change (pywikibot/core)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Update languages by size
..


Update languages by size

In order to have an RC

Change-Id: I9e9bd6b4b05319d63f1d14591ae7c793e60fb5d0
---
M pywikibot/families/anarchopedia_family.py
M pywikibot/families/wikibooks_family.py
M pywikibot/families/wikinews_family.py
M pywikibot/families/wikipedia_family.py
M pywikibot/families/wikiquote_family.py
M pywikibot/families/wikisource_family.py
M pywikibot/families/wikiversity_family.py
M pywikibot/families/wikivoyage_family.py
M pywikibot/families/wiktionary_family.py
9 files changed, 70 insertions(+), 71 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/families/anarchopedia_family.py 
b/pywikibot/families/anarchopedia_family.py
index 1cbacb9..f67914d 100644
--- a/pywikibot/families/anarchopedia_family.py
+++ b/pywikibot/families/anarchopedia_family.py
@@ -64,10 +64,9 @@
 self.name = 'anarchopedia'
 
 self.languages_by_size = [
-'ar', 'en', 'de', 'nl', 'el', 'it', 'fa', 'fi', 'fr', 'he',
-'es', 'hy', 'id', 'meta', 'ja', 'ko', 'lv', 'lt', 'no', 'hr',
-'pl', 'pt', 'ro', 'ru', 'sr', 'sq', 'da', 'sv', 'tr', 'zh',
-'eo',
+'ar', 'en', 'de', 'nl', 'el', 'it', 'fa', 'fi', 'fr', 'he', 'es',
+'hy', 'id', 'meta', 'ja', 'ko', 'lv', 'lt', 'no', 'hr', 'pl', 'pt',
+'ro', 'ru', 'hrv', 'sq', 'sr', 'sv', 'tr', 'zh', 'eo', 'da',
 ]
 for l in self.languages_by_size:
 self.langs[l] = '%s.anarchopedia.org' % l
diff --git a/pywikibot/families/wikibooks_family.py 
b/pywikibot/families/wikibooks_family.py
index b4ed20d..389c4f0 100644
--- a/pywikibot/families/wikibooks_family.py
+++ b/pywikibot/families/wikibooks_family.py
@@ -110,12 +110,12 @@
 
 self.languages_by_size = [
 'en', 'de', 'fr', 'hu', 'ja', 'it', 'es', 'pt', 'nl', 'pl', 'he',
-'vi', 'id', 'sq', 'ca', 'fi', 'ru', 'fa', 'cs', 'zh', 'sv', 'da',
-'hr', 'tr', 'no', 'th', 'sr', 'ar', 'gl', 'ko', 'ta', 'mk', 'tl',
-'ro', 'is', 'ka', 'tt', 'lt', 'az', 'eo', 'uk', 'bg', 'sk', 'sl',
-'el', 'hy', 'ms', 'si', 'li', 'la', 'ml', 'ur', 'ang', 'ia', 'cv',
-'et', 'bn', 'km', 'hi', 'mr', 'sa', 'oc', 'kk', 'eu', 'ne', 'fy',
-'ie', 'te', 'af', 'tg', 'ky', 'bs', 'pa', 'mg', 'be', 'cy',
+'vi', 'ca', 'id', 'sq', 'fi', 'ru', 'fa', 'cs', 'zh', 'sv', 'hr',
+'tr', 'ro', 'sr', 'ar', 'no', 'th', 'ko', 'gl', 'da', 'ta', 'mk',
+'az', 'tl', 'is', 'ka', 'lt', 'tt', 'uk', 'eo', 'bg', 'sk', 'sl',
+'el', 'hy', 'ms', 'sa', 'si', 'li', 'la', 'ml', 'ur', 'bn', 'ang',
+'ia', 'cv', 'et', 'hi', 'km', 'mr', 'eu', 'oc', 'kk', 'fy', 'ne',
+'ie', 'te', 'af', 'tg', 'ky', 'bs', 'pa', 'be', 'mg', 'cy',
 'zh-min-nan', 'ku', 'uz',
 ]
 
diff --git a/pywikibot/families/wikinews_family.py 
b/pywikibot/families/wikinews_family.py
index b4e53e3..43df5bb 100644
--- a/pywikibot/families/wikinews_family.py
+++ b/pywikibot/families/wikinews_family.py
@@ -29,9 +29,9 @@
 self.name = 'wikinews'
 
 self.languages_by_size = [
-'sr', 'en', 'fr', 'pl', 'de', 'it', 'es', 'pt', 'ru', 'ca', 'zh',
-'sv', 'ja', 'ta', 'el', 'cs', 'ar', 'uk', 'fa', 'fi', 'ro', 'tr',
-'he', 'bg', 'sq', 'no', 'ko', 'eo', 'bs',
+'sr', 'en', 'fr', 'de', 'pl', 'es', 'pt', 'ru', 'it', 'zh', 'ta',
+'el', 'ca', 'cs', 'sv', 'ar', 'fa', 'ro', 'uk', 'tr', 'ja', 'sq',
+'no', 'ko', 'eo', 'fi', 'bs', 'he', 'bg',
 ]
 
 self.langs = dict([(lang, '%s.wikinews.org' % lang)
diff --git a/pywikibot/families/wikipedia_family.py 
b/pywikibot/families/wikipedia_family.py
index 17689a4..366b98a 100644
--- a/pywikibot/families/wikipedia_family.py
+++ b/pywikibot/families/wikipedia_family.py
@@ -52,34 +52,34 @@
 self.name = 'wikipedia'
 
 self.languages_by_size = [
-'en', 'sv', 'nl', 'de', 'fr', 'ru', 'it', 'es', 'vi', 'war', 'ceb',
-'pl', 'ja', 'pt', 'zh', 'uk', 'ca', 'no', 'fa', 'fi', 'id', 'ar',
-'cs', 'ko', 'ms', 'hu', 'ro', 'sr', 'tr', 'min', 'sh', 'kk', 'eo',
-'sk', 'eu', 'da', 'lt', 'bg', 'he', 'hr', 'sl', 'uz', 'hy', 'et',
-'vo', 'nn', 'gl', 'simple', 'hi', 'la', 'el', 'az', 'th', 'oc',
-'ka', 'mk', 'be', 'new', 'tt', 'pms', 'tl', 'ta', 'te', 'cy', 'lv',
-'be-x-old', 'ht', 'ur', 'ce', 'bs', 'sq', 'br', 'jv', 'mg', 'lb',
-'mr', 'is', 'ml', 'pnb', 'ba', 'af', 'my', 'zh-yue', 'bn', 'ga',
-'lmo', 'yo', 'fy', 'an', 'cv', 'tg', 'ky', 'sw', 'ne', 'io', 'gu',
-'bpy', 'sco', 'scn', 'nds', 'ku', 'ast', 'qu', 'su', 'als', 'gd',
-'kn', 'am', 'ckb', 'ia', 'nap', 'bug', 'bat-smg', 'wa', 'map-bms',

[MediaWiki-commits] [Gerrit] [FEAT] chars: Generic module for char classes - change (pywikibot/core)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: [FEAT] chars: Generic module for char classes
..


[FEAT] chars: Generic module for char classes

Add the pywikibot.tools.chars module which handles currently only invisible
characters. This is now used by replace (instead of a script specific
implementation) and the PatchManager class uses this module too to replace
invisible characters with placeholders.

Change-Id: I79c84f6aa5d980e5481e6b441dcd590f00f1a320
---
M pywikibot/diff.py
A pywikibot/tools/chars.py
M scripts/replace.py
A tests/tools_chars_tests.py
4 files changed, 162 insertions(+), 12 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/diff.py b/pywikibot/diff.py
index 5acc741..08f939e 100644
--- a/pywikibot/diff.py
+++ b/pywikibot/diff.py
@@ -26,6 +26,8 @@
 BeautifulSoup = False
 
 import pywikibot
+from pywikibot.tools import chars
+
 from pywikibot.backports import format_range_unified  # introduced in 2.7.2
 from pywikibot.tools import deprecated_args
 
@@ -221,7 +223,8 @@
 
 
 @deprecated_args(n='context')
-def __init__(self, text_a, text_b, context=0, by_letter=False):
+def __init__(self, text_a, text_b, context=0, by_letter=False,
+ replace_invisible=False):
 Constructor.
 
 @param text_a: base text
@@ -233,6 +236,9 @@
 @param by_letter: if text_a and text_b are single lines, comparison 
can be done
 letter by letter.
 @type by_letter: bool
+@param replace_invisible: Replace invisible characters like U+200e with
+the charnumber in brackets (e.g. 200e).
+@type replace_invisible: bool
 
 if '\n' in text_a or '\n' in text_b:
 self.a = text_a.splitlines(1)
@@ -265,6 +271,7 @@
 self.blocks = self.get_blocks()
 self.context = context
 self._super_hunks = self._generate_super_hunks()
+self._replace_invisible = replace_invisible
 
 def get_blocks(self):
 Return list with blocks of indexes which compose a and, where 
applicable, b.
@@ -352,7 +359,10 @@
 output += extend_context(previous_hunk.a_rng[1], hunk.a_rng[0])
 previous_hunk = hunk
 output += hunk.diff_text
-return output + extend_context(hunks[-1].a_rng[1], context_range[0][1])
+output += extend_context(hunks[-1].a_rng[1], context_range[0][1])
+if self._replace_invisible:
+output = chars.replace_invisible(output)
+return output
 
 def review_hunks(self):
 Review hunks.
diff --git a/pywikibot/tools/chars.py b/pywikibot/tools/chars.py
new file mode 100644
index 000..9a29e24
--- /dev/null
+++ b/pywikibot/tools/chars.py
@@ -0,0 +1,82 @@
+# -*- coding: utf-8 -*-
+Character based helper functions(not wiki-dependent).
+#
+# (C) Pywikibot team, 2015
+#
+# Distributed under the terms of the MIT license.
+#
+from __future__ import unicode_literals
+
+__version__ = '$Id$'
+
+import sys
+
+from pywikibot.tools import LazyRegex
+
+
+if sys.version_info[0]  2:
+unicode = str
+
+
+# All characters in the Cf category in a static list. When testing each Unicode
+# codepoint it takes longer especially when working with UCS2. The lists also
+# differ between Python versions which can be avoided by this static list.
+_category_cf = frozenset([
+'\U00ad', '\U0600', '\U0601', '\U0602', '\U0603',
+'\U0604', '\U061c', '\U06dd', '\U070f', '\U180e',
+'\U200b', '\U200c', '\U200d', '\U200e', '\U200f',
+'\U202a', '\U202b', '\U202c', '\U202d', '\U202e',
+'\U2060', '\U2061', '\U2062', '\U2063', '\U2064',
+'\U2066', '\U2067', '\U2068', '\U2069', '\U206a',
+'\U206b', '\U206c', '\U206d', '\U206e', '\U206f',
+'\Ufeff', '\Ufff9', '\Ufffa', '\Ufffb', '\U000110bd',
+'\U0001d173', '\U0001d174', '\U0001d175', '\U0001d176', '\U0001d177',
+'\U0001d178', '\U0001d179', '\U0001d17a', '\U000e0001', '\U000e0020',
+'\U000e0021', '\U000e0022', '\U000e0023', '\U000e0024', '\U000e0025',
+'\U000e0026', '\U000e0027', '\U000e0028', '\U000e0029', '\U000e002a',
+'\U000e002b', '\U000e002c', '\U000e002d', '\U000e002e', '\U000e002f',
+'\U000e0030', '\U000e0031', '\U000e0032', '\U000e0033', '\U000e0034',
+'\U000e0035', '\U000e0036', '\U000e0037', '\U000e0038', '\U000e0039',
+'\U000e003a', '\U000e003b', '\U000e003c', '\U000e003d', '\U000e003e',
+'\U000e003f', '\U000e0040', '\U000e0041', '\U000e0042', '\U000e0043',
+'\U000e0044', '\U000e0045', '\U000e0046', '\U000e0047', '\U000e0048',
+'\U000e0049', '\U000e004a', '\U000e004b', '\U000e004c', '\U000e004d',
+'\U000e004e', '\U000e004f', '\U000e0050', '\U000e0051', '\U000e0052',
+

[MediaWiki-commits] [Gerrit] registration: Fix 'ResourceModules' in schema - change (mediawiki/core)

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

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

Change subject: registration: Fix 'ResourceModules' in schema
..

registration: Fix 'ResourceModules' in schema

Change-Id: I6fb833133a6d6bde42cb40eb8fd7e02f7ca9797a
(cherry picked from commit 34537805fc5779e6e0a3a331a7acdc188240bd83)
---
M docs/extension.schema.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/14/213514/1

diff --git a/docs/extension.schema.json b/docs/extension.schema.json
index 3b75b72..d5c17a1 100644
--- a/docs/extension.schema.json
+++ b/docs/extension.schema.json
@@ -297,7 +297,7 @@
}
}
},
-   ResourceLoaderModules: {
+   ResourceModules: {
type: object,
description: ResourceLoader modules to register,
additionalProperties: false,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6fb833133a6d6bde42cb40eb8fd7e02f7ca9797a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_25
Gerrit-Owner: Jforrester jforres...@wikimedia.org
Gerrit-Reviewer: Legoktm legoktm.wikipe...@gmail.com

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


[MediaWiki-commits] [Gerrit] Update web config files - change (translatewiki)

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

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

Change subject: Update web config files
..

Update web config files

Change-Id: I71d44d640d59bca385504b4a74f9e98ee73c01de
---
M puppet/modules/hhvm/files/php.ini
M puppet/modules/nginx/files/nginx.conf
M puppet/modules/nginx/files/translatewiki.net
M puppet/modules/profile/manifests/mwelasticsearch.pp
4 files changed, 11 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/16/213516/1

diff --git a/puppet/modules/hhvm/files/php.ini 
b/puppet/modules/hhvm/files/php.ini
index 53f012f..bf6cf64 100644
--- a/puppet/modules/hhvm/files/php.ini
+++ b/puppet/modules/hhvm/files/php.ini
@@ -14,7 +14,7 @@
 hhvm.server.stat_cache = 1
 hhvm.admin_server.port = 9001
 
-hhvm.dynamic_extension_path = 
/usr/lib/x86_64-linux-gnu/hhvm/extensions/20140829
+hhvm.dynamic_extension_path = 
/usr/lib/x86_64-linux-gnu/hhvm/extensions/20150212
 hhvm.dynamic_extensions[*] = ffs.so
 hhvm.dynamic_extensions[*] = luasandbox.so
 hhvm.dynamic_extensions[*] = wikidiff2.so
@@ -22,9 +22,9 @@
 hhvm.perf_pid_map = false
 
 hhvm.jit = true
-hhvm.jit_a_size = 1
-hhvm.jit_a_frozen_size = 1
-hhvm.jit_a_cold_size = 5000
+hhvm.jit_a_size = 6
+hhvm.jit_a_frozen_size = 2
+hhvm.jit_a_cold_size = 2
 
 hhvm.log.level = Notice
 hhvm.log.always_log_unhandled_exceptions = true
@@ -41,4 +41,5 @@
 hhvm.enable_obj_destruct_call = true
 
 hhvm.mysql.typed_results = false
-hhvm.mysql.slow_query_threshold = 5000
+hhvm.mysql.slow_query_threshold = 3
+hhvm.mysql.connect_timeout = 3000
diff --git a/puppet/modules/nginx/files/nginx.conf 
b/puppet/modules/nginx/files/nginx.conf
index d8093a0..f02ecd5 100644
--- a/puppet/modules/nginx/files/nginx.conf
+++ b/puppet/modules/nginx/files/nginx.conf
@@ -50,8 +50,8 @@
##
 
upstream php {
-#  server unix:/run/hhvm/hhvm.sock;
-   server unix:/run/php5-fpm.sock;
+   server unix:/run/hhvm/hhvm.sock;
+   server unix:/run/php5-fpm.sock backup;
}
 
include /etc/nginx/sites-enabled/*;
diff --git a/puppet/modules/nginx/files/translatewiki.net 
b/puppet/modules/nginx/files/translatewiki.net
index ff280a0..64945dd 100644
--- a/puppet/modules/nginx/files/translatewiki.net
+++ b/puppet/modules/nginx/files/translatewiki.net
@@ -56,7 +56,8 @@
fastcgi_pass php;
fastcgi_buffering off;
fastcgi_buffers 16 16k;
-   fastcgi_send_timeout 5s;
+   fastcgi_connect_timeout 1s;
+   fastcgi_send_timeout 2s;
fastcgi_read_timeout 15s;
include fastcgi.conf;
}
diff --git a/puppet/modules/profile/manifests/mwelasticsearch.pp 
b/puppet/modules/profile/manifests/mwelasticsearch.pp
index 9a96380..c0316e1 100644
--- a/puppet/modules/profile/manifests/mwelasticsearch.pp
+++ b/puppet/modules/profile/manifests/mwelasticsearch.pp
@@ -2,7 +2,7 @@
 
   class { 'elasticsearch':
 manage_repo   = true,
-repo_version  = '1.3',
+repo_version  = '1.5',
 config= {
   'script.disable_dynamic'   = false,
   'network.host' = '::1',

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I71d44d640d59bca385504b4a74f9e98ee73c01de
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit niklas.laxst...@gmail.com

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


[MediaWiki-commits] [Gerrit] Update languages by size from core - change (pywikibot/compat)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Update languages by size from core
..


Update languages by size from core

Change-Id: I4238837669e2516fb07e891c1275c555ca5d0621
---
M families/anarchopedia_family.py
M families/wikibooks_family.py
M families/wikinews_family.py
M families/wikipedia_family.py
M families/wikiquote_family.py
M families/wikisource_family.py
M families/wikiversity_family.py
M families/wikivoyage_family.py
M families/wiktionary_family.py
9 files changed, 70 insertions(+), 71 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/families/anarchopedia_family.py b/families/anarchopedia_family.py
index 64f226e..0dd49d9 100644
--- a/families/anarchopedia_family.py
+++ b/families/anarchopedia_family.py
@@ -17,10 +17,9 @@
 self.name = 'anarchopedia'
 
 self.languages_by_size = [
-'ar', 'en', 'de', 'nl', 'el', 'it', 'fa', 'fi', 'fr', 'he',
-'es', 'hy', 'id', 'meta', 'ja', 'ko', 'lv', 'lt', 'no', 'hr',
-'pl', 'pt', 'ro', 'ru', 'sr', 'sq', 'da', 'sv', 'tr', 'zh',
-'eo',
+'ar', 'en', 'de', 'nl', 'el', 'it', 'fa', 'fi', 'fr', 'he', 'es',
+'hy', 'id', 'meta', 'ja', 'ko', 'lv', 'lt', 'no', 'hr', 'pl', 'pt',
+'ro', 'ru', 'hrv', 'sq', 'sr', 'sv', 'tr', 'zh', 'eo', 'da',
 ]
 self.langs = dict([(lang, '%s.anarchopedia.org' % lang)
for lang in self.languages_by_size])
diff --git a/families/wikibooks_family.py b/families/wikibooks_family.py
index e0c9e34..bcc2f89 100644
--- a/families/wikibooks_family.py
+++ b/families/wikibooks_family.py
@@ -16,12 +16,12 @@
 
 self.languages_by_size = [
 'en', 'de', 'fr', 'hu', 'ja', 'it', 'es', 'pt', 'nl', 'pl', 'he',
-'vi', 'id', 'sq', 'ca', 'fi', 'ru', 'fa', 'cs', 'zh', 'sv', 'da',
-'hr', 'tr', 'no', 'th', 'sr', 'ar', 'gl', 'ko', 'ta', 'mk', 'tl',
-'ro', 'is', 'ka', 'tt', 'lt', 'az', 'eo', 'uk', 'bg', 'sk', 'sl',
-'el', 'hy', 'ms', 'si', 'li', 'la', 'ml', 'ur', 'ang', 'ia', 'cv',
-'et', 'bn', 'km', 'hi', 'mr', 'sa', 'oc', 'kk', 'eu', 'ne', 'fy',
-'ie', 'te', 'af', 'tg', 'ky', 'bs', 'pa', 'mg', 'be', 'cy',
+'vi', 'ca', 'id', 'sq', 'fi', 'ru', 'fa', 'cs', 'zh', 'sv', 'hr',
+'tr', 'ro', 'sr', 'ar', 'no', 'th', 'ko', 'gl', 'da', 'ta', 'mk',
+'az', 'tl', 'is', 'ka', 'lt', 'tt', 'uk', 'eo', 'bg', 'sk', 'sl',
+'el', 'hy', 'ms', 'sa', 'si', 'li', 'la', 'ml', 'ur', 'bn', 'ang',
+'ia', 'cv', 'et', 'hi', 'km', 'mr', 'eu', 'oc', 'kk', 'fy', 'ne',
+'ie', 'te', 'af', 'tg', 'ky', 'bs', 'pa', 'be', 'mg', 'cy',
 'zh-min-nan', 'ku', 'uz',
 ]
 
diff --git a/families/wikinews_family.py b/families/wikinews_family.py
index 49cc0d7..fa0cbf5 100644
--- a/families/wikinews_family.py
+++ b/families/wikinews_family.py
@@ -17,9 +17,9 @@
 self.name = 'wikinews'
 
 self.languages_by_size = [
-'sr', 'en', 'fr', 'pl', 'de', 'it', 'es', 'pt', 'ru', 'ca', 'zh',
-'sv', 'ja', 'ta', 'el', 'cs', 'ar', 'uk', 'fa', 'fi', 'ro', 'tr',
-'he', 'bg', 'sq', 'no', 'ko', 'eo', 'bs',
+'sr', 'en', 'fr', 'de', 'pl', 'es', 'pt', 'ru', 'it', 'zh', 'ta',
+'el', 'ca', 'cs', 'sv', 'ar', 'fa', 'ro', 'uk', 'tr', 'ja', 'sq',
+'no', 'ko', 'eo', 'fi', 'bs', 'he', 'bg',
 ]
 
 self.langs = dict([(lang, '%s.wikinews.org' % lang)
diff --git a/families/wikipedia_family.py b/families/wikipedia_family.py
index 4ac7673..ce94565 100644
--- a/families/wikipedia_family.py
+++ b/families/wikipedia_family.py
@@ -17,34 +17,34 @@
 self.name = 'wikipedia'
 
 self.languages_by_size = [
-'en', 'sv', 'nl', 'de', 'fr', 'ru', 'it', 'es', 'vi', 'war', 'ceb',
-'pl', 'ja', 'pt', 'zh', 'uk', 'ca', 'no', 'fa', 'fi', 'id', 'ar',
-'cs', 'ko', 'ms', 'hu', 'ro', 'sr', 'tr', 'min', 'sh', 'kk', 'eo',
-'sk', 'eu', 'da', 'lt', 'bg', 'he', 'hr', 'sl', 'uz', 'hy', 'et',
-'vo', 'nn', 'gl', 'simple', 'hi', 'la', 'el', 'az', 'th', 'oc',
-'ka', 'mk', 'be', 'new', 'tt', 'pms', 'tl', 'ta', 'te', 'cy', 'lv',
-'be-x-old', 'ht', 'ur', 'ce', 'bs', 'sq', 'br', 'jv', 'mg', 'lb',
-'mr', 'is', 'ml', 'pnb', 'ba', 'af', 'my', 'zh-yue', 'bn', 'ga',
-'lmo', 'yo', 'fy', 'an', 'cv', 'tg', 'ky', 'sw', 'ne', 'io', 'gu',
-'bpy', 'sco', 'scn', 'nds', 'ku', 'ast', 'qu', 'su', 'als', 'gd',
-'kn', 'am', 'ckb', 'ia', 'nap', 'bug', 'bat-smg', 'wa', 'map-bms',
-'mn', 'arz', 'pa', 'mzn', 'si', 'zh-min-nan', 'yi', 'sah', 'fo',
-'vec', 'sa', 'bar', 'nah', 'os', 'roa-tara', 'pam', 'or', 'hsb',
-'se', 'li', 'mrj', 'mi', 'ilo', 'co', 'hif', 'bcl', 

[MediaWiki-commits] [Gerrit] Update web config files - change (translatewiki)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Update web config files
..


Update web config files

Change-Id: I71d44d640d59bca385504b4a74f9e98ee73c01de
---
M puppet/modules/hhvm/files/php.ini
M puppet/modules/nginx/files/nginx.conf
M puppet/modules/nginx/files/translatewiki.net
M puppet/modules/profile/manifests/mwelasticsearch.pp
4 files changed, 11 insertions(+), 9 deletions(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/puppet/modules/hhvm/files/php.ini 
b/puppet/modules/hhvm/files/php.ini
index 53f012f..bf6cf64 100644
--- a/puppet/modules/hhvm/files/php.ini
+++ b/puppet/modules/hhvm/files/php.ini
@@ -14,7 +14,7 @@
 hhvm.server.stat_cache = 1
 hhvm.admin_server.port = 9001
 
-hhvm.dynamic_extension_path = 
/usr/lib/x86_64-linux-gnu/hhvm/extensions/20140829
+hhvm.dynamic_extension_path = 
/usr/lib/x86_64-linux-gnu/hhvm/extensions/20150212
 hhvm.dynamic_extensions[*] = ffs.so
 hhvm.dynamic_extensions[*] = luasandbox.so
 hhvm.dynamic_extensions[*] = wikidiff2.so
@@ -22,9 +22,9 @@
 hhvm.perf_pid_map = false
 
 hhvm.jit = true
-hhvm.jit_a_size = 1
-hhvm.jit_a_frozen_size = 1
-hhvm.jit_a_cold_size = 5000
+hhvm.jit_a_size = 6
+hhvm.jit_a_frozen_size = 2
+hhvm.jit_a_cold_size = 2
 
 hhvm.log.level = Notice
 hhvm.log.always_log_unhandled_exceptions = true
@@ -41,4 +41,5 @@
 hhvm.enable_obj_destruct_call = true
 
 hhvm.mysql.typed_results = false
-hhvm.mysql.slow_query_threshold = 5000
+hhvm.mysql.slow_query_threshold = 3
+hhvm.mysql.connect_timeout = 3000
diff --git a/puppet/modules/nginx/files/nginx.conf 
b/puppet/modules/nginx/files/nginx.conf
index d8093a0..f02ecd5 100644
--- a/puppet/modules/nginx/files/nginx.conf
+++ b/puppet/modules/nginx/files/nginx.conf
@@ -50,8 +50,8 @@
##
 
upstream php {
-#  server unix:/run/hhvm/hhvm.sock;
-   server unix:/run/php5-fpm.sock;
+   server unix:/run/hhvm/hhvm.sock;
+   server unix:/run/php5-fpm.sock backup;
}
 
include /etc/nginx/sites-enabled/*;
diff --git a/puppet/modules/nginx/files/translatewiki.net 
b/puppet/modules/nginx/files/translatewiki.net
index ff280a0..64945dd 100644
--- a/puppet/modules/nginx/files/translatewiki.net
+++ b/puppet/modules/nginx/files/translatewiki.net
@@ -56,7 +56,8 @@
fastcgi_pass php;
fastcgi_buffering off;
fastcgi_buffers 16 16k;
-   fastcgi_send_timeout 5s;
+   fastcgi_connect_timeout 1s;
+   fastcgi_send_timeout 2s;
fastcgi_read_timeout 15s;
include fastcgi.conf;
}
diff --git a/puppet/modules/profile/manifests/mwelasticsearch.pp 
b/puppet/modules/profile/manifests/mwelasticsearch.pp
index 9a96380..c0316e1 100644
--- a/puppet/modules/profile/manifests/mwelasticsearch.pp
+++ b/puppet/modules/profile/manifests/mwelasticsearch.pp
@@ -2,7 +2,7 @@
 
   class { 'elasticsearch':
 manage_repo   = true,
-repo_version  = '1.3',
+repo_version  = '1.5',
 config= {
   'script.disable_dynamic'   = false,
   'network.host' = '::1',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I71d44d640d59bca385504b4a74f9e98ee73c01de
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit niklas.laxst...@gmail.com
Gerrit-Reviewer: Nikerabbit niklas.laxst...@gmail.com
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] update i18n from json files - change (pywikibot/i18n)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: update i18n from json files
..


update i18n from json files

Change-Id: I5f9dedb570e35b8d6536e18b8752dd4962fe057d
---
M add_text.py
M archivebot.py
M basic.py
M blockpageschecker.py
M capitalize_redirects.py
M casechecker.py
M category.py
M category_redirect.py
M clean_sandbox.py
M commons.py
M commons_link.py
M commonscat.py
M delete.py
M djvutext.py
M editarticle.py
M featured.py
M isbn.py
M lonelypages.py
M makecat.py
M noreferences.py
M protect.py
M pywikibot.py
M redirect.py
M revertbot.py
M table2wiki.py
M thirdparty.py
M unprotect.py
M weblinkchecker.py
28 files changed, 201 insertions(+), 3 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/add_text.py b/add_text.py
index d318b66..c151490 100644
--- a/add_text.py
+++ b/add_text.py
@@ -524,6 +524,7 @@
 },
 # Author: Dima st bk
 # Author: Rubin
+# Author: Rubin16
 # Author: Volkov
 'ru': {
 'add_text-adding': u'Бот добавил: %(adding)s',
diff --git a/archivebot.py b/archivebot.py
index 3cd59d5..03ba577 100644
--- a/archivebot.py
+++ b/archivebot.py
@@ -43,6 +43,11 @@
 'archivebot-older-than': u'elter wie',
 'archivebot-page-summary': u'Bötli: Due %(count)d 
{{PLURAL:count|Abschnitt|Abschnitte}} (%(why)s) uff %(archives)s archiviere.',
 },
+# Author: MarcoAurelio
+'an': {
+'archivebot-archive-full': u'(FICHERO COMPLETO)',
+'archivebot-older-than': u'con una antiguidat de %(duration)s',
+},
 # Author: DRIHEM
 'ar': {
 'archivebot-archive-full': u'(الأرشيف ممتلئ)',
@@ -911,8 +916,11 @@
 'archivebot-older-than': u'%(duration)s முந்தையது',
 },
 # Author: Jprmvnvijay5
+# Author: రహ్మానుద్దీన్
 'te': {
-'archivebot-older-than': u'కన్నా పాతది',
+'archivebot-archive-full': u'(ఆర్ఖైవ్ నిండినది)',
+'archivebot-older-than': u'%(duration)s కన్నా పాతది',
+'archivebot-page-summary': u'బాటు : %(count)d 
{{PLURAL:%(count)d|థ్రెడ్|థ్రెడ్లు}} (%(why)s) లను  %(archives)s కు ఆర్ఖైవ్ 
చేస్తున్నాము.',
 },
 # Author: MF-Warburg
 'tet': {
diff --git a/basic.py b/basic.py
index 67a761c..dda25f2 100644
--- a/basic.py
+++ b/basic.py
@@ -467,6 +467,10 @@
 'ta': {
 'basic-changing': u'தானியங்கி: மாற்றம் ...',
 },
+# Author: రహ్మానుద్దీన్
+'te': {
+'basic-changing': u'బాటు : మారుస్తోంది ...',
+},
 # Author: MF-Warburg
 'tet': {
 'basic-changing': u'Bot: Muda ...',
diff --git a/blockpageschecker.py b/blockpageschecker.py
index b08a380..c65321a 100644
--- a/blockpageschecker.py
+++ b/blockpageschecker.py
@@ -267,6 +267,10 @@
 'sv': {
 'blockpageschecker-summary': u'Bot: Raderar föråldrad mall',
 },
+# Author: రహ్మానుద్దీన్
+'te': {
+'blockpageschecker-summary': u'బాటు : కాలం చెల్లిన మూసను 
తొలగిస్తున్నాము',
+},
 # Author: Octahedron80
 'th': {
 'blockpageschecker-summary': u'บอต: ลบแม่แบบล้าสมัย',
diff --git a/capitalize_redirects.py b/capitalize_redirects.py
index a87efa2..a312e91 100644
--- a/capitalize_redirects.py
+++ b/capitalize_redirects.py
@@ -382,6 +382,10 @@
 'ta': {
 'capitalize_redirects-create-redirect': u'தானியங்கி: [[%(to)s]] இற்கு 
வழிமாற்றி ஒன்றினை உருவாக்கு',
 },
+# Author: రహ్మానుద్దీన్
+'te': {
+'capitalize_redirects-create-redirect': u'బాటు : [[%(to)s]] కు 
దారిమార్పు రూపొందించు',
+},
 # Author: Nullzero
 # Author: Octahedron80
 'th': {
diff --git a/casechecker.py b/casechecker.py
index 1c305ff..42ff918 100644
--- a/casechecker.py
+++ b/casechecker.py
@@ -478,6 +478,14 @@
 'casechecker-replacement-linklist': u'%(source)s→%(target)s',
 'casechecker-replacement-summary': u'Bot: Ersätter versalisering',
 },
+# Author: రహ్మానుద్దీన్
+'te': {
+'casechecker-delete-reason': u'ఈ దారిమార్పు %(target)s ను చూపేందుకు 
వాడతారు',
+'casechecker-delete-summary': u'బాటు : ఈ దారిమార్పు పాఠ్యంలో సిరిలిక్, 
లాటిన్ అక్షరాలు శీర్షికను పోలి ఉన్నాయి',
+'casechecker-rename': u'బాటు : ఆంఘ్ల పెద్దబడి-చిన్నబడి మిశ్రిత 
పేరుమార్పు',
+'casechecker-replacement-linklist': u'%(source)s→%(target)s',
+'casechecker-replacement-summary': u'బాటు : ఆంగ్ల పెద్దబడి⇆చిన్నబడి 
మార్పిడిలు :',
+},
 # Author: Octahedron80
 'th': {
 'casechecker-replacement-linklist': u'%(source)s→%(target)s',
diff --git a/category.py b/category.py
index 07c756e..46c282a 100644
--- a/category.py
+++ b/category.py
@@ -561,6 +561,7 @@
 # Author: Dferg
 # Author: Fitoschido
 # Author: Invadinado
+# Author: MarcoAurelio
 # Author: Mor
 # Author: Vivaelcelta
 # Author: Xqt
@@ -573,7 +574,8 @@
 'category-renamed': u'Bot: movida de «%s». Autores: %s',
 'category-replacing': u'Bot: reemplazo de categoría 

[MediaWiki-commits] [Gerrit] CXStats: Remove redundant condition - change (mediawiki...ContentTranslation)

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

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

Change subject: CXStats: Remove redundant condition
..

CXStats: Remove redundant condition

Change-Id: Ib8b50299c3c2b91ab77997a8febb190ec81123cb
Followup: I0365d1366fcf5c62193f878c1e73435d9b4c0b98
---
M modules/stats/ext.cx.stats.js
1 file changed, 7 insertions(+), 9 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/22/213522/1

diff --git a/modules/stats/ext.cx.stats.js b/modules/stats/ext.cx.stats.js
index 1e1e2c9..4abe376 100644
--- a/modules/stats/ext.cx.stats.js
+++ b/modules/stats/ext.cx.stats.js
@@ -274,16 +274,14 @@
}
 
if ( !mw.user.isAnon()  mw.user.options.get( 'cx' ) !== '1' ) 
{
-   if ( !mw.user.isAnon() ) {
-   cxLink = mw.util.getUrl( 
'Special:ContentTranslation', {
-   campaign: 'cxstats',
-   targettitle: mw.config.get( 
'wgPageName' ),
-   to: mw.config.get( 'wgContentLanguage' )
-   } );
+   cxLink = mw.util.getUrl( 'Special:ContentTranslation', {
+   campaign: 'cxstats',
+   targettitle: mw.config.get( 'wgPageName' ),
+   to: mw.config.get( 'wgContentLanguage' )
+   } );
 
-   $( '.cx-header__bar' ).hide();
-   mw.hook( 'mw.cx.error' ).fire( mw.message( 
'cx-stats-try-contenttranslation', cxLink ) );
-   }
+   $( '.cx-header__bar' ).hide();
+   mw.hook( 'mw.cx.error' ).fire( mw.message( 
'cx-stats-try-contenttranslation', cxLink ) );
} else {
$header.find( '.cx-header__translation-center a' 
).text( mw.msg( 'cx-header-new-translation' ) );
}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib8b50299c3c2b91ab77997a8febb190ec81123cb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh santhosh.thottin...@gmail.com

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


[MediaWiki-commits] [Gerrit] Add a PHP implementation of MWTitleInputWidget - change (mediawiki/core)

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

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

Change subject: Add a PHP implementation of MWTitleInputWidget
..

Add a PHP implementation of MWTitleInputWidget

From the PHP side it's really just an infusable TextInputWidget.

Change-Id: I607339c2e967e502f85164c9b1ea79dc0a17c9cc
---
M autoload.php
A includes/OOUI/MWTitleInputWidget.php
2 files changed, 21 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/04/213504/1

diff --git a/autoload.php b/autoload.php
index 4bb1d92..e60f8db 100644
--- a/autoload.php
+++ b/autoload.php
@@ -814,6 +814,7 @@
'NullJob' = __DIR__ . '/includes/jobqueue/jobs/NullJob.php',
'NullLockManager' = __DIR__ . 
'/includes/filebackend/lockmanager/LockManager.php',
'NullRepo' = __DIR__ . '/includes/filerepo/NullRepo.php',
+   'OOUI\\MWTitleInputWidget' = __DIR__ . 
'/includes/OOUI/MWTitleInputWidget.php',
'ORAField' = __DIR__ . '/includes/db/DatabaseOracle.php',
'ORAResult' = __DIR__ . '/includes/db/DatabaseOracle.php',
'ORMIterator' = __DIR__ . '/includes/db/ORMIterator.php',
diff --git a/includes/OOUI/MWTitleInputWidget.php 
b/includes/OOUI/MWTitleInputWidget.php
new file mode 100644
index 000..9c1ca52
--- /dev/null
+++ b/includes/OOUI/MWTitleInputWidget.php
@@ -0,0 +1,20 @@
+?php
+
+namespace OOUI;
+
+/**
+ * Title input widget.
+ */
+class MWTitleInputWidget extends TextInputWidget {
+
+   /**
+* @param array $config Configuration options
+*/
+   public function __construct( array $config = array() ) {
+   // Parent constructor
+   parent::__construct( array_merge( $config, array( 'infusable' 
= true ) ) );
+
+   // Initialization
+   $this-addClasses( array( 'oo-ui-mwTitleInputWidget' ) );
+   }
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I607339c2e967e502f85164c9b1ea79dc0a17c9cc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Catrope roan.katt...@gmail.com

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


[MediaWiki-commits] [Gerrit] [WIP] Move MWTitleInputWidget into core - change (mediawiki/core)

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

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

Change subject: [WIP] Move MWTitleInputWidget into core
..

[WIP] Move MWTitleInputWidget into core

Imported from VisualEditor. Renamed from ve.ui.MWTitleInputWidget
to OO.ui.MWTitleInputWidget.

Change-Id: Idd344a35feccdc72693a6b1a575a0c567998741f
---
M .jshintrc
M resources/Resources.php
A resources/src/oojs-ui/OO.ui.MWTitleInputWidget.css
A resources/src/oojs-ui/OO.ui.MWTitleInputWidget.js
4 files changed, 140 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/03/213503/1

diff --git a/.jshintrc b/.jshintrc
index 4bb2440..64be746 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -23,6 +23,7 @@
JSON: true,
jQuery: false,
QUnit: false,
-   sinon: false
+   sinon: false,
+   OO: false
}
 }
diff --git a/resources/Resources.php b/resources/Resources.php
index 71a8f29..a2ba37e 100644
--- a/resources/Resources.php
+++ b/resources/Resources.php
@@ -1883,4 +1883,11 @@
'selectorWithVariant' = '.oo-ui-image-{variant} 
.oo-ui-icon-{name}, .oo-ui-image-{variant}.oo-ui-icon-{name}, 
.mw-ui-icon-{name}-{variant}:after, .mw-ui-icon-{name}-{variant}:before, 
.mw-ui-hovericon:hover .mw-ui-icon-{name}-{variant}-hover:before, 
.mw-ui-hovericon.mw-ui-icon-{name}-{variant}-hover:hover:before',
),
 
+   'oojs-ui.MWTitleInputWidget' = array(
+   'scripts' = 
'resources/src/oojs-ui/OO.ui.MWTitleInputWidget.js',
+   'styles' = 
'resources/src/oojs-ui/OO.ui.MWTitleInputWidget.css',
+   'dependencies' = 'oojs-ui',
+   'targets' = array( 'desktop', 'mobile' ),
+   ),
+
 );
diff --git a/resources/src/oojs-ui/OO.ui.MWTitleInputWidget.css 
b/resources/src/oojs-ui/OO.ui.MWTitleInputWidget.css
new file mode 100644
index 000..05dd29d
--- /dev/null
+++ b/resources/src/oojs-ui/OO.ui.MWTitleInputWidget.css
@@ -0,0 +1,3 @@
+.oo-ui-mwTitleInputWidget {
+   width:30em;
+}
diff --git a/resources/src/oojs-ui/OO.ui.MWTitleInputWidget.js 
b/resources/src/oojs-ui/OO.ui.MWTitleInputWidget.js
new file mode 100644
index 000..8a0fd62
--- /dev/null
+++ b/resources/src/oojs-ui/OO.ui.MWTitleInputWidget.js
@@ -0,0 +1,128 @@
+( function ( $, mw ) {
+
+/**
+ * Creates an OO.ui.MWTitleInputWidget object.
+ *
+ * @class
+ * @extends OO.ui.TextInputWidget
+ * @mixins OO.ui.LookupElement
+ *
+ * @constructor
+ * @param {Object} [config] Configuration options
+ * @cfg {number} [namespace] Namespace to prepend to queries
+ */
+OO.ui.MWTitleInputWidget = function OoUiMWTitleInputWidget( config ) {
+   // Config initialization
+   config = config || {};
+
+   // Parent constructor
+   OO.ui.TextInputWidget.call( this, config );
+
+   // Mixin constructors
+   OO.ui.LookupElement.call( this, config );
+
+   // Properties
+   this.namespace = config.namespace || null;
+
+   // Initialization
+   this.$element.addClass( 'oo-ui-mwTitleInputWidget' );
+   this.lookupMenu.$element.addClass( 'oo-ui-mwTitleInputWidget-menu' );
+};
+
+/* Inheritance */
+
+OO.inheritClass( OO.ui.MWTitleInputWidget, OO.ui.TextInputWidget );
+
+OO.mixinClass( OO.ui.MWTitleInputWidget, OO.ui.LookupElement );
+
+/* Methods */
+
+/**
+ * @inheritdoc
+ */
+OO.ui.MWTitleInputWidget.prototype.onLookupMenuItemChoose = function ( item ) {
+   this.closeLookupMenu();
+   this.setLookupsDisabled( true );
+   this.setValue( item.getData() );
+   this.setLookupsDisabled( false );
+};
+
+/**
+ * @inheritdoc
+ */
+OO.ui.MWTitleInputWidget.prototype.getLookupRequest = function () {
+   var value = this.value;
+
+   // Prefix with default namespace name
+   if ( this.namespace !== null  mw.Title.newFromText( value, 
this.namespace ) ) {
+   value = mw.Title.newFromText( value, this.namespace 
).getPrefixedText();
+   }
+
+   // Dont send leading ':' to open search
+   if ( value.charAt( 0 ) === ':' ) {
+   value = value.slice( 1 );
+   }
+
+   return new mw.Api().get( {
+   action: 'opensearch',
+   search: value,
+   suggest: ''
+   } );
+};
+
+/**
+ * @inheritdoc
+ */
+OO.ui.MWTitleInputWidget.prototype.getLookupCacheDataFromResponse = function ( 
data ) {
+   return data[1] || [];
+};
+
+/**
+ * @inheritdoc
+ */
+OO.ui.MWTitleInputWidget.prototype.getLookupMenuOptionsFromData = function ( 
data ) {
+   var i, len, title, value,
+   items = [],
+   matchingPages = data,
+   linkCacheUpdate = {};
+
+   // Matching pages
+   if ( matchingPages  matchingPages.length ) {
+   for ( i = 0, len = matchingPages.length; i  len; i++ ) {
+   title = new mw.Title( matchingPages[i] );
+ 

[MediaWiki-commits] [Gerrit] [WIP] Automatically infuse any OOUI widgets present on the page - change (mediawiki/core)

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

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

Change subject: [WIP] Automatically infuse any OOUI widgets present on the page
..

[WIP] Automatically infuse any OOUI widgets present on the page

Change-Id: I931df032c3d8dc5807c7590a763b8d9060c5ee87
---
M resources/Resources.php
M resources/src/mediawiki.page/mediawiki.page.ready.js
2 files changed, 19 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/05/213505/1

diff --git a/resources/Resources.php b/resources/Resources.php
index a2ba37e..1723b49 100644
--- a/resources/Resources.php
+++ b/resources/Resources.php
@@ -1890,4 +1890,13 @@
'targets' = array( 'desktop', 'mobile' ),
),
 
+   // Meta-module that depends on infusable things
+   // TODO: Load the necessary modules instead of loading everything
+   'oojs-ui.infusable' = array(
+   'dependencies' = array(
+   'oojs-ui',
+   'oojs-ui.MWTitleInputWidget',
+   )
+   ),
+
 );
diff --git a/resources/src/mediawiki.page/mediawiki.page.ready.js 
b/resources/src/mediawiki.page/mediawiki.page.ready.js
index 36eb9d4..8687f0c 100644
--- a/resources/src/mediawiki.page/mediawiki.page.ready.js
+++ b/resources/src/mediawiki.page/mediawiki.page.ready.js
@@ -59,6 +59,16 @@
}
$nodes.updateTooltipAccessKeys();
 
+   // Infuse OOUI widgets, if any are present
+   $nodes = $( '[data-ooui]' );
+   if ( $nodes.length ) {
+   mw.loader.using( 'oojs-ui.infusable' ).done( function 
() {
+   $nodes.each( function () {
+   OO.ui.infuse( this );
+   } );
+   } );
+   }
+
} );
 
 }( mediaWiki, jQuery ) );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I931df032c3d8dc5807c7590a763b8d9060c5ee87
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Catrope roan.katt...@gmail.com

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


[MediaWiki-commits] [Gerrit] Add extension.json, empty old PHP entry point, remove i18n shim - change (mediawiki...UnicodeConverter)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add extension.json, empty old PHP entry point, remove i18n shim
..


Add extension.json, empty old PHP entry point, remove i18n shim

Bug: T88066
Change-Id: I9096a39be8219ebcda38a8d4fe8839b4675c401d
---
D UnicodeConverter.i18n.php
M UnicodeConverter.php
A extension.json
3 files changed, 33 insertions(+), 59 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/UnicodeConverter.i18n.php b/UnicodeConverter.i18n.php
deleted file mode 100644
index 209e539..000
--- a/UnicodeConverter.i18n.php
+++ /dev/null
@@ -1,35 +0,0 @@
-?php
-/**
- * This is a backwards-compatibility shim, generated by:
- * 
https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php
- *
- * Beginning with MediaWiki 1.23, translation strings are stored in json files,
- * and the EXTENSION.i18n.php file only exists to provide compatibility with
- * older releases of MediaWiki. For more information about this migration, see:
- * https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format
- *
- * This shim maintains compatibility back to MediaWiki 1.17.
- */
-$messages = array();
-if ( !function_exists( 'wfJsonI18nShim2a78b9dcc7b444ab' ) ) {
-   function wfJsonI18nShim2a78b9dcc7b444ab( $cache, $code, $cachedData ) {
-   $codeSequence = array_merge( array( $code ), 
$cachedData['fallbackSequence'] );
-   foreach ( $codeSequence as $csCode ) {
-   $fileName = dirname( __FILE__ ) . /i18n/$csCode.json;
-   if ( is_readable( $fileName ) ) {
-   $data = FormatJson::decode( file_get_contents( 
$fileName ), true );
-   foreach ( array_keys( $data ) as $key ) {
-   if ( $key === '' || $key[0] === '@' ) {
-   unset( $data[$key] );
-   }
-   }
-   $cachedData['messages'] = array_merge( $data, 
$cachedData['messages'] );
-   }
-
-   $cachedData['deps'][] = new FileDependency( $fileName );
-   }
-   return true;
-   }
-
-   $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 
'wfJsonI18nShim2a78b9dcc7b444ab';
-}
diff --git a/UnicodeConverter.php b/UnicodeConverter.php
index 8cb5044..e2fd35d 100644
--- a/UnicodeConverter.php
+++ b/UnicodeConverter.php
@@ -1,26 +1,14 @@
 ?php
-
-# This is a simple example of a special page module
-# Given a string in UTF-8, it converts it to HTML entities suitable for
-# an ISO 8859-1 web page.
-
-# Not a valid entry point, skip unless MEDIAWIKI is defined
-if (!defined('MEDIAWIKI')) {
-   echo Unicode Converter extension;
-   exit( 1 );
+if ( function_exists( 'wfLoadExtension' ) ) {
+   wfLoadExtension( 'UnicodeConverter' );
+   // Keep i18n globals so mergeMessageFileList.php doesn't break
+   $wgMessagesDirs['UnicodeConverter'] = __DIR__ . '/i18n';
+   $wgExtensionMessagesFiles['UnicodeConverterAlias'] = __DIR__ . 
'/UnicodeConverter.alias.php';
+   /* wfWarn(
+   'Deprecated PHP entry point used for UnicodeConverter 
extension. Please use wfLoadExtension instead, ' .
+   'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   ); */
+   return;
+} else {
+   die( 'This version of the UnicodeConverter extension requires MediaWiki 
1.25+' );
 }
-
-$wgExtensionCredits['specialpage'][] = array(
-   'path' = __FILE__,
-   'name' = 'UnicodeConverter',
-   'author' = 'Tim Starling',
-   'url' = 'https://www.mediawiki.org/wiki/Extension:UnicodeConverter',
-   'descriptionmsg' = 'unicodeconverter-desc',
-);
-
-$dir = __DIR__ . '/';
-$wgMessagesDirs['UnicodeConverter'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['UnicodeConverter'] = $dir . 
'UnicodeConverter.i18n.php';
-$wgExtensionMessagesFiles['UnicodeConverterAlias'] = $dir . 
'UnicodeConverter.alias.php';
-$wgAutoloadClasses['SpecialUnicodeConverter'] = $dir . 
'UnicodeConverter_body.php';
-$wgSpecialPages['UnicodeConverter'] = 'SpecialUnicodeConverter';
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..59d0b5c
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,21 @@
+{
+   name: UnicodeConverter,
+   author: Tim Starling,
+   url: https://www.mediawiki.org/wiki/Extension:UnicodeConverter;,
+   descriptionmsg: unicodeconverter-desc,
+   type: specialpage,
+   SpecialPages: {
+   UnicodeConverter: SpecialUnicodeConverter
+   },
+   MessagesDirs: {
+   UnicodeConverter: [
+   i18n
+   ]
+   },
+   ExtensionMessagesFiles: {
+   

[MediaWiki-commits] [Gerrit] Depooling db1018 for maintenance and testing References T99485 - change (operations/mediawiki-config)

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

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

Change subject: Depooling db1018 for maintenance and testing References T99485
..

Depooling db1018 for maintenance and testing
References T99485

Change-Id: Ie5b69989608327552f9b7e5f1579ed522b7d7425
---
M wmf-config/db-eqiad.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/08/213508/1

diff --git a/wmf-config/db-eqiad.php b/wmf-config/db-eqiad.php
index 6ee18e5..ddd4ed0 100755
--- a/wmf-config/db-eqiad.php
+++ b/wmf-config/db-eqiad.php
@@ -102,7 +102,7 @@
'db1024' = 0,   # 1.4TB  64GB
'db1021' = 0,   # 1.4TB  64GB, dump, vslow
'db1036' = 200, # 1.4TB  64GB, watchlist, recentchanges, 
contributions, logpager
-   'db1018' = 200, # 1.4TB  64GB
+#  'db1018' = 200, # 1.4TB  64GB temporarelly disabled for 
maintenance
'db1054' = 200, # 2.8TB  96GB, api
'db1060' = 200, # 2.8TB  96GB, api
'db1063' = 400, # 2.8TB 128GB

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie5b69989608327552f9b7e5f1579ed522b7d7425
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jcrespo jcre...@wikimedia.org

___
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-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

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


add link description to wantedpages-summary

https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Wantedpages-summary/en

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

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I0ee6fb312bf57be0a775e68553351b6094738d64
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Microchip08 doug...@chippy.ch
Gerrit-Reviewer: Nemo bis federicol...@tiscali.it
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] i am working on gerrit - change (mediawiki...examples)

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

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

Change subject:  i am working on gerrit
..

i am working on gerrit

Change-Id: Ic7063675a804a97d577f6cba01d15201564685ee
---
M Example/Example.php
1 file changed, 1 insertion(+), 0 deletions(-)


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

diff --git a/Example/Example.php b/Example/Example.php
index df7af86..adf219f 100644
--- a/Example/Example.php
+++ b/Example/Example.php
@@ -159,3 +159,4 @@
 // Value of {{MYWORD}} constant
 $wgExampleMyWord = 'Awesome';
 rahul
+rahul_is_working_on_gerrit

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic7063675a804a97d577f6cba01d15201564685ee
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/examples
Gerrit-Branch: master
Gerrit-Owner: Rahulpatel rahpa...@cisco.com

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


[MediaWiki-commits] [Gerrit] labsdb1004: Enable daily osm planet sync - change (operations/puppet)

2015-05-25 Thread Alexandros Kosiaris (Code Review)
Alexandros Kosiaris has submitted this change and it was merged.

Change subject: labsdb1004: Enable daily osm planet sync
..


labsdb1004: Enable daily osm planet sync

Change-Id: I2d4f60f9d4dc1fcd392dd337fe483c58e9fb00fc
---
M manifests/role/postgres.pp
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Alexandros Kosiaris: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/manifests/role/postgres.pp b/manifests/role/postgres.pp
index 6326006..f99f3f8 100644
--- a/manifests/role/postgres.pp
+++ b/manifests/role/postgres.pp
@@ -112,4 +112,9 @@
 input_pbf_file = '/srv/labsdb/planet-latest-osm.pbf',
 require= Postgresql::Spatialdb['gis']
 }
+osm::planet_sync { 'gis':
+period = 'day',
+hour   = '1',
+minute = '17',
+}
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2d4f60f9d4dc1fcd392dd337fe483c58e9fb00fc
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris akosia...@wikimedia.org
Gerrit-Reviewer: Alexandros Kosiaris akosia...@wikimedia.org
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] [FIX] Redirect: Allow missing toolbar example - change (pywikibot/compat)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: [FIX] Redirect: Allow missing toolbar example
..


[FIX] Redirect: Allow missing toolbar example

If the toolbar example message is not present the script failed.

Backported from core.

Bug: T74504
Change-Id: I2aa7bddfb1bec9e91e7a16e2dfeb47c6869d5298
---
M redirect.py
1 file changed, 11 insertions(+), 7 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/redirect.py b/redirect.py
index cb26269..8b29f13 100644
--- a/redirect.py
+++ b/redirect.py
@@ -603,13 +603,17 @@
 % targetPage.title(asLink=True))
 if self.always:
 break  # skip if automatic
-mw_msg = targetPage.site.mediawiki_message(
-'wikieditor-toolbar-tool-redirect-example')
-if targetPage.title() == mw_msg:
-pywikibot.output(
-uSkipping toolbar example: Redirect source is 
-upotentially vandalized.)
-break
+try:
+mw_msg = targetPage.site.mediawiki_message(
+'wikieditor-toolbar-tool-redirect-example')
+except KeyError:
+pass
+else:
+if targetPage.title() == mw_msg:
+pywikibot.output(
+uSkipping toolbar example: Redirect source is 
+upotentially vandalized.)
+break
 # watch out for redirect loops
 if redirList.count(u'%s:%s'
% (targetPage.site.lang,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2aa7bddfb1bec9e91e7a16e2dfeb47c6869d5298
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt i...@gno.de
Gerrit-Reviewer: John Vandenberg jay...@gmail.com
Gerrit-Reviewer: Ladsgroup ladsgr...@gmail.com
Gerrit-Reviewer: Xqt i...@gno.de
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Update languages by size from core - change (pywikibot/compat)

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

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

Change subject: Update languages by size from core
..

Update languages by size from core

Change-Id: I4238837669e2516fb07e891c1275c555ca5d0621
---
M families/anarchopedia_family.py
M families/wikibooks_family.py
M families/wikinews_family.py
M families/wikipedia_family.py
M families/wikiquote_family.py
M families/wikisource_family.py
M families/wikiversity_family.py
M families/wikivoyage_family.py
M families/wiktionary_family.py
9 files changed, 70 insertions(+), 71 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat 
refs/changes/17/213517/1

diff --git a/families/anarchopedia_family.py b/families/anarchopedia_family.py
index 64f226e..0dd49d9 100644
--- a/families/anarchopedia_family.py
+++ b/families/anarchopedia_family.py
@@ -17,10 +17,9 @@
 self.name = 'anarchopedia'
 
 self.languages_by_size = [
-'ar', 'en', 'de', 'nl', 'el', 'it', 'fa', 'fi', 'fr', 'he',
-'es', 'hy', 'id', 'meta', 'ja', 'ko', 'lv', 'lt', 'no', 'hr',
-'pl', 'pt', 'ro', 'ru', 'sr', 'sq', 'da', 'sv', 'tr', 'zh',
-'eo',
+'ar', 'en', 'de', 'nl', 'el', 'it', 'fa', 'fi', 'fr', 'he', 'es',
+'hy', 'id', 'meta', 'ja', 'ko', 'lv', 'lt', 'no', 'hr', 'pl', 'pt',
+'ro', 'ru', 'hrv', 'sq', 'sr', 'sv', 'tr', 'zh', 'eo', 'da',
 ]
 self.langs = dict([(lang, '%s.anarchopedia.org' % lang)
for lang in self.languages_by_size])
diff --git a/families/wikibooks_family.py b/families/wikibooks_family.py
index e0c9e34..bcc2f89 100644
--- a/families/wikibooks_family.py
+++ b/families/wikibooks_family.py
@@ -16,12 +16,12 @@
 
 self.languages_by_size = [
 'en', 'de', 'fr', 'hu', 'ja', 'it', 'es', 'pt', 'nl', 'pl', 'he',
-'vi', 'id', 'sq', 'ca', 'fi', 'ru', 'fa', 'cs', 'zh', 'sv', 'da',
-'hr', 'tr', 'no', 'th', 'sr', 'ar', 'gl', 'ko', 'ta', 'mk', 'tl',
-'ro', 'is', 'ka', 'tt', 'lt', 'az', 'eo', 'uk', 'bg', 'sk', 'sl',
-'el', 'hy', 'ms', 'si', 'li', 'la', 'ml', 'ur', 'ang', 'ia', 'cv',
-'et', 'bn', 'km', 'hi', 'mr', 'sa', 'oc', 'kk', 'eu', 'ne', 'fy',
-'ie', 'te', 'af', 'tg', 'ky', 'bs', 'pa', 'mg', 'be', 'cy',
+'vi', 'ca', 'id', 'sq', 'fi', 'ru', 'fa', 'cs', 'zh', 'sv', 'hr',
+'tr', 'ro', 'sr', 'ar', 'no', 'th', 'ko', 'gl', 'da', 'ta', 'mk',
+'az', 'tl', 'is', 'ka', 'lt', 'tt', 'uk', 'eo', 'bg', 'sk', 'sl',
+'el', 'hy', 'ms', 'sa', 'si', 'li', 'la', 'ml', 'ur', 'bn', 'ang',
+'ia', 'cv', 'et', 'hi', 'km', 'mr', 'eu', 'oc', 'kk', 'fy', 'ne',
+'ie', 'te', 'af', 'tg', 'ky', 'bs', 'pa', 'be', 'mg', 'cy',
 'zh-min-nan', 'ku', 'uz',
 ]
 
diff --git a/families/wikinews_family.py b/families/wikinews_family.py
index 49cc0d7..fa0cbf5 100644
--- a/families/wikinews_family.py
+++ b/families/wikinews_family.py
@@ -17,9 +17,9 @@
 self.name = 'wikinews'
 
 self.languages_by_size = [
-'sr', 'en', 'fr', 'pl', 'de', 'it', 'es', 'pt', 'ru', 'ca', 'zh',
-'sv', 'ja', 'ta', 'el', 'cs', 'ar', 'uk', 'fa', 'fi', 'ro', 'tr',
-'he', 'bg', 'sq', 'no', 'ko', 'eo', 'bs',
+'sr', 'en', 'fr', 'de', 'pl', 'es', 'pt', 'ru', 'it', 'zh', 'ta',
+'el', 'ca', 'cs', 'sv', 'ar', 'fa', 'ro', 'uk', 'tr', 'ja', 'sq',
+'no', 'ko', 'eo', 'fi', 'bs', 'he', 'bg',
 ]
 
 self.langs = dict([(lang, '%s.wikinews.org' % lang)
diff --git a/families/wikipedia_family.py b/families/wikipedia_family.py
index 4ac7673..ce94565 100644
--- a/families/wikipedia_family.py
+++ b/families/wikipedia_family.py
@@ -17,34 +17,34 @@
 self.name = 'wikipedia'
 
 self.languages_by_size = [
-'en', 'sv', 'nl', 'de', 'fr', 'ru', 'it', 'es', 'vi', 'war', 'ceb',
-'pl', 'ja', 'pt', 'zh', 'uk', 'ca', 'no', 'fa', 'fi', 'id', 'ar',
-'cs', 'ko', 'ms', 'hu', 'ro', 'sr', 'tr', 'min', 'sh', 'kk', 'eo',
-'sk', 'eu', 'da', 'lt', 'bg', 'he', 'hr', 'sl', 'uz', 'hy', 'et',
-'vo', 'nn', 'gl', 'simple', 'hi', 'la', 'el', 'az', 'th', 'oc',
-'ka', 'mk', 'be', 'new', 'tt', 'pms', 'tl', 'ta', 'te', 'cy', 'lv',
-'be-x-old', 'ht', 'ur', 'ce', 'bs', 'sq', 'br', 'jv', 'mg', 'lb',
-'mr', 'is', 'ml', 'pnb', 'ba', 'af', 'my', 'zh-yue', 'bn', 'ga',
-'lmo', 'yo', 'fy', 'an', 'cv', 'tg', 'ky', 'sw', 'ne', 'io', 'gu',
-'bpy', 'sco', 'scn', 'nds', 'ku', 'ast', 'qu', 'su', 'als', 'gd',
-'kn', 'am', 'ckb', 'ia', 'nap', 'bug', 'bat-smg', 'wa', 'map-bms',
-'mn', 'arz', 'pa', 'mzn', 'si', 'zh-min-nan', 'yi', 'sah', 'fo',
-'vec', 'sa', 'bar', 'nah', 'os', 'roa-tara', 'pam', 'or', 'hsb',
-'se', 'li', 

[MediaWiki-commits] [Gerrit] registration: Fix 'ResourceModules' in schema - change (mediawiki/core)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: registration: Fix 'ResourceModules' in schema
..


registration: Fix 'ResourceModules' in schema

Change-Id: I6fb833133a6d6bde42cb40eb8fd7e02f7ca9797a
(cherry picked from commit 34537805fc5779e6e0a3a331a7acdc188240bd83)
---
M docs/extension.schema.json
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/docs/extension.schema.json b/docs/extension.schema.json
index 3b75b72..d5c17a1 100644
--- a/docs/extension.schema.json
+++ b/docs/extension.schema.json
@@ -297,7 +297,7 @@
}
}
},
-   ResourceLoaderModules: {
+   ResourceModules: {
type: object,
description: ResourceLoader modules to register,
additionalProperties: false,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I6fb833133a6d6bde42cb40eb8fd7e02f7ca9797a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_25
Gerrit-Owner: Jforrester jforres...@wikimedia.org
Gerrit-Reviewer: Jforrester jforres...@wikimedia.org
Gerrit-Reviewer: Legoktm legoktm.wikipe...@gmail.com
Gerrit-Reviewer: Waldir wal...@email.com
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] New Wikidata Build - 2015-05-25T10:00:01+0000 - change (mediawiki...Wikidata)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: New Wikidata Build - 2015-05-25T10:00:01+
..


New Wikidata Build - 2015-05-25T10:00:01+

Change-Id: Ia06418e56d6c1c000a9d8f23bae8e798d168d9f7
---
M composer.lock
M extensions/Wikibase/client/i18n/gu.json
M extensions/Wikibase/client/i18n/hi.json
M extensions/Wikibase/lib/i18n/gu.json
M extensions/Wikibase/lib/i18n/hi.json
M extensions/Wikibase/lib/i18n/kk-cyrl.json
M extensions/Wikibase/lib/i18n/sa.json
M extensions/Wikibase/lib/i18n/te.json
M extensions/Wikibase/repo/i18n/gu.json
M extensions/Wikibase/repo/i18n/hi.json
M extensions/Wikibase/repo/i18n/kk-cyrl.json
M vendor/composer/installed.json
12 files changed, 295 insertions(+), 21 deletions(-)

Approvals:
  JanZerebecki: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/composer.lock b/composer.lock
index 628df6b..1d6bbf8 100644
--- a/composer.lock
+++ b/composer.lock
@@ -1213,12 +1213,12 @@
 source: {
 type: git,
 url: 
https://github.com/wikimedia/mediawiki-extensions-Wikibase.git;,
-reference: fa3e87e0439212afa2e16656a0d49d9ef5fac935
+reference: a0cafee1a1907b1548d66ef8d4940357f1f75a60
 },
 dist: {
 type: zip,
-url: 
https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/fa3e87e0439212afa2e16656a0d49d9ef5fac935;,
-reference: fa3e87e0439212afa2e16656a0d49d9ef5fac935,
+url: 
https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/a0cafee1a1907b1548d66ef8d4940357f1f75a60;,
+reference: a0cafee1a1907b1548d66ef8d4940357f1f75a60,
 shasum: 
 },
 require: {
@@ -1286,7 +1286,7 @@
 wikibaserepo,
 wikidata
 ],
-time: 2015-05-23 22:20:48
+time: 2015-05-24 21:10:42
 },
 {
 name: wikibase/wikimedia-badges,
diff --git a/extensions/Wikibase/client/i18n/gu.json 
b/extensions/Wikibase/client/i18n/gu.json
index 6658d11..5af2f00 100644
--- a/extensions/Wikibase/client/i18n/gu.json
+++ b/extensions/Wikibase/client/i18n/gu.json
@@ -4,7 +4,8 @@
Ashok modhvadia,
KartikMistry,
Vyom,
-   Arbhatt
+   Arbhatt,
+   NehalDaveND
]
},
tooltip-t-wikibase: ડેટા રીપોઝીટરીમાંની વસ્તુને સંકળતી કડી,
@@ -12,6 +13,10 @@
wikibase-dataitem: {{WBREPONAME}} વસ્તુ,
wikibase-editlinks: કડીઓમાં ફેરફાર કરો,
wikibase-editlinkstitle: આંતરવિકિ ભાષાઓની કડીમાં ફેરફાર કરો,
+   wikibase-linkitem-title: પાનાં સાથે જોડો,
+   wikibase-linkitem-linkpage: પાનાં સે જોડાયેલ,
+   wikibase-linkitem-input-site: ભાષા:,
+   wikibase-linkitem-confirmitem-button: પુષ્ટી કરો,
wikibase-rc-hide-wikidata: $1 {{WBREPONAME}},
wikibase-rc-hide-wikidata-hide: છુપાવો,
wikibase-rc-hide-wikidata-show: દર્શાવો,
diff --git a/extensions/Wikibase/client/i18n/hi.json 
b/extensions/Wikibase/client/i18n/hi.json
index 3affa15..21b14fd 100644
--- a/extensions/Wikibase/client/i18n/hi.json
+++ b/extensions/Wikibase/client/i18n/hi.json
@@ -4,7 +4,8 @@
Adithyavr,
Bill william compton,
Siddhartha Ghai,
-   बिप्लब आनन्द
+   बिप्लब आनन्द,
+   NehalDaveND
]
},
wikibase-client-desc: विकिबेस एक्सटेंशन के लिए क्लाइन्ट,
@@ -46,5 +47,6 @@
wikibase-rc-wikibase-edit-title: {{WBREPONAME}} परिवर्तन्,
wikibase-unconnectedpages-submit: जाएँ,
wikibase-unconnectedpages-invalid-language: \$1\ एक मान्य भाषा कोड 
नहीं है।,
+   wikibase-pageinfo-entity-id-none: कुछ नहीं,
wikibase-otherprojects: अन्य परियोजनाएँ
 }
diff --git a/extensions/Wikibase/lib/i18n/gu.json 
b/extensions/Wikibase/lib/i18n/gu.json
index 3dc6011..77c3f54 100644
--- a/extensions/Wikibase/lib/i18n/gu.json
+++ b/extensions/Wikibase/lib/i18n/gu.json
@@ -1,17 +1,27 @@
 {
@metadata: {
authors: [
-   KartikMistry
+   KartikMistry,
+   NehalDaveND
]
},
+   wikibase-error-unexpected: ક્ષતિ: $1,
+   wikibase-quantitydetails-amount: રકમ,
wikibase-timedetails-time: સમય,
wikibase-timedetails-timezone: સમયવિસ્તાર,
+   wikibase-timedetails-calendar: પંચાંગ,
wikibase-timedetails-before: પહેલાં,
wikibase-timedetails-after: પછી,
wikibase-globedetails-longitude: રેખાંશ,
wikibase-globedetails-latitude: અક્ષાંસ,
wikibase-globedetails-globe: ગોળો,
wikibase-sitelinks-wikipedia: વિકિપીડિયા,
+  

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

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Hoo man: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/i18n/en.json b/i18n/en.json
index 1ce7df7..61a622b 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 detach 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 \nowiki$1/nowiki\,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I412b86bc3e1876b56a7809790cc1792d6ef9a0cc
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Microchip08 doug...@chippy.ch
Gerrit-Reviewer: Hoo man h...@online.de
Gerrit-Reviewer: Legoktm legoktm.wikipe...@gmail.com
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Made hooks register unconditionally - change (mediawiki...CleanChanges)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Made hooks register unconditionally
..


Made hooks register unconditionally

Rather than have a function that registers the hook depending on a
config variable, have the hook always registered, and just add a check
in the hook itself.

Change-Id: Ida3d4543a8184900e8b1b3623fdfd99acdcab13f
---
M CleanChanges.php
M Filters.php
2 files changed, 33 insertions(+), 22 deletions(-)

Approvals:
  Paladox: Looks good to me, but someone else must approve
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/CleanChanges.php b/CleanChanges.php
index 414bccd..e4c1c3c 100644
--- a/CleanChanges.php
+++ b/CleanChanges.php
@@ -23,6 +23,11 @@
 /* Hook into code */
 $wgHooks['FetchChangesList'][] = 'NCL::hook';
 $wgHooks['MakeGlobalVariablesScript'][] = 'NCL::addScriptVariables';
+$wgHooks['SpecialRecentChangesQuery'][] = 'CCFilters::user';
+$wgHooks['SpecialRecentChangesPanel'][] = 'CCFilters::userForm';
+$wgHooks['SpecialRecentChangesQuery'][] = 'CCFilters::trailer';
+$wgHooks['SpecialRecentChangesPanel'][] = 'CCFilters::trailerForm';
+
 
 /* Extension information */
 $wgExtensionCredits['other'][] = array(
@@ -38,18 +43,4 @@
 $wgCCUserFilter = true;
 $wgCCTrailerFilter = false;
 
-$wgExtensionFunctions[] = 'ccSetupFilters';
 $wgAutoloadClasses['CCFilters'] = $dir/Filters.php;
-
-function ccSetupFilters() {
-   global $wgCCUserFilter, $wgCCTrailerFilter, $wgHooks;
-
-   if ( $wgCCUserFilter ) {
-   $wgHooks['SpecialRecentChangesQuery'][] = 'CCFilters::user';
-   $wgHooks['SpecialRecentChangesPanel'][] = 'CCFilters::userForm';
-   }
-   if ( $wgCCTrailerFilter ) {
-   $wgHooks['SpecialRecentChangesQuery'][] = 'CCFilters::trailer';
-   $wgHooks['SpecialRecentChangesPanel'][] = 
'CCFilters::trailerForm';
-   }
-}
diff --git a/Filters.php b/Filters.php
index d6e9939..13e0858 100644
--- a/Filters.php
+++ b/Filters.php
@@ -10,7 +10,12 @@
 * @return bool
 */
public static function user( $conds, $tables, $join_conds, 
FormOptions $opts ) {
-   global $wgRequest;
+   global $wgRequest, $wgCCUserFilter;
+
+   if ( !$wgCCUserFilter ) {
+   return true;
+   }
+
$opts-add( 'users', '' );
$users = $wgRequest-getVal( 'users' );
if ( $users === null ) {
@@ -40,8 +45,13 @@
 * @return bool
 */
public static function userForm( $items, FormOptions $opts ) {
+   global $wgRequest, $wgCCUserFilter;
+
+   if ( !$wgCCUserFilter ) {
+   return true;
+   }
+
$opts-consumeValue( 'users' );
-   global $wgRequest;
 
$default = $wgRequest-getVal( 'users', '' );
$items['users'] = Xml::inputLabelSep( wfMessage( 
'cleanchanges-users' )-text(), 'users',
@@ -57,7 +67,12 @@
 * @return bool
 */
public static function trailer( $conds, $tables, $join_conds, 
FormOptions $opts ) {
-   global $wgRequest;
+   global $wgRequest, $wgCCTrailerFilter;
+
+   if ( !$wgCCTrailerFilter ) {
+   return true;
+   }
+
$opts-add( 'trailer', '' );
$trailer = $wgRequest-getVal( 'trailer' );
if ( $trailer === null ) return true;
@@ -75,14 +90,19 @@
 * @return bool
 */
public static function trailerForm( $items, FormOptions $opts ) {
-   $opts-consumeValue( 'trailer' );
-
-   global $wgRequest;
-   $default = $wgRequest-getVal( 'trailer', '' );
/**
 * @var Language $wgLang
 */
-   global $wgLang;
+   global $wgLang, $wgRequest, $wgCCTrailerFilter;
+
+   if ( !$wgCCTrailerFilter ) {
+   return true;
+   }
+
+   $opts-consumeValue( 'trailer' );
+
+   $default = $wgRequest-getVal( 'trailer', '' );
+
if ( is_callable( array( 'LanguageNames', 'getNames' ) ) ) {
$languages = LanguageNames::getNames( 
$wgLang-getCode(),
LanguageNames::FALLBACK_NORMAL,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ida3d4543a8184900e8b1b3623fdfd99acdcab13f
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/CleanChanges
Gerrit-Branch: master
Gerrit-Owner: Parent5446 tylerro...@gmail.com
Gerrit-Reviewer: Nikerabbit niklas.laxst...@gmail.com
Gerrit-Reviewer: Paladox thomasmulhall...@yahoo.com
Gerrit-Reviewer: jenkins-bot 

___

[MediaWiki-commits] [Gerrit] Display version selector via JavaScript - change (mediawiki...ExtensionDistributor)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Display version selector via JavaScript
..


Display version selector via JavaScript

Change-Id: I4d1da7addbd7776e1ba78988298274b77c1ee8b3
---
A .jshintrc
M ExtensionDistributor.hooks.php
M extension.json
A resources/ext.extensiondistributor.special.css
A resources/ext.extensiondistributor.special.infuse.js
M resources/ext.extensiondistributor.special.js
M specials/SpecialBaseDistributor.php
7 files changed, 174 insertions(+), 14 deletions(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 000..eb7dc06
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,26 @@
+{
+   /* Common */
+
+   // Enforcing
+   camelcase: true,
+   curly: true,
+   eqeqeq: true,
+   immed: true,
+   latedef: true,
+   newcap: true,
+   noarg: true,
+   noempty: true,
+   nonew: true,
+   quotmark: single,
+   trailing: true,
+   undef: true,
+   unused: true,
+   // Legacy
+   onevar: true,
+
+   /* Local */
+   predef: [
+   mediaWiki,
+   jQuery
+   ]
+}
diff --git a/ExtensionDistributor.hooks.php b/ExtensionDistributor.hooks.php
index 9d696d0..11858e6 100644
--- a/ExtensionDistributor.hooks.php
+++ b/ExtensionDistributor.hooks.php
@@ -20,4 +20,35 @@
 
return true;
}
+
+   /**
+* Hook to register our ResourceLoader module that depends upon 
configuration
+*
+* @param ResourceLoader $resourceLoader
+*/
+   public static function onResourceLoaderRegisterModules( ResourceLoader 
$resourceLoader ) {
+   global $wgExtDistSnapshotRefs;
+   $module = array(
+   'scripts' = 'ext.extensiondistributor.special.js',
+   'styles' = 'ext.extensiondistributor.special.css',
+   'dependencies' = array(
+   'mediawiki.api',
+   'mediawiki.jqueryMsg',
+   'oojs-ui'
+   ),
+   'messages' = array(
+   'extdist-choose-version-extensions',
+   'extdist-choose-version-skins',
+   'extdist-submit-version',
+   'extdist-no-versions-extensions',
+   'extdist-no-versions-skins',
+   ),
+   'localBasePath' = __DIR__ . '/resources',
+   'remoteExtPath' = 'ExtensionDistributor/resources',
+   );
+   foreach ( $wgExtDistSnapshotRefs as $branchName ) {
+   $module['messages'][] = extdist-branch-$branchName;
+   }
+   $resourceLoader-register( 'ext.extensiondistributor.special', 
$module );
+   }
 }
diff --git a/extension.json b/extension.json
index 6d37de6..be10566 100644
--- a/extension.json
+++ b/extension.json
@@ -30,6 +30,9 @@
Hooks: {
APIQuerySiteInfoGeneralInfo: [

ExtensionDistributorHooks::onAPIQuerySiteInfoGeneralInfo
+   ],
+   ResourceLoaderRegisterModules: [
+   
ExtensionDistributorHooks::onResourceLoaderRegisterModules
]
},
SpecialPages: {
@@ -52,9 +55,11 @@
remoteExtPath: ExtensionDistributor/resources
},
ResourceModules: {
-   ext.extensiondistributor.special: {
-   scripts: ext.extensiondistributor.special.js,
-   dependencies: [oojs-ui]
+   ext.extensiondistributor.special.infuse: {
+   scripts: ext.extensiondistributor.special.infuse.js,
+   dependencies: [
+   oojs-ui
+   ]
}
}
 }
diff --git a/resources/ext.extensiondistributor.special.css 
b/resources/ext.extensiondistributor.special.css
new file mode 100644
index 000..704aec2
--- /dev/null
+++ b/resources/ext.extensiondistributor.special.css
@@ -0,0 +1,4 @@
+/* make it look the same width as the input fields */
+#mw-extdist-continue {
+   max-width: 50em;
+}
diff --git a/resources/ext.extensiondistributor.special.infuse.js 
b/resources/ext.extensiondistributor.special.infuse.js
new file mode 100644
index 000..e398c1b
--- /dev/null
+++ b/resources/ext.extensiondistributor.special.infuse.js
@@ -0,0 +1,7 @@
+/* global OO */
+( function( $, OO ) {
+   'use strict';
+   $( function() {
+   OO.ui.infuse( 'mw-extdist-selector-version' );
+   } );
+}( jQuery, OO ) );
diff --git a/resources/ext.extensiondistributor.special.js 

[MediaWiki-commits] [Gerrit] Don't localize parentheses in version number in parserTests.php - change (mediawiki/core)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Don't localize parentheses in version number in parserTests.php
..


Don't localize parentheses in version number in parserTests.php

Bug: 40254
Change-Id: I49d342f47d959d072c2159426517475e4409251d
---
M tests/parserTests.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/parserTests.php b/tests/parserTests.php
index d7e8b86..fa12b0d 100644
--- a/tests/parserTests.php
+++ b/tests/parserTests.php
@@ -83,7 +83,7 @@
 }
 
 # Print out software version to assist with locating regressions
-$version = SpecialVersion::getVersion();
+$version = SpecialVersion::getVersion( 'nodb' );
 echo This is MediaWiki version {$version}.\n\n;
 
 if ( isset( $options['fuzz'] ) ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I49d342f47d959d072c2159426517475e4409251d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: FunPika funpikaw...@gmail.com
Gerrit-Reviewer: Cscott canan...@wikimedia.org
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Fix typo in help message - change (mediawiki...release)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Fix typo in help message
..


Fix typo in help message

Change-Id: I26cfb049e9eb1fd343b18b21fd4dde4a866019e5
---
M make-release/make-release.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/make-release/make-release.py b/make-release/make-release.py
index 5ad00e8..5739612 100755
--- a/make-release/make-release.py
+++ b/make-release/make-release.py
@@ -116,7 +116,7 @@
 parser.add_argument(
 '--list-bundled', dest='list_bundled',
 action='store_true',
-help='List all bundled extensions for the given versoin and quit'
+help='List all bundled extensions for the given version and quit'
 )
 
 return parser.parse_args()

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I26cfb049e9eb1fd343b18b21fd4dde4a866019e5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/tools/release
Gerrit-Branch: master
Gerrit-Owner: Lewis Cawte le...@lewiscawte.me
Gerrit-Reviewer: Legoktm legoktm.wikipe...@gmail.com
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Add new language cjm - change (translatewiki)

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

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

Change subject: Add new language cjm
..

Add new language cjm

Add new language code cjm requested in support on
translatewiki.net
https://translatewiki.net/wiki/Thread:Support/Localisation_for_Eastern_Cham_language

Change-Id: I149ad150f65328670e01dce30abba129310b57a3
---
M FallbackSettings.php
M LanguageSettings.php
2 files changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/26/213526/1

diff --git a/FallbackSettings.php b/FallbackSettings.php
index 52ecf04..f3f6d3e 100644
--- a/FallbackSettings.php
+++ b/FallbackSettings.php
@@ -16,6 +16,7 @@
 $wgTranslateLanguageFallbacks['bfq'] = array( 'kn', 'ta' );
 $wgTranslateLanguageFallbacks['bjn'] = 'id';
 $wgTranslateLanguageFallbacks['br'] = array( 'roa-rup', 'pms', 'fr', 'it' );
+$wgTranslateLanguageFallbacks['cjm-latn'] = array( 'vi' );
 $wgTranslateLanguageFallbacks['cnh'] = array( 'my' );
 $wgTranslateLanguageFallbacks['cps'] = array( 'tl' );
 $wgTranslateLanguageFallbacks['cs'] = array( 'sk', 'de', 'fr', 'ru', 'pl' );
diff --git a/LanguageSettings.php b/LanguageSettings.php
index dc4a99b..4169b62 100644
--- a/LanguageSettings.php
+++ b/LanguageSettings.php
@@ -87,6 +87,7 @@
 $wgExtraLanguageNames['awa'] = 'अवधी'; # Awadhi / Siebrand 2014-12-28
 $wgExtraLanguageNames['gor'] = 'Hulontalo'; # Gorontalo / Siebrand 2014-12-28
 $wgExtraLanguageNames['knn'] = 'महाराष्ट्रीय कोंकणी'; # Maharashtrian Konkani
+$wgExtraLanguageNames['cjm-latn'] = 'Cham'; # Eastern Cham (Latin script) / 
Siebrand 2015-05-25
 
 $wgExtraLanguageNames['nl-be'] = 'nl-be'; # Nikerabbit 2008-xx-xx - For FreeCol
 $wgExtraLanguageNames['es-mx'] = 'español de México'; # Mexico; for iNaturalist

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I149ad150f65328670e01dce30abba129310b57a3
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand siebr...@kitano.nl

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


[MediaWiki-commits] [Gerrit] Hygiene: Update Gruntfile, kill javascripts README - change (mediawiki...MobileFrontend)

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

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

Change subject: Hygiene: Update Gruntfile, kill javascripts README
..

Hygiene: Update Gruntfile, kill javascripts README

this removes the javascripts folder

Change-Id: I6beda2bc528ce0984cf0301162fbd68d0a525eaf
---
M Gruntfile.js
D javascripts/README.md
2 files changed, 5 insertions(+), 23 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/28/213528/1

diff --git a/Gruntfile.js b/Gruntfile.js
index 08838f2..0913978 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -24,13 +24,9 @@
QUNIT_FILTER: ( process.env.QUNIT_FILTER  'filter=' + 
process.env.QUNIT_FILTER ) || '',
QUNIT_MODULE: ( process.env.QUNIT_MODULE  'module=' + 
process.env.QUNIT_MODULE ) || '',
files: {
-   js: [
-   'javascripts/**/*.js',
-   'resources/**/*.js'
-   ],
+   js: 'resources/**/*.js',
jsTests: 'tests/qunit/**/*.js',
-   jsExternals: 'javascripts/externals/**/*.js',
-   resourceJsExternals: 'resources/*/externals/**/*.js'
+   jsExternals: 'resources/*/externals/**/*.js'
},
jshint: {
options: {
@@ -40,13 +36,12 @@
sources: [
'%= files.js %',
'!%= files.jsExternals %',
-   '!%= files.resourceJsExternals %'
]
},
jscs: {
main: [
'%= files.js %',
-   '!%= files.resourceJsExternals %'
+   '!%= files.jsExternals %'
],
test: {
options: {
@@ -79,8 +74,7 @@
baseUrl: '../../', // Path to 
assets from the server (extensions/Mobile...)
src: [
'%= files.js %',
-   '!%= files.jsExternals 
%',
-   '!%= 
files.resourceJsExternals %'
+   '!%= files.jsExternals 
%'
],
instrumentedFiles: 
'tests/report/tmp',
htmlReport: 'tests/report'
@@ -118,8 +112,7 @@
main: {
src: [
'%= files.js %',
-   '!%= files.jsExternals %',
-   '!%= files.resourceJsExternals %'
+   '!%= files.jsExternals %'
],
dest: 'docs/js',
options: {
diff --git a/javascripts/README.md b/javascripts/README.md
deleted file mode 100644
index ee577af..000
--- a/javascripts/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-#Overview
-This documents the JavaScript API's that are available in the MobileFrontend 
extension.
-
-Note that many of the functions provided by the [MediaWiki 
API](https://doc.wikimedia.org/mediawiki-core/master/js/)
-may be unavailable in MobileFrontend which strives to keep code as minimal as 
possible.
-
-Everything in MobileFrontend is described as a Class.
-
-#See Also
-* [MediaWiki Mobile StyleGuide](../styleguide/index.html)
-* [MediaWiki API](https://doc.wikimedia.org/mediawiki-core/master/js/)

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6beda2bc528ce0984cf0301162fbd68d0a525eaf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson jrob...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] Fix Sentry DSN whitespace issues - change (mediawiki/vagrant)

2015-05-25 Thread Code Review
Gergő Tisza has uploaded a new change for review.

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

Change subject: Fix Sentry DSN whitespace issues
..

Fix Sentry DSN whitespace issues

file_get_contents adds a newline, which breaks raven-php.

Bug: T85188
Change-Id: Ia91eb179ea19b26955439a92d80fc12347909daf
---
M puppet/modules/role/manifests/sentry.pp
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant 
refs/changes/27/213527/1

diff --git a/puppet/modules/role/manifests/sentry.pp 
b/puppet/modules/role/manifests/sentry.pp
index 78a71cc..6405470 100644
--- a/puppet/modules/role/manifests/sentry.pp
+++ b/puppet/modules/role/manifests/sentry.pp
@@ -14,7 +14,7 @@
 settings = [
 # OMG that's ugly. Did not find a better way to reuse
 # the output of a script.
-\$wgSentryDsn = file_get_contents('${dsn}');,
+\$wgSentryDsn = trim(file_get_contents('${dsn}'));,
 ],
 }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia91eb179ea19b26955439a92d80fc12347909daf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Gergő Tisza gti...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] Add extension.json, empty PHP entry point - change (mediawiki...DisableAccount)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add extension.json, empty PHP entry point
..


Add extension.json, empty PHP entry point

Bug: T88048
Change-Id: I9fa3f87f3e099440f8e680fcc95895a220d67353
---
M DisableAccount.php
A DisableAccountLogFormatter.php
A extension.json
3 files changed, 56 insertions(+), 35 deletions(-)

Approvals:
  Alex Monk: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/DisableAccount.php b/DisableAccount.php
index 803a2ca..6762afc 100644
--- a/DisableAccount.php
+++ b/DisableAccount.php
@@ -1,37 +1,14 @@
 ?php
-// DisableAccount extension: quick extension to disable an account.
-// Written by Andrew Garrett, 2010-12-02
-
-$wgExtensionCredits['other'][] = array(
-   'path' = __FILE__,
-   'name' = 'Disable Account',
-   'author' = array( 'Andrew Garrett' ),
-   'url' = 'https://www.mediawiki.org/wiki/Extension:DisableAccount',
-   'descriptionmsg' = 'disableaccount-desc',
-);
-
-$dir = __DIR__ . '/';
-
-$wgMessagesDirs['DisableAccount'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['DisableAccountAliases'] = $dir . 
'DisableAccount.alias.php';
-
-// Special page classes
-$wgAutoloadClasses['SpecialDisableAccount'] = $dir . 'DisableAccount_body.php';
-$wgSpecialPages['DisableAccount'] = 'SpecialDisableAccount';
-
-// Add permission required to use Special:DisableAccount
-$wgAvailableRights[] = 'disableaccount';
-
-// Log
-$wgLogActionsHandlers['block/disableaccount'] = 'DisableAccountLogFormatter';
-
-class DisableAccountLogFormatter extends LogFormatter {
-   protected function getMessageParameters() {
-   $params = parent::getMessageParameters();
-   if ( count( $params ) == 3 ) {
-   // Deal with old log entries which don't have this set 
(needed for GENDER support)
-   $params[3] = $this-entry-getTarget()-getRootText();
-   }
-   return $params;
-   }
+if ( function_exists( 'wfLoadExtension' ) ) {
+   wfLoadExtension( 'DisableAccount' );
+   // Keep i18n globals so mergeMessageFileList.php doesn't break
+   $wgMessagesDirs['DisableAccount'] = __DIR__ . '/i18n';
+   $wgExtensionMessagesFiles['DisableAccountAliases'] = __DIR__ . 
'/DisableAccount.alias.php';
+   /* wfWarn(
+   'Deprecated PHP entry point used for DisableAccount extension. 
Please use wfLoadExtension instead, ' .
+   'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   ); */
+   return;
+} else {
+   die( 'This version of the DisableAccount extension requires MediaWiki 
1.25+' );
 }
diff --git a/DisableAccountLogFormatter.php b/DisableAccountLogFormatter.php
new file mode 100644
index 000..6137a37
--- /dev/null
+++ b/DisableAccountLogFormatter.php
@@ -0,0 +1,12 @@
+?php
+
+class DisableAccountLogFormatter extends LogFormatter {
+   protected function getMessageParameters() {
+   $params = parent::getMessageParameters();
+   if ( count( $params ) == 3 ) {
+   // Deal with old log entries which don't have this set 
(needed for GENDER support)
+   $params[3] = $this-entry-getTarget()-getRootText();
+   }
+   return $params;
+   }
+}
\ No newline at end of file
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..5079868
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,32 @@
+{
+   @doc: DisableAccount extension: quick extension to disable an 
account.,
+   @doc: Written by Andrew Garrett, 2010-12-02,
+   name: Disable Account,
+   author: [
+   Andrew Garrett
+   ],
+   url: https://www.mediawiki.org/wiki/Extension:DisableAccount;,
+   descriptionmsg: disableaccount-desc,
+   type: other,
+   ExtensionMessagesFiles: {
+   DisableAccountAliases: DisableAccount.alias.php
+   },
+   MessagesDirs: {
+   DisableAccount: [
+   i18n
+   ]
+   },
+   LogActionsHandlers: {
+   block/disableaccount: DisableAccountLogFormatter
+   },
+   AvailableRights: [
+   disableaccount
+   ],
+   SpecialPages: {
+   DisableAccount: SpecialDisableAccount
+   },
+   AutoloadClasses: {
+   SpecialDisableAccount: DisableAccount_body.php,
+   DisableAccountLogFormatter: DisableAccountLogFormatter.php
+   }
+}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I9fa3f87f3e099440f8e680fcc95895a220d67353
Gerrit-PatchSet: 7
Gerrit-Project: mediawiki/extensions/DisableAccount
Gerrit-Branch: master
Gerrit-Owner: Legoktm legoktm.wikipe...@gmail.com
Gerrit-Reviewer: Alex Monk kren...@gmail.com

[MediaWiki-commits] [Gerrit] Add new language cjm - change (translatewiki)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add new language cjm
..


Add new language cjm

Add new language code cjm requested in support on
translatewiki.net
https://translatewiki.net/wiki/Thread:Support/Localisation_for_Eastern_Cham_language

Change-Id: I149ad150f65328670e01dce30abba129310b57a3
---
M FallbackSettings.php
M LanguageSettings.php
2 files changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/FallbackSettings.php b/FallbackSettings.php
index 52ecf04..f3f6d3e 100644
--- a/FallbackSettings.php
+++ b/FallbackSettings.php
@@ -16,6 +16,7 @@
 $wgTranslateLanguageFallbacks['bfq'] = array( 'kn', 'ta' );
 $wgTranslateLanguageFallbacks['bjn'] = 'id';
 $wgTranslateLanguageFallbacks['br'] = array( 'roa-rup', 'pms', 'fr', 'it' );
+$wgTranslateLanguageFallbacks['cjm-latn'] = array( 'vi' );
 $wgTranslateLanguageFallbacks['cnh'] = array( 'my' );
 $wgTranslateLanguageFallbacks['cps'] = array( 'tl' );
 $wgTranslateLanguageFallbacks['cs'] = array( 'sk', 'de', 'fr', 'ru', 'pl' );
diff --git a/LanguageSettings.php b/LanguageSettings.php
index dc4a99b..4169b62 100644
--- a/LanguageSettings.php
+++ b/LanguageSettings.php
@@ -87,6 +87,7 @@
 $wgExtraLanguageNames['awa'] = 'अवधी'; # Awadhi / Siebrand 2014-12-28
 $wgExtraLanguageNames['gor'] = 'Hulontalo'; # Gorontalo / Siebrand 2014-12-28
 $wgExtraLanguageNames['knn'] = 'महाराष्ट्रीय कोंकणी'; # Maharashtrian Konkani
+$wgExtraLanguageNames['cjm-latn'] = 'Cham'; # Eastern Cham (Latin script) / 
Siebrand 2015-05-25
 
 $wgExtraLanguageNames['nl-be'] = 'nl-be'; # Nikerabbit 2008-xx-xx - For FreeCol
 $wgExtraLanguageNames['es-mx'] = 'español de México'; # Mexico; for iNaturalist

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I149ad150f65328670e01dce30abba129310b57a3
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Remove unused variants of Goan Konkani - change (mediawiki...cldr)

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

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

Change subject: Remove unused variants of Goan Konkani
..

Remove unused variants of Goan Konkani

Also add trnaslation for Japanese

Change-Id: I2fd178c8100712070cd38b993d47f11a32fefee8
---
M LocalNames/LocalNamesEn.php
M LocalNames/LocalNamesFa.php
M LocalNames/LocalNamesJa.php
3 files changed, 2 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/cldr 
refs/changes/29/213529/1

diff --git a/LocalNames/LocalNamesEn.php b/LocalNames/LocalNamesEn.php
index 6837519..d1b73ef 100644
--- a/LocalNames/LocalNamesEn.php
+++ b/LocalNames/LocalNamesEn.php
@@ -31,9 +31,6 @@
 */
'gom-deva' = 'Goan Konkani (Devanagari script)',
'gom-latn' = 'Goan Konkani (Latin script)',
-   'gom-knda' = 'Goan Konkani (Kannada script)',
-   'gom-mlym' = 'Goan Konkani (Malayalam script)',
-   'gom-arab' = 'Goan Konkani (Arabic script)',
 
/* Not in CLDR 27.0.1. Maharashtrian Konkani language
 * https://www.ethnologue.com/language/knn
diff --git a/LocalNames/LocalNamesFa.php b/LocalNames/LocalNamesFa.php
index 2f91323..6ecb735 100644
--- a/LocalNames/LocalNamesFa.php
+++ b/LocalNames/LocalNamesFa.php
@@ -92,9 +92,6 @@
'gom' = 'کونکانی گن',
'gom-deva' = 'کونکانی گن (خط دیواناگری)',
'gom-latn' = 'کونکانی گن (خط لاتین)',
-   'gom-knda' = 'کونکانی گن (خط کانادا)',
-   'gom-mlym' = 'کونکانی گن (خط مالایالمی)',
-   'gom-arab' = 'کونکانی گن (خط عربی)',
 
/* Not in CLDR 27.0.1. Western Atlantic Creole language
 * https://www.ethnologue.com/language/dtp
diff --git a/LocalNames/LocalNamesJa.php b/LocalNames/LocalNamesJa.php
index 5b7703e..63885c1 100644
--- a/LocalNames/LocalNamesJa.php
+++ b/LocalNames/LocalNamesJa.php
@@ -29,11 +29,8 @@
 * https://www.ethnologue.com/language/gom
 * Added 2008-09-02.
 */
-   // 'gom-deva' = 'Goan Konkani (Devanagari script)',
-   // 'gom-latn' = 'Goan Konkani (Latin script)',
-   // 'gom-knda' = 'Goan Konkani (Kannada script)',
-   // 'gom-mlym' = 'Goan Konkani (Malayalam script)',
-   // 'gom-arab' = 'Goan Konkani (Arabic script)',
+   'gom-deva' = 'ゴア・コンカニ語(デーバナーガリー文字)',
+   'gom-latn' = 'ゴア・コンカニ語(ラテン文字)',
 
/* Not in CLDR 27.0.1. Maharashtrian Konkani language
 * https://www.ethnologue.com/language/knn

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2fd178c8100712070cd38b993d47f11a32fefee8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/cldr
Gerrit-Branch: master
Gerrit-Owner: Mjbmr mjb...@gmail.com

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


[MediaWiki-commits] [Gerrit] Language pairs of different direction and without MT: No def... - change (mediawiki...ContentTranslation)

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

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

Change subject: Language pairs of different direction and without MT: No 
default translation
..

Language pairs of different direction and without MT: No default translation

Bug: T99832
Change-Id: Ib7699a388b92890fd7113272a7b36356112d1e2b
---
M modules/tools/ext.cx.tools.mt.js
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/31/213531/1

diff --git a/modules/tools/ext.cx.tools.mt.js b/modules/tools/ext.cx.tools.mt.js
index 69321e5..29e69c1 100644
--- a/modules/tools/ext.cx.tools.mt.js
+++ b/modules/tools/ext.cx.tools.mt.js
@@ -43,6 +43,14 @@
 
if ( $.isEmptyObject( MTControlCard.providers ) 
) {
MTControlCard.provider = noMT;
+   // For languages with different 
directionality,
+   // provide disable MT as default 
option. It gives
+   // an empty editor to translator.
+   if ( $.uls.data.getDir( 
mw.cx.sourceLanguage ) !==
+   $.uls.data.getDir( 
mw.cx.targetLanguage )
+   ) {
+   MTControlCard.provider = 
disableMT;
+   }
} else {
// TODO Consider user preferences
MTControlCard.provider = 
MTControlCard.providers[ 0 ];

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib7699a388b92890fd7113272a7b36356112d1e2b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh santhosh.thottin...@gmail.com

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


[MediaWiki-commits] [Gerrit] Cassandra: deployment-prep: Set the correct listen IP - change (operations/puppet)

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

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

Change subject: Cassandra: deployment-prep: Set the correct listen IP
..

Cassandra: deployment-prep: Set the correct listen IP

Using the default $::ipaddress on deployment-restbase0x does not work
since it points to the private docker0 interface. This patch changes
that to point to $::ipaddress_eth0 instead.

Bug: T99564
Change-Id: Idf7c36474a928d0ebed48becfff72a6e492955e4
---
M hieradata/labs/deployment-prep/common.yaml
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/30/213530/1

diff --git a/hieradata/labs/deployment-prep/common.yaml 
b/hieradata/labs/deployment-prep/common.yaml
index 2bb760d..9b59da4 100644
--- a/hieradata/labs/deployment-prep/common.yaml
+++ b/hieradata/labs/deployment-prep/common.yaml
@@ -28,6 +28,8 @@
   - wikivoyage.org
   - wiktionary.org
 graphoid::protocol: http
+cassandra::listen_address: '%{::ipaddress_eth0}'
+cassandra::rpc_address: '%{::ipaddress_eth0}'
 cassandra::seeds:
   - 10.68.17.227
   - 10.68.17.189

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idf7c36474a928d0ebed48becfff72a6e492955e4
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mobrovac mobro...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] Removed composer.json to get rid of the Plancake dependancy - change (mediawiki...BounceHandler)

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

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

Change subject: Removed composer.json to get rid of the Plancake dependancy
..

Removed composer.json to get rid of the Plancake dependancy

Change-Id: I4e932581c02cbb7beecd356853fe7592237b2511
---
D composer.json
1 file changed, 0 insertions(+), 32 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BounceHandler 
refs/changes/33/213533/1

diff --git a/composer.json b/composer.json
deleted file mode 100644
index 83cb42a..000
--- a/composer.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
-name: mediawiki/bouncehandler,
-authors : [
-{
-name: Tony Thomas,
-email: 01tonytho...@gmail.com,
-homepage: http://tttwrites.in;,
-role: Developer
-},
-{
-name: Legoktm,
-email: lego...@gmail.com
-},
-{
-name: Jeff Green,
-email: jgr...@wikimedia.org
-}
-],
-homepage : https://www.mediawiki.org/wiki/Extension:BounceHandler;,
-support : {
-email: 01tonytho...@gmail.com,
-issues: https://bugzilla.wikimedia.org;,
-irc: irc://irc.freenode.org/wikimedia-dev,
-source: 
https://github.com/wikimedia/mediawiki-extensions-BounceHandler;
-},
-description: MediaWiki extension to process emails that bounce using 
VERP,
-license : GPL-2.0+,
-require:
-{
-floriansemm/official-library-php-email-parser: dev-master
-}
-}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e932581c02cbb7beecd356853fe7592237b2511
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BounceHandler
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas 01tonytho...@gmail.com

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


[MediaWiki-commits] [Gerrit] Syncronize VisualEditor: 5487254..8491c36 - change (mediawiki/extensions)

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

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

Change subject: Syncronize VisualEditor: 5487254..8491c36
..

Syncronize VisualEditor: 5487254..8491c36

Change-Id: I4ccbffbb7a641464dd3f7225ec37704ddf147902
---
M VisualEditor
1 file changed, 0 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions 
refs/changes/32/213532/1

diff --git a/VisualEditor b/VisualEditor
index 5487254..8491c36 16
--- a/VisualEditor
+++ b/VisualEditor
-Subproject commit 54872540f22b5b3e0a834c58d045c14429a60552
+Subproject commit 8491c363b52ca9815a9cdb64dc3224a3026a2555

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4ccbffbb7a641464dd3f7225ec37704ddf147902
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions
Gerrit-Branch: master
Gerrit-Owner: Jenkins-mwext-sync jenkins-...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] [FEAT] replace: Inform about missing user-fixes.py - change (pywikibot/core)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: [FEAT] replace: Inform about missing user-fixes.py
..


[FEAT] replace: Inform about missing user-fixes.py

When the user-fixes.py file is missing, it now shows such a message
in replace.py when an unknown fix was selected.

Change-Id: I6d271b363f62a9f0398917d5ab7016df1ac044a6
---
M pywikibot/fixes.py
M scripts/replace.py
2 files changed, 10 insertions(+), 4 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/fixes.py b/pywikibot/fixes.py
index 3fe8e1b..1eb1d91 100644
--- a/pywikibot/fixes.py
+++ b/pywikibot/fixes.py
@@ -7,6 +7,8 @@
 #
 from __future__ import unicode_literals
 
+import os.path
+
 from pywikibot import config
 
 __version__ = '$Id$'
@@ -629,10 +631,11 @@
 
 #
 # Load the user fixes file.
-try:
-filename = config.datafilepath('user-fixes.py')
+filename = config.datafilepath('user-fixes.py')
+if os.path.exists(filename):
 # load binary, to let compile decode it according to the file header
 with open(filename, 'rb') as f:
 exec(compile(f.read(), filename, 'exec'))
-except IOError:
-pass
+user_fixes_loaded = True
+else:
+user_fixes_loaded = False
diff --git a/scripts/replace.py b/scripts/replace.py
index 19a7855..47cd2ac 100755
--- a/scripts/replace.py
+++ b/scripts/replace.py
@@ -861,6 +861,9 @@
 except KeyError:
 pywikibot.output(u'Available predefined fixes are: %s'
  % ', '.join(fixes.fixes.keys()))
+if not fixes.user_fixes_loaded:
+pywikibot.output('The user fixes file could not be found: '
+ '{0}'.format(fixes.filename))
 return
 if msg in fix:
 if isinstance(fix['msg'], basestring):

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I6d271b363f62a9f0398917d5ab7016df1ac044a6
Gerrit-PatchSet: 5
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise commodorefabia...@gmx.de
Gerrit-Reviewer: John Vandenberg jay...@gmail.com
Gerrit-Reviewer: Ladsgroup ladsgr...@gmail.com
Gerrit-Reviewer: Merlijn van Deen valhall...@arctus.nl
Gerrit-Reviewer: Mpaa mpaa.w...@gmail.com
Gerrit-Reviewer: XZise commodorefabia...@gmx.de
Gerrit-Reviewer: Xqt i...@gno.de
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Syncronize VisualEditor: 5487254..8491c36 - change (mediawiki/extensions)

2015-05-25 Thread Jenkins-mwext-sync (Code Review)
Jenkins-mwext-sync has submitted this change and it was merged.

Change subject: Syncronize VisualEditor: 5487254..8491c36
..


Syncronize VisualEditor: 5487254..8491c36

Change-Id: I4ccbffbb7a641464dd3f7225ec37704ddf147902
---
M VisualEditor
1 file changed, 0 insertions(+), 0 deletions(-)

Approvals:
  Jenkins-mwext-sync: Verified; Looks good to me, approved



diff --git a/VisualEditor b/VisualEditor
index 5487254..8491c36 16
--- a/VisualEditor
+++ b/VisualEditor
-Subproject commit 54872540f22b5b3e0a834c58d045c14429a60552
+Subproject commit 8491c363b52ca9815a9cdb64dc3224a3026a2555

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4ccbffbb7a641464dd3f7225ec37704ddf147902
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions
Gerrit-Branch: master
Gerrit-Owner: Jenkins-mwext-sync jenkins-...@wikimedia.org
Gerrit-Reviewer: Jenkins-mwext-sync jenkins-...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] Add message checker for iNaturalist - change (mediawiki...Translate)

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

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

Change subject: Add message checker for iNaturalist
..

Add message checker for iNaturalist

Copy of checker for Encyclopedia of Life. Checks for %{...}.

Change-Id: Ic1118c29ca11bcf05cece1bd0bffc34a66aab5c9
---
M messagegroups/WikiPageMessageGroup.php
1 file changed, 0 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/36/213536/1

diff --git a/messagegroups/WikiPageMessageGroup.php 
b/messagegroups/WikiPageMessageGroup.php
index e24d83a..e35c008 100644
--- a/messagegroups/WikiPageMessageGroup.php
+++ b/messagegroups/WikiPageMessageGroup.php
@@ -61,7 +61,6 @@
 
$defs = array();
$prefix = $this-getTitle()-getPrefixedDBKey() . '/';
-   $re = '~tvar\|([^]+)(.*?)/~u';
 
foreach ( $res as $r ) {
$section = new TPSection();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic1118c29ca11bcf05cece1bd0bffc34a66aab5c9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Siebrand siebr...@kitano.nl

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


[MediaWiki-commits] [Gerrit] Update some documentation in messagegroups related files - change (mediawiki...Translate)

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

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

Change subject: Update some documentation in messagegroups related files
..

Update some documentation in messagegroups related files

Change-Id: I6909a22cbc0381828194c7a2d695ee51d2ca76f7
---
M messagegroups/MediaWikiExtensionMessageGroup.php
M messagegroups/RecentMessageGroup.php
M messagegroups/SandboxMessageGroup.php
3 files changed, 7 insertions(+), 0 deletions(-)


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

diff --git a/messagegroups/MediaWikiExtensionMessageGroup.php 
b/messagegroups/MediaWikiExtensionMessageGroup.php
index e44d1d5..eb565c3 100644
--- a/messagegroups/MediaWikiExtensionMessageGroup.php
+++ b/messagegroups/MediaWikiExtensionMessageGroup.php
@@ -17,6 +17,8 @@
 * describing them. This override method implements the logic
 * to retrieve them. Also URLs are included if available.
 * Needs the Configure extension.
+* @param IContextSource $context
+* @return string
 */
public function getDescription( IContextSource $context = null ) {
$language = $this-getSourceLanguage();
diff --git a/messagegroups/RecentMessageGroup.php 
b/messagegroups/RecentMessageGroup.php
index aa10eff..0de662b 100644
--- a/messagegroups/RecentMessageGroup.php
+++ b/messagegroups/RecentMessageGroup.php
@@ -134,6 +134,9 @@
 
/**
 * Subpage language code, if any in the title, is ignored.
+* @param MessageHandle $handle
+* @return null|string
+* @throws MWException
 */
public function getMessageContent( MessageHandle $handle ) {
$groupId = MessageIndex::getPrimaryGroupId( $handle );
diff --git a/messagegroups/SandboxMessageGroup.php 
b/messagegroups/SandboxMessageGroup.php
index 13edb91..64556c9 100644
--- a/messagegroups/SandboxMessageGroup.php
+++ b/messagegroups/SandboxMessageGroup.php
@@ -143,6 +143,8 @@
 
/**
 * Subpage language code, if any in the title, is ignored.
+* @param MessageHandle $handle
+* @return null|string
 */
public function getMessageContent( MessageHandle $handle ) {
$groupId = MessageIndex::getPrimaryGroupId( $handle );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6909a22cbc0381828194c7a2d695ee51d2ca76f7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Siebrand siebr...@kitano.nl

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


[MediaWiki-commits] [Gerrit] Release notes for MediaWiki 1.25 - change (mediawiki/core)

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

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

Change subject: Release notes for MediaWiki 1.25
..

Release notes for MediaWiki 1.25

Change-Id: I28d2fee8e287a62a6597fa3ddcec893bd5b7d159
---
M HISTORY
D RELEASE-NOTES-1.25
2 files changed, 546 insertions(+), 578 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/37/213537/1

diff --git a/HISTORY b/HISTORY
index 4cca023..07f0fac 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,5 +1,551 @@
 Change notes from older releases. For current info see RELEASE-NOTES-1.26.
 
+== MediaWiki 1.25 ==
+
+=== Configuration changes in 1.25 ===
+* $wgPageShowWatchingUsers was removed.
+* $wgLocalVirtualHosts has been added to replace $wgConf-localVHosts.
+* $wgAntiLockFlags was removed.
+* $wgJavaScriptTestConfig was removed.
+* Edit tokens returned from User::getEditToken may change on every call. Token
+  validity must be checked by passing the user-supplied token to
+  User::matchEditToken rather than by testing for equality with a
+  newly-generated token.
+* (T74951) The UserGetLanguageObject hook may be passed any IContextSource
+  for its $context parameter. Formerly it was documented as receiving a
+  RequestContext specifically.
+* Profiling was restructured and $wgProfiler now requires an 'output' 
parameter.
+  See StartProfiler.sample for details.
+* $wgMangleFlashPolicy was added to make MediaWiki's mangling of anything that
+  might be a flash policy directive configurable.
+* ApiOpenSearch now supports XML output. The OpenSearchXml extension should no
+  longer be used. If extracts and page images are desired, the TextExtracts and
+  PageImages extensions are required.
+* $wgOpenSearchTemplate is deprecated in favor of $wgOpenSearchTemplates.
+* Edits are now prepared via AJAX as users type edit summaries. This behavior
+  can be disabled via $wgAjaxEditStash.
+* (T46740) The temporary option $wgIncludejQueryMigrate was removed, along
+  with the jQuery Migrate library, as indicated when this option was provided 
in
+  MediaWiki 1.24.
+* ProfilerStandard and ProfilerSimpleTrace were removed. Make sure that any
+  StartProfiler.php config is updated to reflect this. Xhprof is available
+  for zend/hhvm. Also, for hhvm, one can consider using its xenon profiler.
+* Default value of $wgSVGConverters['rsvg'] now uses the 'rsvg-convert' binary
+  rather than 'rsvg'.
+* Default value of $wgSVGConverters['ImageMagick'] now uses transparent
+  background with white fallback color, rather than just white background.
+ * MediaWikiBagOStuff class removed, make sure any object cache config
+   uses SqlBagOStuff instead.
+* The 'daemonized' flag must be set to true in $wgJobTypeConf for any redis
+  job queues. This means that mediawiki/services/jobrunner service has to
+  be installed and running for any such queues to work.
+* $wgAutopromoteOnce no longer supports the 'view' event. For keeping some
+  compatibility, any 'view' event triggers will still trigger on 'edit'.
+* $wgExtensionDirectory was added for when your extensions directory is 
somewhere
+  other than $IP/extensions (as $wgStyleDirectory does with the skins 
directory).
+
+=== New features in 1.25 ===
+* (T64861) Updated plural rules to CLDR 26. Includes incompatible changes
+  for plural forms in Russian, Prussian, Tagalog, Manx and several languages
+  that fall back to Russian.
+* (T60139) ResourceLoaderFileModule now supports language fallback
+  for 'languageScripts'.
+* Added a new hook, ContentAlterParserOutput, to allow extensions to modify 
the
+  parser output for a content object before links update.
+* (T37785) Enhanced recent changes and extended watchlist are now default.
+  Documentation: https://meta.wikimedia.org/wiki/Help:Enhanced_recent_changes
+  and https://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions.
+* (T69341) SVG images will no longer be base64-encoded when being embedded
+  in CSS. This results in slight size increase before gzip compression (due to
+  percent-encoding), but up to 20% decrease after it.
+* Update jStorage to v0.4.12.
+* MediaWiki now natively supports page status indicators: icons (or short text
+  snippets) usually displayed in the top-right corner of the page. They have
+  been in use on Wikipedia for a long time, implemented using templates and CSS
+  absolute positioning.
+  - Basic wikitext syntax: indicator 
name=foo[[File:Foo.svg|20px]]/indicator
+  - Usage instructions: 
https://www.mediawiki.org/wiki/Help:Page_status_indicators
+  - Adjusting custom skins to support indicators:
+https://www.mediawiki.org/wiki/Manual:Skinning#Page_status_indicators
+* Edit tokens may now be time-limited: passing a maximum age to
+  User::matchEditToken will reject any older tokens.
+* The debug logging internals have been overhauled, and are now using the
+  PSR-3 interfaces.
+* Update CSSJanus to v1.1.1.
+* Update 

[MediaWiki-commits] [Gerrit] Add message checker for iNaturalist - change (translatewiki)

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

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

Change subject: Add message checker for iNaturalist
..

Add message checker for iNaturalist

Copy of checker for Encyclopedia of Life. Checks for %{...}.

Change-Id: I4130bcaabdcb4e0852fab90bc6c67e39254ac56c
---
A groups/iNaturalist/Checker.php
M groups/iNaturalist/iNaturalist.yaml
2 files changed, 34 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/38/213538/1

diff --git a/groups/iNaturalist/Checker.php b/groups/iNaturalist/Checker.php
new file mode 100644
index 000..f7307d0
--- /dev/null
+++ b/groups/iNaturalist/Checker.php
@@ -0,0 +1,26 @@
+?php
+/**
+ * Implements MessageChecker for iNaturalist.
+ *
+ * @file
+ * @author Niklas Laxström, Siebrand Mazeland
+ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 
2.0 or later
+ */
+
+/**
+ * Message checks for iNaturalist
+ *
+ * @ingroup MessageCheckers
+ */
+class INaturalistMessageChecker extends MessageChecker {
+   /**
+* Checks for missing and unknown variables in translations.
+*
+* @param $messages \array Iterable list of TMessage objects.
+* @param $code \string Language code of the translations.
+* @param $warnings \array Array where warnings are appended to.
+*/
+   protected function INaturalistVariablesCheck( $messages, $code, 
$warnings ) {
+   return parent::parameterCheck( $messages, $code, $warnings, 
'/%{[a-zA-Z_]+}/' );
+   }
+}
diff --git a/groups/iNaturalist/iNaturalist.yaml 
b/groups/iNaturalist/iNaturalist.yaml
index c8cc206..3c8ce8d 100644
--- a/groups/iNaturalist/iNaturalist.yaml
+++ b/groups/iNaturalist/iNaturalist.yaml
@@ -22,3 +22,11 @@
 zh-hans: zh-CN
 zh-hant: zh-TW
   codeAsRoot: true
+
+CHECKER:
+  class: INaturalistMessageChecker
+  checks:
+- INaturalistVariablesCheck
+
+AUTOLOAD:
+  EOLMessageChecker: Checker.php

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4130bcaabdcb4e0852fab90bc6c67e39254ac56c
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand siebr...@kitano.nl

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


[MediaWiki-commits] [Gerrit] update i18n from json json files - change (pywikibot/i18n)

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

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

Change subject: update i18n from json json files
..

update i18n from json json files

Change-Id: I3d8151acde9416d22559aee8e06ff6bd9acf4b78
---
M add_text.py
M archivebot.py
M basic.py
M blockpageschecker.py
M capitalize_redirects.py
M casechecker.py
M catall.py
M category.py
M category_redirect.py
M clean_sandbox.py
M commons.py
M commons_link.py
M commonscat.py
M cosmetic_changes.py
M delete.py
M editarticle.py
M featured.py
M fixing_redirects.py
M interwiki.py
M isbn.py
M lonelypages.py
M makecat.py
M movepages.py
M noreferences.py
M pagefromfile.py
M protect.py
M pywikibot.py
M redirect.py
M revertbot.py
M selflink.py
M solve_disambiguation.py
M spamremove.py
M spellcheck.py
M table2wiki.py
M thirdparty.py
M undelete.py
M unlink.py
M unprotect.py
M welcome.py
39 files changed, 200 insertions(+), 21 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/i18n 
refs/changes/40/213540/1

diff --git a/add_text.py b/add_text.py
index c151490..a64b389 100644
--- a/add_text.py
+++ b/add_text.py
@@ -523,7 +523,6 @@
 'add_text-adding': u'Robbot Stoche a mette %(adding)s',
 },
 # Author: Dima st bk
-# Author: Rubin
 # Author: Rubin16
 # Author: Volkov
 'ru': {
diff --git a/archivebot.py b/archivebot.py
index 03ba577..a2a65e4 100644
--- a/archivebot.py
+++ b/archivebot.py
@@ -535,6 +535,13 @@
 'archivebot-older-than': u'D-aqbuṛ γef',
 'archivebot-page-summary': u'Aṛubut:Aγbar n % (count)d 
{{PLURAL:%(count)d|thread|threads}} (%(why)s) γer %(archives)s.',
 },
+# Author: Arystanbek
+'kk': {
+'archivebot-archive-full': u'(МҰРАҒАТ ТОЛҒАН)',
+'archivebot-archive-summary': u'Бот: [[%[[%(from)s]] бетінен %(count)d 
{{PLURAL:%(count)d|тақырыпты|тақырыптарды}} мұрағаттауда.',
+'archivebot-older-than': u'%(duration)s-дан ескірек',
+'archivebot-page-summary': u'Бот: (%(why)s) бетінен %(archives)s 
бетіне %(count)d {{PLURAL:%(count)d|тақырыпты|тақырыптарды}} мұрағаттауда.',
+},
 # Author: Xqt
 'km': {
 'archivebot-archiveheader': u'{{Talkarchive}}',
@@ -801,7 +808,6 @@
 },
 # Author: Express2000
 # Author: Okras
-# Author: Rubin
 # Author: Rubin16
 'ru': {
 'archivebot-archive-full': u'(АРХИВ ЗАПОЛНЕН)',
diff --git a/basic.py b/basic.py
index dda25f2..c6b95f7 100644
--- a/basic.py
+++ b/basic.py
@@ -250,6 +250,10 @@
 'kab': {
 'basic-changing': u'Aṛubut: Azdam ...',
 },
+# Author: Arystanbek
+'kk': {
+'basic-changing': u'Робот: Өзгертілуде...',
+},
 # Author: វ័ណថារិទ្ធ
 'km': {
 'basic-changing': u'Bot: កំពុងផ្លាស់ប្ដូរ ...',
diff --git a/blockpageschecker.py b/blockpageschecker.py
index c65321a..6dc922d 100644
--- a/blockpageschecker.py
+++ b/blockpageschecker.py
@@ -161,6 +161,10 @@
 'ja': {
 'blockpageschecker-summary': u'ロボットによる: 失効したテンプレートを削除',
 },
+# Author: Arystanbek
+'kk': {
+'blockpageschecker-summary': u'Бот: Ескірген үлгілерді жоюда',
+},
 # Author: 아라
 'ko': {
 'blockpageschecker-summary': u'봇: 오래된 틀 삭제',
@@ -234,7 +238,6 @@
 'ro': {
 'blockpageschecker-summary': u'Bot: Șters format învechit',
 },
-# Author: Rubin
 # Author: Rubin16
 'ru': {
 'blockpageschecker-summary': u'Бот: удаление устаревшего шаблона',
diff --git a/capitalize_redirects.py b/capitalize_redirects.py
index a312e91..c6087bf 100644
--- a/capitalize_redirects.py
+++ b/capitalize_redirects.py
@@ -231,6 +231,10 @@
 'kab': {
 'capitalize_redirects-create-redirect': u'Aṛubut: Snulfud abeddel n 
webrid γer [[%(to)s]]',
 },
+# Author: Arystanbek
+'kk': {
+'capitalize_redirects-create-redirect': u'Бот: [[%(to)s]] дегенге 
бағыттағыш бетін бастау',
+},
 # Author: Akoppad
 'kn': {
 'capitalize_redirects-create-redirect': u'ರೋಬೋಟ್: [[%(ಗೆ)ರು ]] 
ಮರುನಿರ್ದೇಶನರಚಿಸಿ',
diff --git a/casechecker.py b/casechecker.py
index 42ff918..a6079e9 100644
--- a/casechecker.py
+++ b/casechecker.py
@@ -297,7 +297,13 @@
 'casechecker-replacement-linklist': u'%(source)s→%(target)s',
 'casechecker-replacement-summary': u'ロボットによる: 大文字小文字の置換:',
 },
-# Author: Hym411
+# Author: Arystanbek
+'kk': {
+'casechecker-delete-summary': u'Бот: Бұл бағыттау атауында бірдей 
кирилл және латын әріптерден тұрады',
+'casechecker-rename': u'Бот: аралас жағдайда қайта атау',
+'casechecker-replacement-linklist': u'%(source)s→%(target)s',
+'casechecker-replacement-summary': u'Бот: Регистрді алмастыру:',
+},
 # Author: IRTC1015
 # Author: Priviet
 # Author: Revi
diff --git a/catall.py b/catall.py
index 8df31b4..605017a 100644
--- a/catall.py
+++ b/catall.py
@@ -231,6 +231,10 @@
 'kab': {
 'catall-changing': 

[MediaWiki-commits] [Gerrit] Remove redundant or defunct ldap servers from the ldap list. - change (operations/puppet)

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

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

Change subject: Remove redundant or defunct ldap servers from the ldap list.
..

Remove redundant or defunct ldap servers from the ldap list.

Neptunium is the same as ldap-eqiad.
virt1000 and labcontrol2001 are no longer ldap servers.

Change-Id: I6978981bcdf98e3a4e600397932a6b6f1cf77d46
---
M modules/ldap/manifests/role/server.pp
1 file changed, 1 insertion(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/42/213542/1

diff --git a/modules/ldap/manifests/role/server.pp 
b/modules/ldap/manifests/role/server.pp
index d3fbd0f..4bce7f5 100644
--- a/modules/ldap/manifests/role/server.pp
+++ b/modules/ldap/manifests/role/server.pp
@@ -94,9 +94,6 @@
 #   playing a shell game with the service domains, best to have
 #   everything listed here.
 server_list = ['ldap-eqiad.wikimedia.org',
-'ldap-codfw.wikimedia.org',
-'virt1000.wikimedia.org',
-'labcontrol2001.wikimedia.org',
-'neptunium.wikimedia.org']
+'ldap-codfw.wikimedia.org']
 }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6978981bcdf98e3a4e600397932a6b6f1cf77d46
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott abog...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] Replace many references to virt1000 and labcontrol2001 with ... - change (operations/puppet)

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

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

Change subject: Replace many references to virt1000 and labcontrol2001 with 
hiera lookups
..

Replace many references to virt1000 and labcontrol2001 with hiera lookups

Change-Id: Ic2b08ef592719a4d4cbefe47f34b65a85cad8f13
---
M hieradata/codfw.yaml
M hieradata/eqiad.yaml
M manifests/role/designate.pp
M manifests/role/dns.pp
M manifests/role/glance.pp
M manifests/role/keystone.pp
M manifests/role/neutron.pp
M manifests/role/nova.pp
M manifests/role/salt.pp
M modules/base/manifests/init.pp
M modules/openstack/manifests/firewall.pp
M modules/puppetmaster/manifests/labs.pp
12 files changed, 67 insertions(+), 28 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/43/213543/1

diff --git a/hieradata/codfw.yaml b/hieradata/codfw.yaml
index c23a88a..0a41df8 100644
--- a/hieradata/codfw.yaml
+++ b/hieradata/codfw.yaml
@@ -26,3 +26,11 @@
 jobrunner_state: 'stopped'
 ganglia_class: new
 ganglia_aggregators: install2001.wikimedia.org:10649
+
+labs_nova_controller: labcontrol2001.wikimedia.org
+labs_glance_controller: labcontrol2001.wikimedia.org
+labs_puppet_master: labcontrol2001.wikimedia.org
+labs_puppet_master_secondary: virt1000.wikimedia.org
+labs_keystone_host: labcontrol2001.wikimedia.org
+labs_ldap_dns_host: labcontrol2001.wikimedia.org
+labs_ldap_dns_host_secondary: virt1000.wikimedia.org
diff --git a/hieradata/eqiad.yaml b/hieradata/eqiad.yaml
index 39fe083..336aedc 100644
--- a/hieradata/eqiad.yaml
+++ b/hieradata/eqiad.yaml
@@ -18,3 +18,11 @@
   - '10.64.48.95:11211:1 shard17'
   - '10.64.48.96:11211:1 shard18'
 ganglia_class: old
+
+labs_nova_controller: virt1000.wikimedia.org
+labs_glance_controller: virt1000.wikimedia.org
+labs_puppet_master: virt1000.wikimedia.org
+labs_puppet_master_secondary: labcontrol2001.wikimedia.org
+labs_keystone_host: virt1000.wikimedia.org
+labs_ldap_dns_host: virt1000.wikimedia.org
+labs_ldap_dns_host_secondary: labcontrol2001.wikimedia.org
diff --git a/manifests/role/designate.pp b/manifests/role/designate.pp
index cd1307a..5540879 100644
--- a/manifests/role/designate.pp
+++ b/manifests/role/designate.pp
@@ -21,8 +21,10 @@
 class role::designate::config::eqiad inherits role::designate::config {
 include role::keystone::config::eqiad
 
+$nova_controller = hiera('labs_nova_controller')
+
 $controller_hostname = $::realm ? {
-'production' = 'virt1000.wikimedia.org',
+'production' = $nova_controller,
 'labs'   = $nova_controller_hostname ? {
 undef   = $::ipaddress_eth0,
 default = $nova_controller_hostname,
@@ -42,7 +44,7 @@
 }
 
 $auth_uri = $::realm ? {
-'production' = 'http://virt1000.wikimedia.org:5000',
+'production' = ${nova_controller}:5000',
 'labs'   = http://$::ipaddress_eth0:5000;,
 }
 
@@ -82,7 +84,7 @@
 # Firewall
 $wikitech = '208.80.154.136'
 $horizon = '208.80.154.147'
-$controller = '208.80.154.18'
+$controller = ipresolve($nova_controller, 4)
 
 # Poke a firewall hole for the designate api
 ferm::rule { 'designate-api':
diff --git a/manifests/role/dns.pp b/manifests/role/dns.pp
index 81c2c32..08c8f8d 100644
--- a/manifests/role/dns.pp
+++ b/manifests/role/dns.pp
@@ -5,7 +5,11 @@
 
 $ldapconfig = $ldap::role::config::labs::ldapconfig
 
+$primary_ldap_dns = ipresolve(hiera('labs_ldap_dns_host'),4)
+$secondary_ldap_dns = ipresolve(hiera('labs_ldap_dns_host_secondary'),4)
+
 if $::site == 'eqiad' {
+
 interface::ip { 'role::dns::ldap':
 interface = 'eth0',
 address   = '208.80.154.19'
@@ -13,8 +17,8 @@
 
 # FIXME: turn these settings into a hash that can be included somewhere
 class { '::labs_ldap_dns':
-dns_auth_ipaddress = '208.80.154.19 208.80.154.18',
-dns_auth_query_address = '208.80.154.19',
+dns_auth_ipaddress = {$primary_ldap_dns} 
${secondary_ldap_dns},
+dns_auth_query_address = $primary_ldap_dns,
 dns_auth_soa_name  = 'labs-ns0.wikimedia.org',
 ldap_hosts = $ldapconfig['servernames'],
 ldap_base_dn   = $ldapconfig['basedn'],
@@ -30,8 +34,8 @@
 
 # FIXME: turn these settings into a hash that can be included somewhere
 class { '::labs_ldap_dns':
-dns_auth_ipaddress = '208.80.153.15 208.80.153.14',
-dns_auth_query_address = '208.80.153.15',
+dns_auth_ipaddress = {$primary_ldap_dns} 
${secondary_ldap_dns},
+dns_auth_query_address = $primary_ldap_dns,
 dns_auth_soa_name  = 'labs-ns1.wikimedia.org',
 ldap_hosts = $ldapconfig['servernames'],
 ldap_base_dn   = $ldapconfig['basedn'],
diff --git a/manifests/role/glance.pp 

[MediaWiki-commits] [Gerrit] Update tags - change (translatewiki)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Update tags
..


Update tags

Spotted by Macafe and reported at
https://translatewiki.net/wiki/Thread:Support/Greeking

Change-Id: Ia9c26fbba4e7a6b5436d860a4355f2a01f52f943
---
M groups/Europeana/Europeana.yaml
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/groups/Europeana/Europeana.yaml b/groups/Europeana/Europeana.yaml
index 489da06..f602ce6 100644
--- a/groups/Europeana/Europeana.yaml
+++ b/groups/Europeana/Europeana.yaml
@@ -36,6 +36,9 @@
 - number.human.format.delimiter
 - number.percentage.format.delimiter
 - number.precision.format.delimiter
+- views.collection days.what-do-you-get-content
+- views.collection days.what-do-you-get-content
+- views.collection days.who-is-it-for-content
   ignored:
 - Polish
 - activerecord.attributes.annotation.text

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia9c26fbba4e7a6b5436d860a4355f2a01f52f943
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Remove i18n shim - change (mediawiki...UploadWizard)

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

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

Change subject: Remove i18n shim
..

Remove i18n shim

Change-Id: I79d2099b3502dfaa1786306689fdd79b41cfa47b
---
D UploadWizard.i18n.php
M resources/controller/uw.controller.Deed.js
M resources/mw.UploadWizardDeed.js
3 files changed, 6 insertions(+), 42 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard 
refs/changes/44/213544/1

diff --git a/UploadWizard.i18n.php b/UploadWizard.i18n.php
deleted file mode 100644
index e98a90a..000
--- a/UploadWizard.i18n.php
+++ /dev/null
@@ -1,35 +0,0 @@
-?php
-/**
- * This is a backwards-compatibility shim, generated by:
- * 
https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php
- *
- * Beginning with MediaWiki 1.23, translation strings are stored in json files,
- * and the EXTENSION.i18n.php file only exists to provide compatibility with
- * older releases of MediaWiki. For more information about this migration, see:
- * https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format
- *
- * This shim maintains compatibility back to MediaWiki 1.17.
- */
-$messages = array();
-if ( !function_exists( 'wfJsonI18nShim68b2bbac0fb2582b' ) ) {
-   function wfJsonI18nShim68b2bbac0fb2582b( $cache, $code, $cachedData ) {
-   $codeSequence = array_merge( array( $code ), 
$cachedData['fallbackSequence'] );
-   foreach ( $codeSequence as $csCode ) {
-   $fileName = dirname( __FILE__ ) . /i18n/$csCode.json;
-   if ( is_readable( $fileName ) ) {
-   $data = FormatJson::decode( file_get_contents( 
$fileName ), true );
-   foreach ( array_keys( $data ) as $key ) {
-   if ( $key === '' || $key[0] === '@' ) {
-   unset( $data[$key] );
-   }
-   }
-   $cachedData['messages'] = array_merge( $data, 
$cachedData['messages'] );
-   }
-
-   $cachedData['deps'][] = new FileDependency( $fileName );
-   }
-   return true;
-   }
-
-   $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 
'wfJsonI18nShim68b2bbac0fb2582b';
-}
diff --git a/resources/controller/uw.controller.Deed.js 
b/resources/controller/uw.controller.Deed.js
index 4dd6536..bb9a00f 100644
--- a/resources/controller/uw.controller.Deed.js
+++ b/resources/controller/uw.controller.Deed.js
@@ -28,10 +28,7 @@
 
uw.controller.Step.call(
this,
-   new uw.ui.Deed()
-   .connect( this, {
-   'next-step': 'validate'
-   } ),
+   new uw.ui.Deed(),
config
);
 
@@ -42,11 +39,12 @@
 
DP = Deed.prototype;
 
-   DP.validate = function () {
+   DP.moveFrom = function () {
+   var valid = this.deedChooser.valid();
// validate has the side effect of notifying the user of 
problems, or removing existing notifications.
// if returns false, you can assume there are notifications in 
the interface.
-   if ( this.deedChooser.valid() ) {
-   this.emit( 'next-step' );
+   if ( valid ) {
+   uw.controller.Step.prototype.moveFrom.call( this );
}
};
 
diff --git a/resources/mw.UploadWizardDeed.js b/resources/mw.UploadWizardDeed.js
index 1e42ba9..c616a66 100644
--- a/resources/mw.UploadWizardDeed.js
+++ b/resources/mw.UploadWizardDeed.js
@@ -430,6 +430,7 @@
// do not short-circuit.
var formValid = this.$form.valid(),
licenseInputValid = 
this.licenseInput.valid();
+
return formValid  licenseInputValid;
}
} );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I79d2099b3502dfaa1786306689fdd79b41cfa47b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Paladox thomasmulhall...@yahoo.com

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


[MediaWiki-commits] [Gerrit] Fix for images sometimes not being routed to data store. - change (apps...wikipedia)

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

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

Change subject: Fix for images sometimes not being routed to data store.
..

Fix for images sometimes not being routed to data store.

Change-Id: Ic936ac9eb886e0710b898ba328eb31268755ea4b
---
M Wikipedia/Web Image Interception/URLCache.m
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/ios/wikipedia 
refs/changes/46/213546/1

diff --git a/Wikipedia/Web Image Interception/URLCache.m b/Wikipedia/Web Image 
Interception/URLCache.m
index c180ff0..0eb456f 100644
--- a/Wikipedia/Web Image Interception/URLCache.m
+++ b/Wikipedia/Web Image Interception/URLCache.m
@@ -145,7 +145,7 @@
 // created when the section html was parsed to create sectionImage 
records, in which case
 // a request needs to actually be made, so set cachedResponse to nil so 
this happens.
 // URLCacheLog(@imageFromDB.data = %@, imageFromDB.data);
-if (imageFromDB  !imageFromDB.dateRetrieved) {
+if (![imageFromDB isCached]) {
 cachedResponse = nil;
 } else if (imageFromDB) {
 NSData* imageData = [self.article.dataStore 
imageDataWithImage:imageFromDB];

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic936ac9eb886e0710b898ba328eb31268755ea4b
Gerrit-PatchSet: 1
Gerrit-Project: apps/ios/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Mhurd mh...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] Wikiblame moved to GitHub - change (translatewiki)

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

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

Change subject: Wikiblame moved to GitHub
..

Wikiblame moved to GitHub

See
https://translatewiki.net/wiki/Thread:Support/Relocating_WikiBlame_to_GitHub

Change-Id: I2e33754f4f961bec8af5b17ef91017bf82efbf5f
---
M REPOCONF
M REPOCONF.siebrand
M bin/repocommit
M bin/repocreate
M bin/repoupdate
M groups/Wikimedia/WikiBlame.yaml
6 files changed, 6 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/45/213545/1

diff --git a/REPOCONF b/REPOCONF
index 260999d..9d3917b 100644
--- a/REPOCONF
+++ b/REPOCONF
@@ -37,7 +37,7 @@
 REPO_WAYMARKEDTRAILS=git://github.com/lonvia/waymarked-trails-site.git
 REPO_WIKIA=git://github.com/Wikia/app.git
 REPO_WIKIA_BRANCH=dev
-REPO_WIKIBLAME=svn://svn.code.sf.net/p/wikiblame/code/wikiblame_inc
+REPO_WIKIBLAME=git://github.com/FlominatorTM/wikiblame.git
 REPO_WIKIMANIA=https://gerrit.wikimedia.org/r/wikimedia/wikimania-scholarships
 REPO_WIKIPEDIAANDROID=https://gerrit.wikimedia.org/r/apps/android/wikipedia
 REPO_WIKIPEDIAIOS=https://gerrit.wikimedia.org/r/apps/ios/wikipedia
diff --git a/REPOCONF.siebrand b/REPOCONF.siebrand
index 5a5853c..e513089 100644
--- a/REPOCONF.siebrand
+++ b/REPOCONF.siebrand
@@ -36,7 +36,7 @@
 REPO_WAYMARKEDTRAILS=g...@github.com:lonvia/waymarked-trails-site.git
 REPO_WIKIA=g...@github.com:Wikia/app.git
 REPO_WIKIA_BRANCH=dev
-REPO_WIKIBLAME=svn://svn.code.sf.net/p/wikiblame/code/wikiblame_inc
+REPO_WIKIBLAME=g...@github.com:FlominatorTM/wikiblame.git
 
REPO_WIKIMANIA=ssh://l10n-...@gerrit.wikimedia.org:29418/wikimedia/wikimania-scholarships
 
REPO_WIKIPEDIAANDROID=ssh://l10n-...@gerrit.wikimedia.org:29418/apps/android/wikipedia
 REPO_WIKIPEDIAIOS=ssh://l10n-...@gerrit.wikimedia.org:29418/apps/ios/wikipedia
diff --git a/bin/repocommit b/bin/repocommit
index cbbc679..b6982eb 100755
--- a/bin/repocommit
+++ b/bin/repocommit
@@ -67,6 +67,7 @@
 osm \
 vicuna \
 waymarked-trails-site \
+wikiblame \
 WikisourceMobile \
 WiktionaryMobile
 
@@ -206,14 +207,6 @@
 elif [ $PROJECT = wikia ]
 then
 gitCommit $PROJECT dev
-
-elif [ $PROJECT = wikiblame ]
-then
-   cd $PROJECT
-   svn add -q --force *.php
-   svn propset -q svn:eol-style native *.php
-   svn commit --message $COMMITMSG
-   cd ..
 
 else
echo `basename $0`: Unknown project
diff --git a/bin/repocreate b/bin/repocreate
index 6de6871..c7791e2 100755
--- a/bin/repocreate
+++ b/bin/repocreate
@@ -201,7 +201,7 @@
 elif [ $PROJECT = wikiblame ]
 then
checkVar 'REPO_WIKIBLAME'
-   svn checkout $REPO_WIKIBLAME $PROJECT
+   git clone $REPO_WIKIBLAME $PROJECT
 
 elif [ $PROJECT = wikimania ]
 then
diff --git a/bin/repoupdate b/bin/repoupdate
index ffafb74..dfd0c89 100755
--- a/bin/repoupdate
+++ b/bin/repoupdate
@@ -85,6 +85,7 @@
 pywikibot \
 vicuna \
 waymarked-trails-site \
+wikiblame \
 wikimania \
 wikipedia-android \
 wikipedia-ios \
@@ -252,10 +253,6 @@
 elif [ $PROJECT = wikia ]
 then
gitupdate $PROJECT $REPO_WIKIA_BRANCH
-
-elif [ $PROJECT = wikiblame ]
-then
-   svn up -q $PROJECT
 
 else
echo `basename $0`: Unknown project
diff --git a/groups/Wikimedia/WikiBlame.yaml b/groups/Wikimedia/WikiBlame.yaml
index 9412180..50f7240 100644
--- a/groups/Wikimedia/WikiBlame.yaml
+++ b/groups/Wikimedia/WikiBlame.yaml
@@ -8,7 +8,7 @@
 
 FILES:
   class: FlatPhpFFS
-  sourcePattern: %GROUPROOT%/wikiblame/%CODE%.php
+  sourcePattern: %GROUPROOT%/wikiblame/wikiblame_inc/%CODE%.php
   header: |
 ?php
 /** WikiBlame

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e33754f4f961bec8af5b17ef91017bf82efbf5f
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand siebr...@kitano.nl

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


[MediaWiki-commits] [Gerrit] Added tooltip to watchlist star (T71811) - change (mediawiki...Flow)

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

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

Change subject: Added tooltip to watchlist star (T71811)
..

Added tooltip to watchlist star (T71811)

Change-Id: I3657d53786870441683a0c2f016506387fd175e9
---
M Resources.php
M handlebars/flow_topic_titlebar_watch.partial.handlebars
M i18n/en.json
3 files changed, 6 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/49/213549/1

diff --git a/Resources.php b/Resources.php
index 314bd39..6889dc7 100644
--- a/Resources.php
+++ b/Resources.php
@@ -147,6 +147,8 @@
'flow-topic-action-unsuppress-topic',
'flow-topic-action-restore-topic',
'flow-topic-action-undo-moderation',
+   'flow-topic-action-watchlist-add',
+   'flow-topic-action-watchlist-remove',
'flow-hide-post-content',
'flow-delete-post-content',
'flow-suppress-post-content',
diff --git a/handlebars/flow_topic_titlebar_watch.partial.handlebars 
b/handlebars/flow_topic_titlebar_watch.partial.handlebars
index 17ac2cc..b0789f4 100644
--- a/handlebars/flow_topic_titlebar_watch.partial.handlebars
+++ b/handlebars/flow_topic_titlebar_watch.partial.handlebars
@@ -11,7 +11,7 @@
   data-flow-api-handler=watchItem
   data-flow-api-target= .flow-topic-watchlist
   data-flow-api-method=POST
-   {{~noop~}}span class=wikiglyph 
wikiglyph-star/span{{~noop~}}
-   {{~noop~}}span class=wikiglyph 
wikiglyph-unstar/span{{~noop~}}
+   {{~noop~}}span class=wikiglyph wikiglyph-star title={{l10n 
flow-topic-action-watchlist-add}}/span{{~noop~}}
+   {{~noop~}}span class=wikiglyph wikiglyph-unstar 
title={{l10n flow-topic-action-watchlist-remove}}/span{{~noop~}}
/a
 /div
diff --git a/i18n/en.json b/i18n/en.json
index 3225446..6522e75 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -117,6 +117,8 @@
flow-topic-notification-subscribe-description: {{GENDER:$1|You}} 
will receive notifications on all activities on this topic.,
flow-board-notification-subscribe-title: {{GENDER:$1|You're}} 
subscribed to this discussion board!,
flow-board-notification-subscribe-description: {{GENDER:$1|You}} 
will get a notification when a new topic is created on this board.,
+   flow-topic-action-watchlist-add: Add this topic to your watchlist,
+   flow-topic-action-watchlist-remove: Remove this topic from your 
watchlist,
flow-error-allowcreation-no-usedb: allowCreation requires 
var$wgContentHandlerUseDB/var to be codetrue/code.,
flow-error-allowcreation-already-exists: Page already exists, but 
was required not to,
flow-error-allowcreation-flow-create-board: User does not have the 
\{{int:right-flow-create-board}}\ permission,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3657d53786870441683a0c2f016506387fd175e9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Ckoerner nob...@gmail.com

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


[MediaWiki-commits] [Gerrit] Syncronize VisualEditor: 8491c36..cb1612b - change (mediawiki/extensions)

2015-05-25 Thread Jenkins-mwext-sync (Code Review)
Jenkins-mwext-sync has submitted this change and it was merged.

Change subject: Syncronize VisualEditor: 8491c36..cb1612b
..


Syncronize VisualEditor: 8491c36..cb1612b

Change-Id: Ifaa5b0d684cfd3a3de4975100da97ed141c5949e
---
M VisualEditor
1 file changed, 0 insertions(+), 0 deletions(-)

Approvals:
  Jenkins-mwext-sync: Verified; Looks good to me, approved



diff --git a/VisualEditor b/VisualEditor
index 8491c36..cb1612b 16
--- a/VisualEditor
+++ b/VisualEditor
-Subproject commit 8491c363b52ca9815a9cdb64dc3224a3026a2555
+Subproject commit cb1612b60a356907d26164e6e817f2311d48cd53

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifaa5b0d684cfd3a3de4975100da97ed141c5949e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions
Gerrit-Branch: master
Gerrit-Owner: Jenkins-mwext-sync jenkins-...@wikimedia.org
Gerrit-Reviewer: Jenkins-mwext-sync jenkins-...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] [BrowserTest] Fixing the test for general markup - change (mediawiki...VisualEditor)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: [BrowserTest] Fixing the test for general markup
..


[BrowserTest] Fixing the test for general markup

Identifier mismatch.Updated now.

Change-Id: Ibf7b6aea144e2435d2a23e4768481a11cb8a6619
---
M modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Dduvall: Looks good to me, approved
  jenkins-bot: Verified



diff --git 
a/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb 
b/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb
index a784360..69e97f7 100644
--- a/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb
+++ b/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb
@@ -166,11 +166,11 @@
   end
   a(:transclusion, css: 
'span.oo-ui-widget.oo-ui-iconElement.oo-ui-tool.oo-ui-tool-name-transclusion.oo-ui-widget-enabled
  a')
   text_field(:transclusion_description, css: '.oo-ui-inputWidget  
input:nth-child(1)')
-  span(:ve_bold_text, class: 'oo-ui-iconElement-icon oo-ui-icon-bold-b')
+  span(:ve_bold_text, class: 'oo-ui-iconElement-icon oo-ui-icon-bold')
   span(:ve_bullets, css: '.oo-ui-clippableElement-clippable 
.oo-ui-iconElement-icon.oo-ui-icon-listBullet')
   span(:ve_computer_code, class: 'oo-ui-iconElement-icon oo-ui-icon-code')
   div(:ve_heading_menu, class: 'oo-ui-iconElement-icon oo-ui-icon-down')
-  span(:ve_italics, class: 'oo-ui-iconElement-icon oo-ui-icon-italic-i')
+  span(:ve_italics, class: 'oo-ui-iconElement-icon oo-ui-icon-italic')
   span(:ve_link_icon, class: 'oo-ui-iconElement-icon oo-ui-icon-link')
   span(:ve_link_ui, class: 'oo-ui-widget oo-ui-widget-enabled 
oo-ui-labelElement-label oo-ui-labelWidget oo-ui-processDialog-title 
oo-ui-labelElement', text: 'Link')
   span(:ve_media_menu, class: 'oo-ui-iconElement-icon oo-ui-icon-picture')

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibf7b6aea144e2435d2a23e4768481a11cb8a6619
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Ryasmeen ryasm...@wikimedia.org
Gerrit-Reviewer: Dduvall dduv...@wikimedia.org
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Remove obsolete `-ms-linear-gradient` Bug: T100271 - change (oojs/ui)

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

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

Change subject: Remove obsolete `-ms-linear-gradient` Bug: T100271
..

Remove obsolete `-ms-linear-gradient`
Bug: T100271

Change-Id: I2f3047802233c56ac0a647ec4110b35eb4eb352b
---
M src/styles/common.less
1 file changed, 0 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/23/213523/1

diff --git a/src/styles/common.less b/src/styles/common.less
index 9663580..b680ca6 100644
--- a/src/styles/common.less
+++ b/src/styles/common.less
@@ -73,7 +73,6 @@
background-image: -webkit-gradient(linear, right top, right bottom, 
color-stop(0%, @start), color-stop(100%, @stop));
background-image: -webkit-linear-gradient(top, @start 0%, @stop 100%);
background-image: -moz-linear-gradient(top, @start 0%, @stop 100%);
-   background-image: -ms-linear-gradient(top, @start 0%, @stop 100%);
background-image: -o-linear-gradient(top, @start 0%, @stop 100%);
background-image: linear-gradient(top, @start 0%, @stop 100%);
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2f3047802233c56ac0a647ec4110b35eb4eb352b
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: VolkerE ve...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] [FEAT] pagefromfile: Support separator with append - change (pywikibot/core)

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

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

Change subject: [FEAT] pagefromfile: Support separator with append
..

[FEAT] pagefromfile: Support separator with append

When using appendbottom or appendtop it is possible to add any text between the
old and new text.

Change-Id: I116cbb644135fa3ddc25c5a01f0f3415a865e681
---
M scripts/pagefromfile.py
1 file changed, 23 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/24/213524/1

diff --git a/scripts/pagefromfile.py b/scripts/pagefromfile.py
index 209355a..b92c85a 100755
--- a/scripts/pagefromfile.py
+++ b/scripts/pagefromfile.py
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 # -*- coding: utf-8  -*-
-
+r
 Bot to upload pages from a file.
 
 This bot takes its input from a file that contains a number of
@@ -46,6 +46,11 @@
 -appendtop  add the text to the top of it
 -appendbottom   add the text to the bottom of it
 -force  overwrite the existing page
+
+It's possible to define a separator after the 'append' modes which is added
+between the exisiting and new text. For example -appendtop:foo would add 'foo'
+between the parts. The \n (two separate characters) is replaced by the newline
+character.
 
 #
 # (C) Andre Engels, 2004
@@ -137,16 +142,19 @@
 pagecontents.find(self.getOption('nocontent').lower()) != -1:
 pywikibot.output(u'Page has %s so it is skipped' % 
self.getOption('nocontent'))
 return
-if self.getOption('append') == 'top':
-pywikibot.output(uPage %s already exists, appending on top!
- % title)
-contents = contents + pagecontents
-comment = comment_top
-elif self.getOption('append') == 'bottom':
-pywikibot.output(uPage %s already exists, appending on 
bottom!
- % title)
-contents = pagecontents + contents
-comment = comment_bottom
+if self.getOption('append'):
+separator = self.getOption('append')[1]
+if separator == r'\n':
+separator = '\n'
+if self.getOption('append')[0] == 'top':
+above, below = contents, pagecontents
+comment = comment_top
+else:
+above, below = pagecontents, contents
+comment = comment_bottom
+pywikibot.output('Page {0} already exists, appending on 
{1}!'.format(
+ title, self.getOption('append')[0]))
+contents = above + separator + below
 elif self.getOption('force'):
 pywikibot.output(uPage %s already exists, ***overwriting!
  % title)
@@ -277,8 +285,10 @@
 filename = arg[6:]
 elif arg == -include:
 include = True
-elif arg.startswith('-append') and arg[7:] in ('top', 'bottom'):
-options['append'] = arg[7:]
+elif arg.startswith('-appendbottom'):
+options['append'] = ('bottom', arg[len('-appendbottom:'):])
+elif arg.startswith('-appendtop'):
+options['append'] = ('top', arg[len('-appendtop:'):])
 elif arg == -force:
 options['force'] = True
 elif arg == -safe:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I116cbb644135fa3ddc25c5a01f0f3415a865e681
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise commodorefabia...@gmx.de

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


[MediaWiki-commits] [Gerrit] Hygiene: Move javascripts/specials directory to resources - change (mediawiki...MobileFrontend)

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

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

Change subject: Hygiene: Move javascripts/specials directory to resources
..

Hygiene: Move javascripts/specials directory to resources

Change-Id: I7e5ccc49ee28869a704ad007d6d35bc6304f9cf0
---
M includes/Resources.php
R resources/mobile.special.mobilediff.scripts/mobilediff.js
R resources/mobile.special.mobileeditor.scripts/redirectmobileeditor.js
R resources/mobile.special.nearby.scripts/nearby.js
R resources/mobile.special.uploads.scripts/uploads.js
R resources/mobile.special.userlogin.scripts/userlogin.js
R resources/skins.minerva.special.watchlist.scripts/watchlist.js
7 files changed, 6 insertions(+), 6 deletions(-)


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

diff --git a/includes/Resources.php b/includes/Resources.php
index 4a7c71d..b836f30 100644
--- a/includes/Resources.php
+++ b/includes/Resources.php
@@ -1537,7 +1537,7 @@
),
'mobile.special.mobileeditor.scripts' = 
$wgMFMobileSpecialPageResourceBoilerplate + array(
'scripts' = array(
-   'javascripts/specials/redirectmobileeditor.js',
+   
'resources/mobile.special.mobileeditor.scripts/redirectmobileeditor.js',
),
),
 
@@ -1562,7 +1562,7 @@
'mobile.head',
),
'scripts' = array(
-   'javascripts/specials/userlogin.js',
+   
'resources/mobile.special.userlogin.scripts/userlogin.js',
),
'position' = 'top',
),
@@ -1575,7 +1575,7 @@
'mobile-frontend-nearby-refresh',
),
'scripts' = array(
-   'javascripts/specials/nearby.js',
+   'resources/mobile.special.nearby.scripts/nearby.js',
),
// stop flash of unstyled content when loading from cache
'position' = 'top',
@@ -1616,7 +1616,7 @@
'mobile-frontend-photo-upload-user-count',
),
'scripts' = array(
-   'javascripts/specials/uploads.js',
+   'resources/mobile.special.uploads.scripts/uploads.js',
),
'position' = 'top',
),
@@ -1648,7 +1648,7 @@
'mobile.loggingSchemas',
),
'scripts' = array(
-   'javascripts/specials/mobilediff.js',
+   
'resources/mobile.special.mobilediff.scripts/mobilediff.js',
),
),
 
@@ -1702,7 +1702,7 @@
'mobile.watchlist',
),
'scripts' = array(
-   'javascripts/specials/watchlist.js',
+   
'resources/skins.minerva.special.watchlist.scripts/watchlist.js',
),
),
 
diff --git a/javascripts/specials/mobilediff.js 
b/resources/mobile.special.mobilediff.scripts/mobilediff.js
similarity index 100%
rename from javascripts/specials/mobilediff.js
rename to resources/mobile.special.mobilediff.scripts/mobilediff.js
diff --git a/javascripts/specials/redirectmobileeditor.js 
b/resources/mobile.special.mobileeditor.scripts/redirectmobileeditor.js
similarity index 100%
rename from javascripts/specials/redirectmobileeditor.js
rename to resources/mobile.special.mobileeditor.scripts/redirectmobileeditor.js
diff --git a/javascripts/specials/nearby.js 
b/resources/mobile.special.nearby.scripts/nearby.js
similarity index 100%
rename from javascripts/specials/nearby.js
rename to resources/mobile.special.nearby.scripts/nearby.js
diff --git a/javascripts/specials/uploads.js 
b/resources/mobile.special.uploads.scripts/uploads.js
similarity index 100%
rename from javascripts/specials/uploads.js
rename to resources/mobile.special.uploads.scripts/uploads.js
diff --git a/javascripts/specials/userlogin.js 
b/resources/mobile.special.userlogin.scripts/userlogin.js
similarity index 100%
rename from javascripts/specials/userlogin.js
rename to resources/mobile.special.userlogin.scripts/userlogin.js
diff --git a/javascripts/specials/watchlist.js 
b/resources/skins.minerva.special.watchlist.scripts/watchlist.js
similarity index 100%
rename from javascripts/specials/watchlist.js
rename to resources/skins.minerva.special.watchlist.scripts/watchlist.js

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7e5ccc49ee28869a704ad007d6d35bc6304f9cf0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson jrob...@wikimedia.org

___

[MediaWiki-commits] [Gerrit] Add PHP error logging to Sentry extension - change (mediawiki...Sentry)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add PHP error logging to Sentry extension
..


Add PHP error logging to Sentry extension

Bug: T85188
Change-Id: I285a5b39df0fd4205c830e3a9d2aa07129584bba
---
M .gitignore
M Sentry.php
M SentryHooks.php
A composer.json
4 files changed, 45 insertions(+), 1 deletion(-)

Approvals:
  Gergő Tisza: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/.gitignore b/.gitignore
index 3c3629e..e32f354 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,4 @@
-node_modules
+node_modules/
+vendor/
+composer.lock
+
diff --git a/Sentry.php b/Sentry.php
index f80f939..607ffdc 100644
--- a/Sentry.php
+++ b/Sentry.php
@@ -31,6 +31,8 @@
 $wgHooks['BeforePageDisplay'][] = 'SentryHooks::onBeforePageDisplay';
 $wgHooks['UnitTestsList'][] = 'SentryHooks::onUnitTestsList';
 $wgHooks['ResourceLoaderTestModules'][] = 
'SentryHooks::onResourceLoaderTestModules';
+$wgHooks['LogException'][] = 'SentryHooks::onLogException';
+SentryHooks::onRegistration();
 
 /**
  * Sentry DSN (http://raven.readthedocs.org/en/latest/config/#the-sentry-dsn)
@@ -52,3 +54,9 @@
  */
 $wgSentryLogOnError = true;
 
+/**
+ * Log PHP errors automatically.
+ * @var bool
+ */
+$wgSentryLogPhpErrors = true;
+
diff --git a/SentryHooks.php b/SentryHooks.php
index c653f8a..d8b8031 100644
--- a/SentryHooks.php
+++ b/SentryHooks.php
@@ -56,4 +56,24 @@
}
return substr( $dsn, 0, $colon_pos ) . substr( $dsn, $at_pos );
}
+
+   public static function onRegistration() {
+   if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
+   require_once( __DIR__ . '/vendor/autoload.php' );
+   }
+   }
+
+   public static function onLogException( Exception $e ) {
+   global $wgSentryDsn, $wgSentryLogPhpErrors;
+
+   if ( !$wgSentryLogPhpErrors ) {
+   return true;
+   }
+
+   $client = new Raven_Client( $wgSentryDsn );
+   $client-captureException( $e );
+
+   return true;
+   }
 }
+
diff --git a/composer.json b/composer.json
new file mode 100644
index 000..b07f188
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,13 @@
+{
+   name: mediawiki/sentry,
+   type: mediawiki-extension,
+   description: Send MediaWiki errors to Sentry, a realtime, 
platform-agnostic error logging and aggregation platform,
+   keywords: [MediaWiki, Sentry, error logging],
+   homepage: https://www.mediawiki.org/wiki/Extension:Sentry;,
+   license : MIT,
+
+   require: {
+   composer/installers: =1.0.1,
+ raven/raven: 0.12.0
+   }
+}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I285a5b39df0fd4205c830e3a9d2aa07129584bba
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/Sentry
Gerrit-Branch: master
Gerrit-Owner: Edlira edlira.dus...@gmail.com
Gerrit-Reviewer: Gergő Tisza gti...@wikimedia.org
Gerrit-Reviewer: Legoktm legoktm.wikipe...@gmail.com
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] CXStats: Remove redundant condition - change (mediawiki...ContentTranslation)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: CXStats: Remove redundant condition
..


CXStats: Remove redundant condition

Followup: I0365d1366fcf5c62193f878c1e73435d9b4c0b98

Change-Id: Ib8b50299c3c2b91ab77997a8febb190ec81123cb
---
M modules/stats/ext.cx.stats.js
1 file changed, 7 insertions(+), 9 deletions(-)

Approvals:
  KartikMistry: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/stats/ext.cx.stats.js b/modules/stats/ext.cx.stats.js
index 1e1e2c9..4abe376 100644
--- a/modules/stats/ext.cx.stats.js
+++ b/modules/stats/ext.cx.stats.js
@@ -274,16 +274,14 @@
}
 
if ( !mw.user.isAnon()  mw.user.options.get( 'cx' ) !== '1' ) 
{
-   if ( !mw.user.isAnon() ) {
-   cxLink = mw.util.getUrl( 
'Special:ContentTranslation', {
-   campaign: 'cxstats',
-   targettitle: mw.config.get( 
'wgPageName' ),
-   to: mw.config.get( 'wgContentLanguage' )
-   } );
+   cxLink = mw.util.getUrl( 'Special:ContentTranslation', {
+   campaign: 'cxstats',
+   targettitle: mw.config.get( 'wgPageName' ),
+   to: mw.config.get( 'wgContentLanguage' )
+   } );
 
-   $( '.cx-header__bar' ).hide();
-   mw.hook( 'mw.cx.error' ).fire( mw.message( 
'cx-stats-try-contenttranslation', cxLink ) );
-   }
+   $( '.cx-header__bar' ).hide();
+   mw.hook( 'mw.cx.error' ).fire( mw.message( 
'cx-stats-try-contenttranslation', cxLink ) );
} else {
$header.find( '.cx-header__translation-center a' 
).text( mw.msg( 'cx-header-new-translation' ) );
}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib8b50299c3c2b91ab77997a8febb190ec81123cb
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh santhosh.thottin...@gmail.com
Gerrit-Reviewer: KartikMistry kartik.mis...@gmail.com
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] [BrowserTest] Fixing broken test for Page Options test The t... - change (mediawiki...VisualEditor)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: [BrowserTest] Fixing broken test for Page Options test The test 
was broken as some identifiers were wrong. Updated it.
..


[BrowserTest] Fixing broken test for Page Options test
The test was broken as some identifiers were wrong. Updated it.

Change-Id: I03541e4ae0ed7e4c121b801a036e49bebe4d5909
---
M modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Dduvall: Looks good to me, approved
  Etonkovidova: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git 
a/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb 
b/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb
index 8ff9153..a784360 100644
--- a/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb
+++ b/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb
@@ -46,12 +46,12 @@
   div(:content, class: 've-ce-branchNode')
   span(:decrease_indentation, class: 'oo-ui-iconElement-icon 
oo-ui-icon-outdent')
   text_area(:describe_change, index: 0)
-  table(:diff_view, css: '.ve-ui-mwSaveDialog-viewer table.diff')
+  div(:diff_view, class: 've-ui-mwSaveDialog-viewer')
   div(:disabled_save_button, css: 'div.ve-init-mw-viewPageTarget-toolbar 
.oo-ui-toolbar-actions  
div.oo-ui-flaggedElement-progressive.oo-ui-widget-disabled')
   text_field(:display_title_textbox, css: 
'div.oo-ui-fieldLayout-align-inline:nth-child(4)  label:nth-child(1)  
div:nth-child(1)  div:nth-child(1)  input:nth-child(1)')
   div(:enable_redirect, class: 've-test-page-settings-enable-redirect')
   div(:prevent_redirect, class: 've-test-page-settings-prevent-redirect')
-  text_field(:redirect_page_name_textbox, css: '.oo-ui-flaggedElement-invalid 
 input:nth-child(1)')
+  text_field(:redirect_page_name_textbox, css: 
'div.oo-ui-lookupElement:nth-child(1)  input:nth-child(1)')
   div(:format_indicator, class: 've-test-toolbar-format')
   span(:format_indicator_down, css: '.ve-test-toolbar-format 
.oo-ui-indicator-down')
   a(:edit_ve, title: /Edit this page with VisualEditor/)

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I03541e4ae0ed7e4c121b801a036e49bebe4d5909
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Ryasmeen ryasm...@wikimedia.org
Gerrit-Reviewer: Dduvall dduv...@wikimedia.org
Gerrit-Reviewer: Etonkovidova etonkovid...@wikimedia.org
Gerrit-Reviewer: Zfilipin zfili...@wikimedia.org
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] Prep for 1.25.0 general release, no more RCs - change (mediawiki/core)

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

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

Change subject: Prep for 1.25.0 general release, no more RCs
..

Prep for 1.25.0 general release, no more RCs

Change-Id: I27b0b22594ae81fb3cc190f1dbd25e84f6e2ccd5
---
M includes/DefaultSettings.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/34/213534/1

diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php
index 48a595d..3ca9064 100644
--- a/includes/DefaultSettings.php
+++ b/includes/DefaultSettings.php
@@ -75,7 +75,7 @@
  * MediaWiki version number
  * @since 1.2
  */
-$wgVersion = '1.25.0-rc.1';
+$wgVersion = '1.25.0';
 
 /**
  * Name of the site. It must be changed in LocalSettings.php

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I27b0b22594ae81fb3cc190f1dbd25e84f6e2ccd5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_25
Gerrit-Owner: Chad ch...@wikimedia.org

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


[MediaWiki-commits] [Gerrit] Version 2.0 Release Candidate 1 - change (pywikibot/core)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Version 2.0 Release Candidate 1
..


Version 2.0 Release Candidate 1

Change-Id: I83fb8ce96a954ea15d7634a7ae526f2b252258be
---
M ChangeLog
M docs/conf.py
M setup.py
3 files changed, 44 insertions(+), 2 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, but someone else must approve
  Ladsgroup: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/ChangeLog b/ChangeLog
index 12772a4..0af0188 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,46 @@
 
+Release 2.0rc1 (25 May 2015)
+
+Major improvements include:
+- Sphinx documentation at https://doc.wikimedia.org/pywikibot/
+- Initial ProofreadPage support
+- Improved diff output, with context
+- Batch upload support
+- Compat scripts patrol.py and piper.py ported
+- isbn.py now supports wikibase
+- RecentChanges stream (rcstream) support
+
+Pywikibot API improvements include:
+- Python 3 ipaddress support
+- Support for Python warning system
+- Wikibase:
+  - added ISBN support
+  - added redirect support
+- Optionally uses external library for improved isbn validation
+- Automatically generating user files when -user, -family and -lang are
+  provided to a script
+- Page.content_model added
+- Page.contributors() and Page.revision_count() added
+- APISite.compare added
+- Site.undelete and Page.undelete added
+- DataSite.search_entities support
+- FilePage.latest_file_info and FilePage.oldest_file_info added
+- ItemClaimFilterPageGenerator added
+
+Low-level changes include:
+- Switch to JSON-based i18n data format
+- Unicode_literals used throughout source code
+- API badtoken recovery
+- API client side prevention of anonymous writes
+- API layer support for boolean and date datatypes
+- Improved MediaWiki version detection
+
+Other changes include:
+- Python 3 support fixes
+- Daemonize support
+- Allow pywikibot to load without i18n data
+- Appveyor CI Win32 builds
+
 Release 2.0b3 (30 November 2014)
 
 Major changes include:
diff --git a/docs/conf.py b/docs/conf.py
index 84ed0a8..a7b4ec4 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -52,7 +52,7 @@
 # The short X.Y version.
 version = '2.0'
 # The full version, including alpha/beta/rc tags.
-release = '2.0b3'
+release = '2.0rc1'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff --git a/setup.py b/setup.py
index fb92b4c..db13b1e 100644
--- a/setup.py
+++ b/setup.py
@@ -134,7 +134,7 @@
 from setuptools import setup, find_packages
 
 name = 'pywikibot'
-version = '2.0b3'
+version = '2.0rc1'
 github_url = 'https://github.com/wikimedia/pywikibot-core'
 download_url = github_url + '/archive/master.zip#egg=' + name + '-' + version
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I83fb8ce96a954ea15d7634a7ae526f2b252258be
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg jay...@gmail.com
Gerrit-Reviewer: John Vandenberg jay...@gmail.com
Gerrit-Reviewer: Ladsgroup ladsgr...@gmail.com
Gerrit-Reviewer: Merlijn van Deen valhall...@arctus.nl
Gerrit-Reviewer: XZise commodorefabia...@gmx.de
Gerrit-Reviewer: jenkins-bot 

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


[MediaWiki-commits] [Gerrit] styles: Remove obsolete -ms-linear-gradient declaration - change (oojs/ui)

2015-05-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: styles: Remove obsolete -ms-linear-gradient declaration
..


styles: Remove obsolete -ms-linear-gradient declaration

http://caniuse.com/css-gradients

Bug: T100271
Change-Id: I2f3047802233c56ac0a647ec4110b35eb4eb352b
---
M src/styles/common.less
1 file changed, 0 insertions(+), 1 deletion(-)

Approvals:
  Krinkle: Looks good to me, approved
  Jforrester: Looks good to me, approved
  Esanders: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/src/styles/common.less b/src/styles/common.less
index 9663580..b680ca6 100644
--- a/src/styles/common.less
+++ b/src/styles/common.less
@@ -73,7 +73,6 @@
background-image: -webkit-gradient(linear, right top, right bottom, 
color-stop(0%, @start), color-stop(100%, @stop));
background-image: -webkit-linear-gradient(top, @start 0%, @stop 100%);
background-image: -moz-linear-gradient(top, @start 0%, @stop 100%);
-   background-image: -ms-linear-gradient(top, @start 0%, @stop 100%);
background-image: -o-linear-gradient(top, @start 0%, @stop 100%);
background-image: linear-gradient(top, @start 0%, @stop 100%);
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2f3047802233c56ac0a647ec4110b35eb4eb352b
Gerrit-PatchSet: 4
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: VolkerE ve...@wikimedia.org
Gerrit-Reviewer: Bartosz Dziewoński matma@gmail.com
Gerrit-Reviewer: Esanders esand...@wikimedia.org
Gerrit-Reviewer: Jforrester jforres...@wikimedia.org
Gerrit-Reviewer: Krinkle krinklem...@gmail.com
Gerrit-Reviewer: Prtksxna psax...@wikimedia.org
Gerrit-Reviewer: jenkins-bot 

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


  1   2   3   >