WikidataBuilder has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/353028 )
Change subject: New Wikidata Build - 2017-05-10T10:00:02+0000
......................................................................
New Wikidata Build - 2017-05-10T10:00:02+0000
Change-Id: I530003af5c7089719cfaa1d54163bf9d2a11da33
---
M composer.lock
A extensions/Constraints/.mailmap
M extensions/Constraints/docs/user.js
M extensions/Constraints/extension.json
M extensions/Constraints/i18n/en.json
M extensions/Constraints/i18n/qqq.json
M
extensions/Constraints/includes/ConstraintCheck/Checker/DiffWithinRangeChecker.php
M
extensions/Constraints/includes/ConstraintCheck/Checker/MandatoryQualifiersChecker.php
M extensions/Constraints/includes/ConstraintCheck/Checker/OneOfChecker.php
M extensions/Constraints/includes/ConstraintCheck/Checker/QualifiersChecker.php
M
extensions/Constraints/includes/ConstraintCheck/Helper/ConnectionCheckerHelper.php
M extensions/Constraints/includes/ConstraintRepository.php
M extensions/Constraints/maintenance/UpdateConstraintsTable.php
M extensions/Wikibase/client/i18n/bs.json
M extensions/Wikibase/client/i18n/fa.json
M extensions/Wikibase/client/i18n/hi.json
M extensions/Wikibase/client/includes/Hooks/MovePageNotice.php
M extensions/Wikibase/lib/i18n/sv.json
M extensions/Wikibase/repo/i18n/hi.json
M extensions/Wikibase/repo/includes/Specials/SpecialNewEntity.php
M extensions/Wikibase/repo/includes/Specials/SpecialWikibaseRepoPage.php
M extensions/Wikibase/view/resources.test.php
M vendor/composer/installed.json
23 files changed, 95 insertions(+), 35 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikidata
refs/changes/28/353028/1
diff --git a/composer.lock b/composer.lock
index b0f2b3c..d20674e 100644
--- a/composer.lock
+++ b/composer.lock
@@ -944,7 +944,7 @@
"source": {
"type": "git",
"url":
"https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseQualityConstraints",
- "reference": "c5cd4b0a54caeb477269630e10c77cb007f144cf"
+ "reference": "cc018d9532fa61a33dbc8ccd764b022f7c2c169f"
},
"require": {
"php": ">=5.5.9",
@@ -1001,7 +1001,7 @@
"support": {
"issues":
"https://phabricator.wikimedia.org/project/profile/1202/"
},
- "time": "2017-05-09 07:28:35"
+ "time": "2017-05-10 09:27:13"
},
{
"name": "wikibase/data-model",
@@ -1580,12 +1580,12 @@
"source": {
"type": "git",
"url":
"https://github.com/wikimedia/mediawiki-extensions-Wikibase.git",
- "reference": "ee570c637635128f80b0a59fa4d0fa1afb14d916"
+ "reference": "b41c9563713f192d696de651419576daaea237bc"
},
"dist": {
"type": "zip",
- "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/ee570c637635128f80b0a59fa4d0fa1afb14d916",
- "reference": "ee570c637635128f80b0a59fa4d0fa1afb14d916",
+ "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/b41c9563713f192d696de651419576daaea237bc",
+ "reference": "b41c9563713f192d696de651419576daaea237bc",
"shasum": ""
},
"require": {
@@ -1660,7 +1660,7 @@
"wikibaserepo",
"wikidata"
],
- "time": "2017-05-09 08:23:01"
+ "time": "2017-05-10 08:52:10"
},
{
"name": "wikibase/wikimedia-badges",
diff --git a/extensions/Constraints/.mailmap b/extensions/Constraints/.mailmap
new file mode 100644
index 0000000..a7e60d7
--- /dev/null
+++ b/extensions/Constraints/.mailmap
@@ -0,0 +1,15 @@
+Aleksey Bekh-Ivanov <[email protected]>
+Andreas Burmeister <[email protected]>
+Dimitri Schmidt <[email protected]>
+Dominic Sauer <[email protected]>
+Jan Zerebecki <[email protected]>
+Jeroen De Dauw <[email protected]>
+Jonas Keutel <[email protected]> <[email protected]>
+Jonas Kress <[email protected]>
+Katie Filbert <[email protected]>
+Olga Bode <[email protected]>
+Sam Reed <[email protected]>
+Sören Oldag <[email protected]>
+Tamara Slosarek <[email protected]>
+Thiemo Mättig <[email protected]>
+Timo Tijhof <[email protected]>
diff --git a/extensions/Constraints/docs/user.js
b/extensions/Constraints/docs/user.js
index 49eb27b..c9dfccb 100644
--- a/extensions/Constraints/docs/user.js
+++ b/extensions/Constraints/docs/user.js
@@ -9,9 +9,9 @@
function buildWidget( reports ) {
var widget = new OO.ui.PopupButtonWidget( {
icon: 'alert',
- iconTitle: 'This statement has some potential issues.',
- label: reports.length.toString(),
- framed: false,
+ iconTitle: mw.message( 'wbqc-potentialissues-long'
).text(),
+ label: reports.length > 1 ? reports.length.toString() :
'',
+ framed: true,
popup: {
$content: new OO.ui.StackLayout( {
items: reports,
@@ -22,7 +22,7 @@
width: 400,
padded: true,
head: true,
- label: $( '<h4>' ).text( 'Potential issues' )
+ label: $( '<h4>' ).text( mw.message(
'wbqc-potentialissues-short' ).text() )
}
} );
@@ -103,7 +103,7 @@
if ( entityJson !== null ) {
entityId = JSON.parse( entityJson ).id;
- mw.loader.using( [ 'oojs-ui-core', 'oojs-ui-widgets' ] ).done(
function () {
+ mw.loader.using( [ 'oojs-ui-core', 'oojs-ui-widgets',
'wikibase.quality.constraints.ui' ] ).done( function () {
var api = new mw.Api();
api.get( {
action: 'wbcheckconstraints',
diff --git a/extensions/Constraints/extension.json
b/extensions/Constraints/extension.json
index 2602678..b47be26 100644
--- a/extensions/Constraints/extension.json
+++ b/extensions/Constraints/extension.json
@@ -41,6 +41,12 @@
"SpecialConstraintReportPage": {
"styles": "modules/SpecialConstraintReportPage.css",
"scripts": "modules/SpecialConstraintReportPage.js"
+ },
+ "wikibase.quality.constraints.ui": {
+ "messages": [
+ "wbqc-potentialissues-short",
+ "wbqc-potentialissues-long"
+ ]
}
},
"config": {
diff --git a/extensions/Constraints/i18n/en.json
b/extensions/Constraints/i18n/en.json
index 306f224..4fada66 100644
--- a/extensions/Constraints/i18n/en.json
+++ b/extensions/Constraints/i18n/en.json
@@ -28,6 +28,9 @@
"wbqc-constraintreport-result-link-to-constraint": "go to constraint",
"wbqc-constraintreport-no-parameter": "none",
+ "wbqc-potentialissues-short": "Potential issues",
+ "wbqc-potentialissues-long": "This statement has some potential
issues.",
+
"apihelp-wbcheckconstraints-description": "Performs constraint checks
on any entity you want and returns the result.",
"apihelp-wbcheckconstraints-param-id": "ID list of the entities to get
the data from. Separate values with '|' or alternative.",
"apihelp-wbcheckconstraints-param-claimid": "GUID list identifying a
claim to check a constraint report. Separate values with '|'.",
diff --git a/extensions/Constraints/i18n/qqq.json
b/extensions/Constraints/i18n/qqq.json
index 4165c92..bf0e8ac 100644
--- a/extensions/Constraints/i18n/qqq.json
+++ b/extensions/Constraints/i18n/qqq.json
@@ -27,6 +27,8 @@
"wbqc-constraintreport-result-link-to-claim": "Text for the link to a
claim group on the entity page.",
"wbqc-constraintreport-result-link-to-constraint": "Text for the link
to a constraint on the property page.",
"wbqc-constraintreport-no-parameter": "Text that is displayed when
there was no value for a parameter given.\n{{Identical|None}}",
+ "wbqc-potentialissues-short": "Headline of the constraint report popup
shown on statements with constraint violations. Should be easy to understand
for users, and convey that the reported violations are not always errors, but
should be thought of as hints to the user that something might be
wrong.{{Related|wbqc-constraintreport}",
+ "wbqc-potentialissues-long": "Title for the icon shown on statements
with constraint violations, usually displayed by the browser when the user
hovers over the icon with the mouse
cursor.{{Related|wbqc-potentialissues-short}}",
"apihelp-wbcheckconstraints-description":
"{{doc-apihelp-description|wbcheckconstraints}}",
"apihelp-wbcheckconstraints-param-id":
"{{doc-apihelp-param|wbcheckconstraints|id}}",
"apihelp-wbcheckconstraints-param-claimid":
"{{doc-apihelp-param|wbcheckconstraints|claimid}}",
diff --git
a/extensions/Constraints/includes/ConstraintCheck/Checker/DiffWithinRangeChecker.php
b/extensions/Constraints/includes/ConstraintCheck/Checker/DiffWithinRangeChecker.php
index 702f0ca..67bd6d2 100644
---
a/extensions/Constraints/includes/ConstraintCheck/Checker/DiffWithinRangeChecker.php
+++
b/extensions/Constraints/includes/ConstraintCheck/Checker/DiffWithinRangeChecker.php
@@ -52,7 +52,7 @@
$constraintParameters = $constraint->getConstraintParameters();
$property = false;
if ( array_key_exists( 'property', $constraintParameters ) ) {
- $property = $constraintParameters['property'];
+ $property = strtoupper(
$constraintParameters['property'] ); // FIXME strtoupper should not be
necessary, remove once constraints are imported from statements
$parameters['property'] =
$this->constraintParameterParser->parseSingleParameter( $property );
}
diff --git
a/extensions/Constraints/includes/ConstraintCheck/Checker/MandatoryQualifiersChecker.php
b/extensions/Constraints/includes/ConstraintCheck/Checker/MandatoryQualifiersChecker.php
index ff20dd4..2d736a5 100644
---
a/extensions/Constraints/includes/ConstraintCheck/Checker/MandatoryQualifiersChecker.php
+++
b/extensions/Constraints/includes/ConstraintCheck/Checker/MandatoryQualifiersChecker.php
@@ -60,6 +60,7 @@
$status = CheckResult::STATUS_COMPLIANCE;
foreach ( $properties as $property ) {
+ $property = strtoupper( $property ); // FIXME
strtoupper should not be necessary, remove once constraints are imported from
statements
if ( !array_key_exists( $property, $qualifiers ) ) {
$message = wfMessage(
"wbqc-violation-message-mandatory-qualifiers" )->escaped();
$status = CheckResult::STATUS_VIOLATION;
diff --git
a/extensions/Constraints/includes/ConstraintCheck/Checker/OneOfChecker.php
b/extensions/Constraints/includes/ConstraintCheck/Checker/OneOfChecker.php
index f31b394..432e0a6 100644
--- a/extensions/Constraints/includes/ConstraintCheck/Checker/OneOfChecker.php
+++ b/extensions/Constraints/includes/ConstraintCheck/Checker/OneOfChecker.php
@@ -47,6 +47,7 @@
$items = false;
if ( array_key_exists( 'item', $constraintParameters ) ) {
$items = explode( ',', $constraintParameters['item'] );
+ $items = array_map( 'strtoupper', $items ); // FIXME
strtoupper should not be necessary, remove once constraints are imported from
statements
$parameters['item'] =
$this->helper->parseParameterArray( $items );
}
diff --git
a/extensions/Constraints/includes/ConstraintCheck/Checker/QualifiersChecker.php
b/extensions/Constraints/includes/ConstraintCheck/Checker/QualifiersChecker.php
index 0d017bc..62d9b10 100644
---
a/extensions/Constraints/includes/ConstraintCheck/Checker/QualifiersChecker.php
+++
b/extensions/Constraints/includes/ConstraintCheck/Checker/QualifiersChecker.php
@@ -52,13 +52,19 @@
* $constraintParameters['property'] can be array( '' ),
meaning that there are explicitly no qualifiers allowed
*/
+ $properties = [];
+ if ( array_key_exists( 'property', $constraintParameters ) ) {
+ $properties = explode( ',',
$constraintParameters['property'] );
+ $properties = array_map( 'strtoupper', $properties );
// FIXME strtoupper should not be necessary, remove once constraints are
imported from statements
+ }
+
$message = '';
$status = CheckResult::STATUS_COMPLIANCE;
/** @var Snak $qualifier */
foreach ( $statement->getQualifiers() as $qualifier ) {
$pid = $qualifier->getPropertyId()->getSerialization();
- if ( !in_array( $pid, explode( ',',
$constraintParameters['property'] ) ) ) {
+ if ( !in_array( $pid, $properties ) ) {
$message = wfMessage(
"wbqc-violation-message-qualifiers" )->escaped();
$status = CheckResult::STATUS_VIOLATION;
break;
diff --git
a/extensions/Constraints/includes/ConstraintCheck/Helper/ConnectionCheckerHelper.php
b/extensions/Constraints/includes/ConstraintCheck/Helper/ConnectionCheckerHelper.php
index cb204df..95740b9 100644
---
a/extensions/Constraints/includes/ConstraintCheck/Helper/ConnectionCheckerHelper.php
+++
b/extensions/Constraints/includes/ConstraintCheck/Helper/ConnectionCheckerHelper.php
@@ -25,6 +25,7 @@
* @return boolean
*/
public function hasProperty( StatementList $statementList,
$propertyIdSerialization ) {
+ $propertyIdSerialization = strtoupper( $propertyIdSerialization
); // FIXME strtoupper should not be necessary, remove once constraints are
imported from statements
/** @var Statement $statement */
foreach ( $statementList as $statement ) {
if ( $statement->getPropertyId()->getSerialization()
=== $propertyIdSerialization ) {
@@ -48,6 +49,7 @@
$propertyIdSerialization,
$itemIdSerializationOrArray
) {
+ $propertyIdSerialization = strtoupper( $propertyIdSerialization
); // FIXME strtoupper should not be necessary, remove once constraints are
imported from statements
/** @var Statement $statement */
foreach ( $statementList as $statement ) {
if ( $statement->getPropertyId()->getSerialization()
=== $propertyIdSerialization ) {
@@ -73,6 +75,8 @@
private function arrayHasClaim( Statement $statement, array
$itemIdSerializationArray ) {
$mainSnak = $statement->getMainSnak();
+ $itemIdSerializationArray = array_map( "strtoupper",
$itemIdSerializationArray ); // FIXME strtoupper should not be necessary,
remove once constraints are imported from statements
+
if ( $mainSnak instanceof PropertyValueSnak ) {
$dataValue = $mainSnak->getDataValue();
diff --git a/extensions/Constraints/includes/ConstraintRepository.php
b/extensions/Constraints/includes/ConstraintRepository.php
index 1a75d82..147cd42 100644
--- a/extensions/Constraints/includes/ConstraintRepository.php
+++ b/extensions/Constraints/includes/ConstraintRepository.php
@@ -117,7 +117,7 @@
$constraints = [];
foreach ( $results as $result ) {
$constraintTypeQid = $result->constraint_type_qid;
- $constraintParameters = (array) json_decode(
$result->constraint_parameters );
+ $constraintParameters = json_decode(
$result->constraint_parameters, true );
$constraints[] = new Constraint(
$result->constraint_guid,
diff --git a/extensions/Constraints/maintenance/UpdateConstraintsTable.php
b/extensions/Constraints/maintenance/UpdateConstraintsTable.php
index f02c093..91c3292 100644
--- a/extensions/Constraints/maintenance/UpdateConstraintsTable.php
+++ b/extensions/Constraints/maintenance/UpdateConstraintsTable.php
@@ -78,7 +78,7 @@
}
list( $constraintId, $numericPropertyId,
$constraintTypeQid, $params ) = $data;
- $constraintParameters = (array) json_decode( $params );
+ $constraintParameters = json_decode( $params, true );
$accumulator[] = new Constraint(
$constraintId,
diff --git a/extensions/Wikibase/client/i18n/bs.json
b/extensions/Wikibase/client/i18n/bs.json
index 73dbe2d..ae1a49f 100644
--- a/extensions/Wikibase/client/i18n/bs.json
+++ b/extensions/Wikibase/client/i18n/bs.json
@@ -12,6 +12,7 @@
"tooltip-t-wikibase": "Link na povezane podatke spremišnih stavki",
"wikibase-after-page-move": "Također biste trebali ažurirati [$1
pridruženu stavku na {{GRAMMAR:dativ|{{WBREPONAME}}}}] radi održavanja jezičkih
veza na premještenoj stranici.",
"wikibase-after-page-move-queued": "[$1 {{WBREPONAME}} stavka] povezana
s ovom stranicom bit će automatski ažurirana. Imajte na umu da se ovo ponekad
ne dogodi momentalno.",
+ "wikibase-after-page-delete": "Također biste trebali ukloniti link ka
ovoj stranici s [$1 povezane stavke na {{GRAMMAR:dativ|{{WBREPONAME}}}}] radi
održavanja jezičkih linkova.",
"wikibase-after-page-delete-queued": "[$1 {{WBREPONAME}} stavka]
povezana s ovom stranicom bit će automatski ažurirana. Imajte na umu da se ovo
ponekad ne dogodi momentalno.",
"wikibase-comment-remove": "Pridružena stavka na
{{GRAMMAR:dativ|{{WBREPONAME}}}} je obrisana. Jezičke veze su uklonjene.",
"wikibase-comment-linked": "Stavka na {{GRAMMAR:dativ|{{WBREPONAME}}}}
je povezana s ovom stranicom.",
diff --git a/extensions/Wikibase/client/i18n/fa.json
b/extensions/Wikibase/client/i18n/fa.json
index 7f58e1c..6f86291 100644
--- a/extensions/Wikibase/client/i18n/fa.json
+++ b/extensions/Wikibase/client/i18n/fa.json
@@ -114,6 +114,7 @@
"wikibase-otherprojects-beta-message": "نوار کناری سایر پروژهها",
"wikibase-otherprojects-beta-description": "یک قسمت
«{{int:wikibase-otherprojects}}» به نوار کناری میافزاید که پیوندهایی به دیگر
پروژههای ویکیمدیا واقعشده در دادههای {{WBREPONAME}} میدهد.",
"echo-category-title-wikibase-action": "تماس با {{WBREPONAME}}",
+ "notification-header-page-connection": "صفحه <strong>$3</strong> به یک
آیتم در {{WBREPONAME}} {{GENDER:$2|متصل شد}}.",
"notification-link-text-view-item": "{{GENDER:$1|نمایش}} آیتم",
"notification-subject-page-connection": "صفحهای در {{SITENAME}} که شما
{{GENDER:$3|ایجاد کردید}} به آیتم {{WBREPONAME}} {{GENDER:$2|متصل بود}}",
"unresolved-property-category": "صفحات با خصوصیات نامشخص"
diff --git a/extensions/Wikibase/client/i18n/hi.json
b/extensions/Wikibase/client/i18n/hi.json
index a38c60a..88db078 100644
--- a/extensions/Wikibase/client/i18n/hi.json
+++ b/extensions/Wikibase/client/i18n/hi.json
@@ -26,6 +26,7 @@
"wikibase-dataitem": "{{WBREPONAME}} प्रविष्टि",
"wikibase-editlinks": "कड़ी संपादित करें",
"wikibase-editlinkstitle": "अन्तरभाषा कड़ी संपादित करें",
+ "wikibase-addlinkstitle": "अन्तरभाषा कड़ी जोड़ें",
"wikibase-linkitem-addlinks": "कड़ी जोड़ें",
"wikibase-linkitem-alreadylinked": "पृष्ठ जिसे आप जोड़ना चाहते थे वह
पहले से ही केन्द्रीय डेटा रिपोज़िटरी के [$1 आइटम] से जुड़ा हुआ है जो इस साइट के
$2 से जुड़ता है। आइटम में एक साइट का केवल एक ही पृष्ठ जुड़ सकता है। कृपया किसी
अन्य पृष्ठ को जोड़ने के लिए चुने।",
"wikibase-linkitem-close": "संवाद बंद करें और पृष्ठ पुनः लोड करें",
@@ -40,6 +41,7 @@
"wikibase-linkitem-not-loggedin-title": "आप को लॉग इन होने की आवश्यकता
है",
"wikibase-linkitem-not-loggedin": "इस सुविधा के उपयोग के लिए आपका इस
विकि और [$1 केन्द्रीय डेटा रिपोज़िटरी] पर लॉग इन होना आवश्यक है।",
"wikibase-linkitem-success-link": "पृष्ठ सफलतापूर्वक जुड़ गया है। आप
कड़ियाँ युक्त आइटम को हमारी [$1 केन्द्रीय डेटा रिपोज़िटरी] में पा सकते हैं।",
+ "wikibase-property-notfound": "$1 गुण नहीं मिला",
"wikibase-rc-hide-wikidata": "विकिडेटा $1",
"wikibase-rc-hide-wikidata-hide": "छुपाएँ",
"wikibase-rc-hide-wikidata-show": "दिखाएँ",
diff --git a/extensions/Wikibase/client/includes/Hooks/MovePageNotice.php
b/extensions/Wikibase/client/includes/Hooks/MovePageNotice.php
index 86df8c9..b7a56c9 100644
--- a/extensions/Wikibase/client/includes/Hooks/MovePageNotice.php
+++ b/extensions/Wikibase/client/includes/Hooks/MovePageNotice.php
@@ -82,17 +82,14 @@
*
* @return bool
*/
- public function doSpecialMovepageAfterMove( MovePageForm $movePage,
Title &$oldTitle,
- Title &$newTitle ) {
-
- $html = $this->getPageMoveNoticeHtml(
- $oldTitle,
- $newTitle
- );
-
+ public function doSpecialMovepageAfterMove(
+ MovePageForm $movePage,
+ Title &$oldTitle,
+ Title &$newTitle
+ ) {
$out = $movePage->getOutput();
$out->addModules( 'wikibase.client.page-move' );
- $out->addHTML( $html );
+ $out->addHTML( $this->getPageMoveNoticeHtml( $oldTitle,
$newTitle ) );
}
/**
diff --git a/extensions/Wikibase/lib/i18n/sv.json
b/extensions/Wikibase/lib/i18n/sv.json
index f1ef44a..ac77523 100644
--- a/extensions/Wikibase/lib/i18n/sv.json
+++ b/extensions/Wikibase/lib/i18n/sv.json
@@ -77,6 +77,7 @@
"datatypes-type-wikibase-property": "Egenskap",
"datatypes-type-commonsMedia": "Mediefil från Commons",
"datatypes-type-geo-shape": "Geografisk form",
+ "datatypes-type-tabular-data": "Tabelldata",
"datatypes-type-external-id": "Extern identifikator",
"version-wikibase": "Wikibase",
"wikibase-time-precision-Gannum": "$1 {{PLURAL:$1|miljard|miljarder}}
år e.v.t.",
diff --git a/extensions/Wikibase/repo/i18n/hi.json
b/extensions/Wikibase/repo/i18n/hi.json
index 8c3c185..3bf8205 100644
--- a/extensions/Wikibase/repo/i18n/hi.json
+++ b/extensions/Wikibase/repo/i18n/hi.json
@@ -22,6 +22,8 @@
"wikibase-addreference": "स्रोत जोड़ें",
"wikibase-save-inprogress": "सहेजा जा रहा है…",
"wikibase-remove-inprogress": "हटाया जा रहा है…",
+ "wikibase-statementlistview-add": "जोड़ें",
+ "wikibase-statementgrouplistview-add": "जोड़ें",
"wikibase-entitytermsview-entitytermsforlanguagelistview-configure-link-label":
"कॉन्फ़िगर करें",
"wikibase-entitytermsforlanguagelistview-description": "विवरण",
"wikibase-entitytermsforlanguagelistview-label": "लेबल",
@@ -33,16 +35,19 @@
"wikibase-description-empty": "कोई विवरण परिभाषित नहीं।",
"wikibase-description-edit-placeholder": "विवरण दर्ज करें",
"wikibase-description-edit-placeholder-language-aware": "$1 में विवरण
दर्ज करें",
+ "wikibase-content-language-edit-label": "भाषा:",
"wikibase-diffview-reference": "संदर्भ",
"wikibase-diffview-rank": "पद",
"wikibase-diffview-rank-preferred": "इच्छित् पद",
"wikibase-diffview-rank-normal": "साधारण पद",
"wikibase-diffview-label": "लेबल",
+ "wikibase-diffview-description": "विवरण",
"wikibase-diffview-link": "कड़ियाँ",
"wikibase-diffview-link-name": "नाम",
"wikibase-sitelink-site-edit-placeholder": "विकि",
"wikibase-sitelink-page-edit-placeholder": "पृष्ठ",
"wikibase-statementsection-statements": "कथन",
+ "wikibase-sitelinks": "साइटकड़ी",
"wikibase-sitelinks-special": "अन्य वेबसाइट",
"wikibase-remove": "ह्टाना",
"wikibase-move-up": "ऊपर भेजें",
diff --git a/extensions/Wikibase/repo/includes/Specials/SpecialNewEntity.php
b/extensions/Wikibase/repo/includes/Specials/SpecialNewEntity.php
index 7b070b4..f7c1920 100644
--- a/extensions/Wikibase/repo/includes/Specials/SpecialNewEntity.php
+++ b/extensions/Wikibase/repo/includes/Specials/SpecialNewEntity.php
@@ -204,6 +204,13 @@
}
/**
+ * @return string HTML
+ */
+ protected function getCopyrightHTML() {
+ return parent::getCopyrightHTML( 'wikibase-newentity-submit' );
+ }
+
+ /**
* @param EntityDocument $entity
*/
private function redirectToEntityPage( EntityDocument $entity ) {
diff --git
a/extensions/Wikibase/repo/includes/Specials/SpecialWikibaseRepoPage.php
b/extensions/Wikibase/repo/includes/Specials/SpecialWikibaseRepoPage.php
index 017c141..9c953d4 100644
--- a/extensions/Wikibase/repo/includes/Specials/SpecialWikibaseRepoPage.php
+++ b/extensions/Wikibase/repo/includes/Specials/SpecialWikibaseRepoPage.php
@@ -157,11 +157,16 @@
}
/**
+ * @param string|null $saveMessageKey Defaults to "wikibase-<special
page name>-submit".
+ *
* @return string HTML
*/
- protected function getCopyrightHTML() {
- $submitKey = 'wikibase-' . strtolower( $this->getName() ) .
'-submit';
- return $this->copyrightView->getHtml( $this->getLanguage(),
$submitKey );
+ protected function getCopyrightHTML( $saveMessageKey = null ) {
+ if ( $saveMessageKey === null ) {
+ $saveMessageKey = 'wikibase-' . strtolower(
$this->getName() ) . '-submit';
+ }
+
+ return $this->copyrightView->getHtml( $this->getLanguage(),
$saveMessageKey );
}
}
diff --git a/extensions/Wikibase/view/resources.test.php
b/extensions/Wikibase/view/resources.test.php
index 2618a18..8b4ff00 100644
--- a/extensions/Wikibase/view/resources.test.php
+++ b/extensions/Wikibase/view/resources.test.php
@@ -5,11 +5,14 @@
* @author Adrian Heine <[email protected]>
*/
global $wgHooks;
-$wgHooks['ResourceLoaderTestModules'][] = function( array &$testModules,
ResourceLoader &$resourceLoader ) {
+$wgHooks['ResourceLoaderTestModules'][] = function(
+ array &$testModules,
+ ResourceLoader &$resourceLoader
+) {
$testModules['qunit'] = array_merge(
$testModules['qunit'],
- include 'tests/qunit/resources.php'
+ include __DIR__ . '/tests/qunit/resources.php'
);
return true;
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index 19bf956..def9da7 100644
--- a/vendor/composer/installed.json
+++ b/vendor/composer/installed.json
@@ -1366,12 +1366,12 @@
"source": {
"type": "git",
"url":
"https://github.com/wikimedia/mediawiki-extensions-Wikibase.git",
- "reference": "ee570c637635128f80b0a59fa4d0fa1afb14d916"
+ "reference": "b41c9563713f192d696de651419576daaea237bc"
},
"dist": {
"type": "zip",
- "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/ee570c637635128f80b0a59fa4d0fa1afb14d916",
- "reference": "ee570c637635128f80b0a59fa4d0fa1afb14d916",
+ "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/b41c9563713f192d696de651419576daaea237bc",
+ "reference": "b41c9563713f192d696de651419576daaea237bc",
"shasum": ""
},
"require": {
@@ -1404,7 +1404,7 @@
"jakub-onderka/php-parallel-lint": ">=0.3 <0.10",
"wikibase/wikibase-codesniffer": "^0.1.0"
},
- "time": "2017-05-09 08:23:01",
+ "time": "2017-05-10 08:52:10",
"type": "mediawiki-extension",
"installation-source": "dist",
"autoload": {
@@ -1808,7 +1808,7 @@
"source": {
"type": "git",
"url":
"https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseQualityConstraints",
- "reference": "c5cd4b0a54caeb477269630e10c77cb007f144cf"
+ "reference": "cc018d9532fa61a33dbc8ccd764b022f7c2c169f"
},
"require": {
"php": ">=5.5.9",
@@ -1823,7 +1823,7 @@
"satooshi/php-coveralls": "master-dev",
"wikibase/wikibase-codesniffer": "^0.1.0"
},
- "time": "2017-05-09 07:28:35",
+ "time": "2017-05-10 09:27:13",
"type": "mediawiki-extension",
"installation-source": "source",
"autoload": {
--
To view, visit https://gerrit.wikimedia.org/r/353028
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I530003af5c7089719cfaa1d54163bf9d2a11da33
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikidata
Gerrit-Branch: master
Gerrit-Owner: WikidataBuilder <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits