WikidataBuilder has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/382411 )
Change subject: New Wikidata Build - 2017-10-05T10:00:01+0000
......................................................................
New Wikidata Build - 2017-10-05T10:00:01+0000
Change-Id: I4e7784dd1bc10967d220e11fcb14216ecb28479e
---
M composer.lock
M extensions/Constraints/i18n/pt.json
M extensions/Constraints/i18n/sv.json
M extensions/Constraints/includes/ConstraintCheck/Checker/TypeChecker.php
M extensions/Constraints/tests/phpunit/Checker/TypeChecker/TypeCheckerTest.php
M extensions/Wikibase/client/WikibaseClient.php
M extensions/Wikibase/client/i18n/ais.json
M extensions/Wikibase/client/i18n/bg.json
M extensions/Wikibase/client/i18n/cs.json
M extensions/Wikibase/client/i18n/fr.json
M extensions/Wikibase/client/i18n/pl.json
M extensions/Wikibase/client/i18n/ru.json
M extensions/Wikibase/client/i18n/th.json
M extensions/Wikibase/client/includes/DataAccess/Scribunto/EntityAccessor.php
M
extensions/Wikibase/client/includes/DataAccess/Scribunto/Scribunto_LuaWikibaseLibrary.php
M extensions/Wikibase/client/includes/DataAccess/Scribunto/mw.wikibase.lua
M extensions/Wikibase/client/includes/Hooks/EchoNotificationsHandlers.php
A extensions/Wikibase/client/includes/Hooks/EchoSetupHookHandlers.php
M extensions/Wikibase/client/includes/Serializer/ClientEntitySerializer.php
M extensions/Wikibase/client/includes/Serializer/ClientSerializer.php
M
extensions/Wikibase/client/includes/Serializer/ClientStatementListSerializer.php
M
extensions/Wikibase/client/tests/phpunit/includes/DataAccess/Scribunto/LuaWikibaseLibraryNoArbitraryAccessTests.lua
M
extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoNotificationsHandlersTest.php
A
extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoSetupHookHandlersTest.php
M
extensions/Wikibase/client/tests/phpunit/includes/Notifications/PageConnectionPresentationModelTest.php
M extensions/Wikibase/docs/lua.wiki
M extensions/Wikibase/lib/i18n/ais.json
M extensions/Wikibase/lib/i18n/az.json
M extensions/Wikibase/repo/i18n/ais.json
M extensions/Wikibase/repo/i18n/az.json
M extensions/Wikibase/repo/i18n/sv.json
M vendor/composer/autoload_classmap.php
M vendor/composer/autoload_static.php
M vendor/composer/installed.json
34 files changed, 386 insertions(+), 262 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikidata
refs/changes/11/382411/1
diff --git a/composer.lock b/composer.lock
index c6908b4..89a8a79 100644
--- a/composer.lock
+++ b/composer.lock
@@ -977,7 +977,7 @@
"source": {
"type": "git",
"url":
"https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseQualityConstraints",
- "reference": "02946a03166ee8b70ef0e323145442199ff4cdbe"
+ "reference": "38bb16a0efba2183612909aac1bbbc06af6e8bfc"
},
"require": {
"php": ">=5.5.9",
@@ -1037,7 +1037,7 @@
"support": {
"issues":
"https://phabricator.wikimedia.org/project/profile/1202/"
},
- "time": "2017-10-02 15:58:38"
+ "time": "2017-10-05 09:57:53"
},
{
"name": "wikibase/data-model",
@@ -1548,12 +1548,12 @@
"source": {
"type": "git",
"url":
"https://github.com/wikimedia/mediawiki-extensions-Wikibase.git",
- "reference": "01b3d94b3ef788eef3415a49c932db887e44949f"
+ "reference": "4e28a911ce1717b3e96e1eefb9031d1550bc2590"
},
"dist": {
"type": "zip",
- "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/01b3d94b3ef788eef3415a49c932db887e44949f",
- "reference": "01b3d94b3ef788eef3415a49c932db887e44949f",
+ "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/4e28a911ce1717b3e96e1eefb9031d1550bc2590",
+ "reference": "4e28a911ce1717b3e96e1eefb9031d1550bc2590",
"shasum": ""
},
"require": {
@@ -1631,7 +1631,7 @@
"wikibaserepo",
"wikidata"
],
- "time": "2017-10-02 13:20:47"
+ "time": "2017-10-05 08:43:29"
},
{
"name": "wikibase/wikimedia-badges",
diff --git a/extensions/Constraints/i18n/pt.json
b/extensions/Constraints/i18n/pt.json
index 6bc48b5..4b72920 100644
--- a/extensions/Constraints/i18n/pt.json
+++ b/extensions/Constraints/i18n/pt.json
@@ -117,5 +117,6 @@
"wbqc-violation-message-valueType-subclass": "Os valores de declarações
$1 deveriam ser subclasses de {{PLURAL:$3|1=$5|2=$5 ou $6|uma das seguintes
classes}} (ou de {{PLURAL:$3|1=uma subclasse dela|2=uma subclasse delas|uma das
subclasses delas}}), mas neste momento $2 {{PLURAL:$3|1=não é.|2=não é.|não é:
$4}}",
"wbqc-violation-message-target-required-claim": "$1 deveria ter
{{PLURAL:$3|0=uma declaração $2.|1=uma declaração $2 $5.|uma declaração para $2
com um dos seguintes valores:$4}}",
"wbqc-violation-message-unique-value": "O valor da propriedade não pode
estar presente em nenhum outro objeto, mas também está presente
{{PLURAL:$1|1=em $3.|2=em $3 e $4.|nos seguintes objetos: $2}}",
+ "wbqc-violation-message-valueOnly": "Esta propriedade só deve ser usada
para o valor principal de uma declaração, não para qualificadores nem
referências.",
"wbqc-exception-message": "Esta entidade é uma exceção conhecida para
esta restrição e foi marcada como tal."
}
diff --git a/extensions/Constraints/i18n/sv.json
b/extensions/Constraints/i18n/sv.json
index 00b0637..77bc1b9 100644
--- a/extensions/Constraints/i18n/sv.json
+++ b/extensions/Constraints/i18n/sv.json
@@ -8,6 +8,7 @@
"wbqc-constraintreport-status-bad-parameters": "Trasiga parametrar",
"wbqc-constraintreport-status-deprecated": "Föråldrad",
"wbqc-constraintreport-status-warning": "Varning",
+ "wbqc-constraintreport-status-not-main-snak": "Ingen huvudsnak",
"wbqc-badparameters-short": "Trasiga parametrar",
"wbqc-parameterissues-short": "Avancerade ärenden",
"wbqc-constrainttypehelp-short": "Hjälp",
diff --git
a/extensions/Constraints/includes/ConstraintCheck/Checker/TypeChecker.php
b/extensions/Constraints/includes/ConstraintCheck/Checker/TypeChecker.php
index 73719f3..b4aa162 100644
--- a/extensions/Constraints/includes/ConstraintCheck/Checker/TypeChecker.php
+++ b/extensions/Constraints/includes/ConstraintCheck/Checker/TypeChecker.php
@@ -76,9 +76,6 @@
if ( $context->getSnakRank() === Statement::RANK_DEPRECATED ) {
return new CheckResult( $context, $constraint, [],
CheckResult::STATUS_DEPRECATED );
}
- if ( $context->getType() !== Context::TYPE_STATEMENT ) {
- return new CheckResult( $context, $constraint, [],
CheckResult::STATUS_NOT_MAIN_SNAK );
- }
$parameters = [];
$constraintParameters = $constraint->getConstraintParameters();
diff --git
a/extensions/Constraints/tests/phpunit/Checker/TypeChecker/TypeCheckerTest.php
b/extensions/Constraints/tests/phpunit/Checker/TypeChecker/TypeCheckerTest.php
index b97211d..045db93 100644
---
a/extensions/Constraints/tests/phpunit/Checker/TypeChecker/TypeCheckerTest.php
+++
b/extensions/Constraints/tests/phpunit/Checker/TypeChecker/TypeCheckerTest.php
@@ -2,13 +2,16 @@
namespace WikibaseQuality\ConstraintReport\Test\TypeChecker;
+use Wikibase\DataModel\Snak\PropertyNoValueSnak;
use Wikibase\DataModel\Snak\Snak;
use Wikibase\DataModel\Snak\PropertyValueSnak;
use Wikibase\DataModel\Entity\EntityIdValue;
use Wikibase\DataModel\Entity\ItemId;
use Wikibase\DataModel\Entity\PropertyId;
+use Wikibase\DataModel\Statement\Statement;
use WikibaseQuality\ConstraintReport\Constraint;
use WikibaseQuality\ConstraintReport\ConstraintCheck\Checker\TypeChecker;
+use WikibaseQuality\ConstraintReport\ConstraintCheck\Context\QualifierContext;
use WikibaseQuality\ConstraintReport\ConstraintCheck\Context\StatementContext;
use WikibaseQuality\ConstraintReport\ConstraintCheck\Helper\TypeCheckerHelper;
use WikibaseQuality\ConstraintReport\Tests\ConstraintParameters;
@@ -234,6 +237,24 @@
$this->assertDeprecation( $checkResult );
}
+ public function testTypeConstraintInstanceValidQualifier() {
+ $entity = $this->lookup->getEntity( new ItemId( 'Q1' ) );
+ $constraintParameters = array_merge(
+ $this->relationParameter( 'instance' ),
+ $this->classParameter( [ 'Q100', 'Q101' ] )
+ );
+ $constraint = $this->getConstraintMock( $constraintParameters );
+ $context = new QualifierContext(
+ $entity,
+ new Statement( $this->typeSnak ),
+ new PropertyNoValueSnak( new PropertyId( 'P2000' ) )
+ );
+
+ $checkResult = $this->checker->checkConstraint( $context,
$constraint );
+
+ $this->assertCompliance( $checkResult );
+ }
+
public function testCheckConstraintParameters() {
$constraint = $this->getConstraintMock( [] );
diff --git a/extensions/Wikibase/client/WikibaseClient.php
b/extensions/Wikibase/client/WikibaseClient.php
index cf3ac87..352da9f 100644
--- a/extensions/Wikibase/client/WikibaseClient.php
+++ b/extensions/Wikibase/client/WikibaseClient.php
@@ -151,7 +151,7 @@
// for client notifications (requires the Echo extension)
// note that Echo calls BeforeCreateEchoEvent hook when it is being
initialized,
// thus we have to register these two handlers disregarding Echo is
loaded or not
- $wgHooks['BeforeCreateEchoEvent'][] =
'\Wikibase\Client\Hooks\EchoNotificationsHandlers::onBeforeCreateEchoEvent';
+ $wgHooks['BeforeCreateEchoEvent'][] =
'\Wikibase\Client\Hooks\EchoSetupHookHandlers::onBeforeCreateEchoEvent';
$wgHooks['EchoGetBundleRules'][] =
'\Wikibase\Client\Hooks\EchoNotificationsHandlers::onEchoGetBundleRules';
// conditionally register the remaining two handlers which would
otherwise fail
diff --git a/extensions/Wikibase/client/i18n/ais.json
b/extensions/Wikibase/client/i18n/ais.json
index f6ac54f..de469e1 100644
--- a/extensions/Wikibase/client/i18n/ais.json
+++ b/extensions/Wikibase/client/i18n/ais.json
@@ -6,8 +6,11 @@
"Tokoabibi"
]
},
+ "wikibase-client-desc": "mamaedapay-malutapiingan nu Wikibase sacunusan
a sakaluk",
"tooltip-t-wikibase": "masasiket tayza i papatunay a kalunasulitan
pisupeday a kakitizaan tu kasacacay",
"wikibase-comment-update": "masumad tuway {{WBREPONAME}} kasacacay",
+ "wikibase-comment-sitelink-add": "macunus tu kamu masasiket: $1",
+ "wikibase-comment-sitelink-change": "kamu masasiket masumad $1 tu $2
tuway",
"wikibase-comment-sitelink-remove": "misipu kamu masasiket:$1",
"wikibase-dataitem": "{{WBREPONAME}} kasacacay",
"wikibase-editlinks": "mikawaway-kalumyiti misiket",
@@ -15,7 +18,9 @@
"wikibase-addlinkstitle": "micunus milakuwit kamu masasiket",
"wikibase-linkitem-addlinks": "micunus tu masasiket",
"wikibase-linkitem-close": "edeben sasukamu atilad atu miliyaw lisimet
kasabelih",
+ "wikibase-linkitem-failure": "mitanam masasiket matuzu’ay a kasabelih
matahkal ku caay kapulita a mungangaw.",
"wikibase-linkitem-title": "masasiket tu kasabelih",
+ "wikibase-linkitem-selectlink": "pipili’ calay-kakacawan(wangcan) atu
maydih kisu masasiket tina kasabelih a kasabelih",
"wikibase-linkitem-input-site": "kamu:",
"wikibase-linkitem-input-page": "kasabelih:",
"wikibase-linkitem-not-loggedin-title": "maydih kisu patalabu",
@@ -28,17 +33,20 @@
"wikibase-error-deserialize-error": "belih-salaylay kalunasulitan
mungagnaw",
"unconnectedpages": "kasabelih caay masasiket tayza amahicahica tu
kasacacay",
"wikibase-unconnectedpages-submit": "paazih kasabelih",
+ "wikibase-pageswithbadges-invalid-id": "$1 caay ku kapahay a ID
kasacacay",
"wikibase-pageswithbadges-badge": "kunpay:",
"wikibase-pageswithbadges-submit": "paazih kasabelih",
"entityusage": "masaheciay misaungay zasatu",
"wikibase-entityusage-legend": "pasilsil pisaungay matuzu’ay masaheciay
a kasabelih",
"wikibase-entityusage-entity": "masaheciay:",
"wikibase-entityusage-submit": "paazih kasabelih",
+ "wikibase-pageinfo-entity-id": "{{WBREPONAME}} kasacacay ID",
"wikibase-pageinfo-entity-id-none": "nayi’",
"wikibase-pageinfo-entity-usage-S": "Calay-kakacawan(C-wangcan)",
"wikibase-pageinfo-entity-usage-L": "aazihen paya: $1",
"wikibase-pageinfo-entity-usage-T": "satangahan",
"wikibase-pageinfo-entity-usage-X": "sacahamin masaheciay
kalunasulitan",
"wikibase-property-render-error": "paazih susin $1: $2 mungangaw",
- "wikibase-otherprojects": "zuma cwanan"
+ "wikibase-otherprojects": "zuma cwanan",
+ "notification-link-text-view-item": "{{GENDER:$1|ciwsace}} kasacacay"
}
diff --git a/extensions/Wikibase/client/i18n/bg.json
b/extensions/Wikibase/client/i18n/bg.json
index d14172e..480aaec 100644
--- a/extensions/Wikibase/client/i18n/bg.json
+++ b/extensions/Wikibase/client/i18n/bg.json
@@ -46,6 +46,7 @@
"wikibase-replicationnote": "Може да отнеме няколко минути, докато
промените се отразят във всички уикита.",
"wikibase-watchlist-show-changes-pref": "Показване на редакции от
{{WBREPONAME}} в списъка ми за наблюдение",
"unconnectedpages": "Страници, които не са свързани с обекти в
Уикиданни",
+ "unconnectedpages-summary": "Тази страница представлява списък със
страници, които не са свързани с обект в Уикиданни (в именни пространства,
които поддържат свързване с обект). Списъкът е подреден по низходящо ID на
страницата, така че новите страници излизат най-отгоре.",
"wikibase-unconnectedpages-submit": "Показване на страниците",
"pageswithbadges": "Страници със значки",
"pageswithbadges-summary": "На тази страница са показани всички
страници със значки (например [[Уикипедия:Добри статии|добра статия]] или
[[Уикипедия:Избрани статии|избрана статия]]). Списъкът се сортира в низходящ
ред по идентификатор на страницата, така че по-новите страници са първи в
списъка.",
diff --git a/extensions/Wikibase/client/i18n/cs.json
b/extensions/Wikibase/client/i18n/cs.json
index d2e17e3..7cc15be 100644
--- a/extensions/Wikibase/client/i18n/cs.json
+++ b/extensions/Wikibase/client/i18n/cs.json
@@ -84,6 +84,7 @@
"wikibase-pageinfo-entity-usage": "Entity
{{GRAMMAR:2sg|{{WBREPONAME}}}} použité na této stránce",
"wikibase-pageinfo-entity-usage-S": "Odkaz na stránku",
"wikibase-pageinfo-entity-usage-L": "Štítek: $1",
+ "wikibase-pageinfo-entity-usage-D": "Popisek: $1",
"wikibase-pageinfo-entity-usage-T": "Název",
"wikibase-pageinfo-entity-usage-C": "Tvrzení: $1",
"wikibase-pageinfo-entity-usage-X": "Všechny údaje entity",
@@ -95,7 +96,7 @@
"echo-category-title-wikibase-action": "{{PLURAL:$1|propojení}} s
{{GRAMMAR:7sg|{{WBREPONAME}}}}",
"echo-pref-tooltip-wikibase-action": "Upozorněte mě, když někdo propojí
stránku, kterou jsem {{GENDER:|vytvořil|vytvořila|vytvořil(a)}}, s položkou na
{{GRAMMAR:6sg|{{WBREPONAME}}}}.",
"notification-header-page-connection": "Stránka <strong>$3</strong>
byla {{GENDER:$2|propojena}} s položkou {{PLURAL:$4|-1=na
{{GRAMMAR:6sg|{{WBREPONAME}}}}|$4 na {{GRAMMAR:6sg|{{WBREPONAME}}}}}}, která
obsahuje údaje související s jejím tématem.",
- "notification-bundle-header-page-connection": "<strong>$3</strong> a
{{PLURAL:$4|jedna další stránka|$4 další stránka|$4 dalších stránek|100=více
než 99 dalších stránek}} byly {{GENDER:$2|propojeny}} s položkami na
{{GRAMMAR:6sg|{{WBREPONAME}}}}.",
+ "notification-bundle-header-page-connection": "<strong>$3</strong> a
{{PLURAL:$4|jedna další stránka|$4 další stránky|$4 dalších stránek|100=více
než 99 dalších stránek}} byly {{GENDER:$2|propojeny}} s položkami na
{{GRAMMAR:6sg|{{WBREPONAME}}}}.",
"notification-link-text-view-item": "{{GENDER:$1|Zobrazit}} položku",
"notification-subject-page-connection": "{{GENDER:$3|Vámi}} vytvořená
stránka na {{GRAMMAR:6sg|{{SITENAME}}}} byla {{GENDER:$2|propojena}} s položkou
na {{GRAMMAR:6sg|{{WBREPONAME}}}}",
"unresolved-property-category": "Stránky s nenalezenými vlastnostmi",
diff --git a/extensions/Wikibase/client/i18n/fr.json
b/extensions/Wikibase/client/i18n/fr.json
index 824940e..06aba61 100644
--- a/extensions/Wikibase/client/i18n/fr.json
+++ b/extensions/Wikibase/client/i18n/fr.json
@@ -145,7 +145,7 @@
"echo-pref-tooltip-wikibase-action": "M’avertir quand quelqu’un
connecte une page que {{GENDER:|j’ai créée}} à l’élément {{WBREPONAME}}.",
"notification-header-page-connection": "La page <strong>$3</strong> a
été {{GENDER:$2|reliée}} à {{PLURAL:$4|-1=un élément {{WBREPONAME}}|l'élément
{{WBREPONAME}} $4}}, qui contient les données relatives au sujet.",
"notification-bundle-header-page-connection": "<strong>$3</strong> et
{{PLURAL:$4|une autre page|$4 autres pages|100=99+ autres pages}} ont
{{GENDER:$2|relié}} à {{WBREPONAME}} articles.",
- "notification-link-text-view-item": "{{GENDER:$1|visualise}} la
notification",
+ "notification-link-text-view-item": "{{GENDER:$1|}}Afficher l'élément",
"notification-subject-page-connection": "Une page sur {{SITENAME}} que
vous avez {{GENDER:$3|créée}} a été {{GENDER:$2|reliée}} à l’élément
{{WBREPONAME}}",
"unresolved-property-category": "Pages avec des propriétés non
résolues",
"unresolved-property-category-desc": "Cette catégorie répertorie les
pages qui utilisent les propriétés {{WBREPONAME}} que l'on ne peut trouver ni
par l'identifiant de propriété (ID), ni par l'étiquette."
diff --git a/extensions/Wikibase/client/i18n/pl.json
b/extensions/Wikibase/client/i18n/pl.json
index 378d250..c202794 100644
--- a/extensions/Wikibase/client/i18n/pl.json
+++ b/extensions/Wikibase/client/i18n/pl.json
@@ -109,6 +109,7 @@
"wikibase-pageinfo-entity-usage": "Obiekty z Wikidanych użyte na tej
stronie",
"wikibase-pageinfo-entity-usage-S": "Link do strony",
"wikibase-pageinfo-entity-usage-L": "Etykieta: $1",
+ "wikibase-pageinfo-entity-usage-D": "Opis: $1",
"wikibase-pageinfo-entity-usage-T": "Tytuł",
"wikibase-pageinfo-entity-usage-C": "Deklaracja: $1",
"wikibase-pageinfo-entity-usage-X": "Wszystkie dane encji",
diff --git a/extensions/Wikibase/client/i18n/ru.json
b/extensions/Wikibase/client/i18n/ru.json
index cc7cdce..824d07c 100644
--- a/extensions/Wikibase/client/i18n/ru.json
+++ b/extensions/Wikibase/client/i18n/ru.json
@@ -24,15 +24,15 @@
"tooltip-t-wikibase": "Ссылка на связанный элемент репозитория данных",
"apihelp-query+wbentityusage-param-prop": "Свойства для включения в
результат",
"apihelp-query+wbentityusage-param-limit": "Сколько всего использований
сущности возвращать.",
- "apihelp-query+wblistentityusage-description": "Возвращает все
страницы, которые использовали указанные ID",
- "apihelp-query+wblistentityusage-param-prop": "Свойства для включения в
результат",
- "apihelp-query+wblistentityusage-paramvalue-prop-url": "Если
активирован, путь будет добавлен к сущности.",
+ "apihelp-query+wblistentityusage-description": "Возвращает все
страницы, которые используют идентификаторы указанной сущности.",
+ "apihelp-query+wblistentityusage-param-prop": "Свойства для включения в
результат.",
+ "apihelp-query+wblistentityusage-paramvalue-prop-url": "Если
активировано, URL сущности будет добавлен к результату запроса.",
"apihelp-query+wblistentityusage-param-aspect": "Возвращать только
идентификаторы, которые используются в данном аспекте.",
"apihelp-query+wblistentityusage-param-entities": "Сущности, которые
были использованы.",
- "apihelp-query+wblistentityusage-param-limit": "Сколько всего страниц
возвращать.",
- "apihelp-query+wblistentityusage-example-simple": "Получить страницы,
использующие <kbd>Q2</kbd> код",
- "apihelp-query+wblistentityusage-example-url": "Получить страницы,
использующие код <kbd>Q2</kbd> с учетом URL",
- "apihelp-query+wblistentityusage-example-aspect": "Получить страницы,
использующие код <kbd>Q2</kbd> и ссылающуюся на ссылку или веб-сайт.",
+ "apihelp-query+wblistentityusage-param-limit": "Сколько использований
сущностей возвращать.",
+ "apihelp-query+wblistentityusage-example-simple": "Получить страницы,
использующие сущность <kbd>Q2</kbd>.",
+ "apihelp-query+wblistentityusage-example-url": "Получить страницы,
использующие сущность <kbd>Q2</kbd> с учетом включения URL",
+ "apihelp-query+wblistentityusage-example-aspect": "Получить страницы,
использующие сущность <kbd>Q2</kbd> и ссылку на сайт или утверждение в качестве
аспекта.",
"apihelp-query+pageterms-example-label-en": "Получить метки и синонимы,
связанные с английской страницей «London»",
"apihelp-query+pageterms-example-item": "Получить обозначения и
псевдонимы элемента Q84.",
"apihelp-query+wikibase-description": "Получить сведения о клиенте
Wikibase и связанном хранилище Wikibase.",
@@ -91,11 +91,11 @@
"wikibase-pageswithbadges-legend": "Список страниц с заданным значком",
"wikibase-pageswithbadges-badge": "Значок:",
"wikibase-pageswithbadges-submit": "Показать страницы",
- "entityusage": "Использование форм",
- "entityusage-summary": "Эта страница содержит список всех страниц,
использующих данный объект (например, Q42). Этот список отсортирован по
убыванию ID страницы, новые страницы отображаются в списке первыми.",
- "wikibase-entityusage-invalid-id": "$1 — некорректный идентификатор
элемента",
- "wikibase-entityusage-legend": "Список страниц, использующих данную
форму",
- "wikibase-entityusage-entity": "Сущность",
+ "entityusage": "Использование сущности",
+ "entityusage-summary": "Эта страница содержит список всех страниц,
использующих данную сущность (например, Q42). Этот список отсортирован по
убыванию ID страницы, так что новые страницы отображаются в списке первыми.",
+ "wikibase-entityusage-invalid-id": "$1 — некорректный идентификатор
сущности",
+ "wikibase-entityusage-legend": "Список страниц, использующих данную
сущность",
+ "wikibase-entityusage-entity": "Сущность:",
"wikibase-entityusage-submit": "Показать страницы",
"wikibase-pageinfo-entity-id": "Идентификатор элемента в
{{grammar:genitive|{{WBREPONAME}}}}",
"wikibase-pageinfo-entity-id-none": "отсутствует",
diff --git a/extensions/Wikibase/client/i18n/th.json
b/extensions/Wikibase/client/i18n/th.json
index bd6936c..a6b7e36 100644
--- a/extensions/Wikibase/client/i18n/th.json
+++ b/extensions/Wikibase/client/i18n/th.json
@@ -10,7 +10,7 @@
"Aefgh39622"
]
},
- "tooltip-t-wikibase":
"ลิงก์ไปยังสิ่งนี้ในคลังซึ่งเก็บข้อมูลที่มีการเชื่อมโยงกัน",
+ "tooltip-t-wikibase": "ลิงก์ไปยังสิ่งนี้ในคลังซึ่งเชื่อมโยงข้อมูลต่างๆ
เข้าด้วยกัน",
"apihelp-query+wbentityusage-description":
"คืนค่ารหัสประจำรายการสนเทศทั้งหมดที่ใช้ในหน้าที่กำหนด",
"apihelp-query+wbentityusage-summary":
"คืนค่ารหัสประจำรายการสนเทศทั้งหมดที่ใช้ในหน้าที่กำหนด",
"apihelp-query+wbentityusage-param-prop":
"คุณลักษณะที่จะเพิ่มไปในผลลัพธ์",
@@ -26,9 +26,9 @@
"apihelp-query+wblistentityusage-example-url":
"ดึงหน้าที่เรียกใช้รายการสนเทศ <kbd>Q2</kbd> โดยรวม URL มาด้วย",
"apihelp-query+pageterms-example-item":
"ดึงค่าป้ายชื่อและชื่ออื่นของรายการ Q84",
"wikibase-comment-add": "รายการของสิ่งหนึ่งใน {{WBREPONAME}}
ได้ถูกสร้างขึ้น",
- "wikibase-comment-remove": "รายกาของสิ่งนี้ใน {{WBREPONAME}}
ได้ถูกลบออก. จึงลบลิงก์ข้ามภาษาออก.",
+ "wikibase-comment-remove": "รายการของสิ่งนี้ใน {{WBREPONAME}}
ได้ถูกลบออก. จึงลบลิงก์ข้ามภาษาออก.",
"wikibase-comment-linked": "รายการของสิ่งหนึ่งใน {{WBREPONAME}}
ได้เชื่อมโยงเข้ากับหน้านี้",
- "wikibase-comment-unlink":
"หน้านี้ถูได้กตัดการเชื่อมโยงออกจากรายการของสิ่งนั้นใน {{WBREPONAME}}.
จึงลบลิงก์ข้ามภาษาออก.",
+ "wikibase-comment-unlink":
"หน้านี้ได้ถูกตัดการเชื่อมโยงออกจากรายการของสิ่งนั้นใน {{WBREPONAME}}.
จึงลบลิงก์ข้ามภาษาออก.",
"wikibase-comment-restore": "รายการของสิ่งนี้ใน {{WBREPONAME}}
ได้ถูกกู้คืน. จึงเรียกคืนลิงก์ข้ามภาษา.",
"wikibase-comment-update": "เปลี่ยนแปลงสารสนเทศของสิ่งนี้ใน
{{WBREPONAME}} แล้ว",
"wikibase-comment-sitelink-add": "เพิ่มลิงก์ข้ามภาษาแล้ว: $1",
@@ -62,6 +62,7 @@
"wikibase-rc-wikibase-edit-title": "การแก้ไขบน {{WBREPONAME}}",
"wikibase-rcfilters-hide-wikibase-label": "การแก้ไขบน {{WBREPONAME}}",
"wikibase-rcfilters-hide-wikibase-description": "การแก้ไขที่เริ่มบน
{{WBREPONAME}}",
+ "wikibase-replicationnote":
"โปรดสังเกตว่าอาจใช้เวลาหลายนาทีจนกว่าการเปลี่ยนแปลงจะปรากฏบนวิกิทุกภาษา",
"wikibase-watchlist-show-changes-pref": "แสดงการแก้ไขบน {{WBREPONAME}}
ในรายการเฝ้าดูของคุณ",
"unconnectedpages": "หน้าที่ไม่ได้เชื่อมโยงกับสิ่งใดๆ ใน
{{WBREPONAME}}",
"wikibase-unconnectedpages-submit": "แสดงหน้า",
diff --git
a/extensions/Wikibase/client/includes/DataAccess/Scribunto/EntityAccessor.php
b/extensions/Wikibase/client/includes/DataAccess/Scribunto/EntityAccessor.php
index 4ddde71..ee878fc 100644
---
a/extensions/Wikibase/client/includes/DataAccess/Scribunto/EntityAccessor.php
+++
b/extensions/Wikibase/client/includes/DataAccess/Scribunto/EntityAccessor.php
@@ -2,6 +2,7 @@
namespace Wikibase\Client\DataAccess\Scribunto;
+use InvalidArgumentException;
use Language;
use Serializers\Serializer;
use Wikibase\Client\Serializer\ClientEntitySerializer;
@@ -11,10 +12,10 @@
use Wikibase\DataModel\Services\Lookup\EntityLookup;
use Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookup;
use Wikibase\DataModel\Entity\PropertyId;
+use Wikibase\DataModel\Statement\StatementListProvider;
use Wikibase\LanguageFallbackChain;
use Wikibase\Lib\ContentLanguages;
use Wikibase\Lib\Store\RevisionedUnresolvedRedirectException;
-use Wikimedia\Assert\Assert;
/**
* Functionality needed to expose Entities to Lua.
@@ -151,17 +152,11 @@
*
* @param string $prefixedEntityId
* @param string $propertyIdSerialization
- * @param string $bestStatementsOnly Either 'best' or 'all'
+ * @param string $rank Which statements to include. Either "best" or
"all".
*
* @return array|null
*/
- public function getEntityStatements( $prefixedEntityId,
$propertyIdSerialization, $bestStatementsOnly ) {
- Assert::parameter(
- in_array( $bestStatementsOnly, [ 'best', 'all' ] ),
- '$bestStatementsOnly',
- 'must be either "best" or "all", "' .
$bestStatementsOnly . '" given.'
- );
-
+ public function getEntityStatements( $prefixedEntityId,
$propertyIdSerialization, $rank ) {
$prefixedEntityId = trim( $prefixedEntityId );
$entityId = $this->entityIdParser->parse( $prefixedEntityId );
@@ -170,7 +165,7 @@
$this->usageAccumulator->addOtherUsage( $entityId );
try {
- $entityObject = $this->entityLookup->getEntity(
$entityId );
+ $entity = $this->entityLookup->getEntity( $entityId );
} catch ( RevisionedUnresolvedRedirectException $ex ) {
// We probably hit a double redirect
wfLogWarning(
@@ -180,22 +175,21 @@
return null;
}
- if ( $entityObject === null ) {
+ if ( !( $entity instanceof StatementListProvider ) ) {
return null;
}
- $statements = $entityObject->getStatements();
+ $statements = $entity->getStatements()->getByPropertyId(
$propertyId );
- $statementsProp = $statements->getByPropertyId( $propertyId );
-
- if ( $bestStatementsOnly === 'best' ) {
- $statementsProp = $statementsProp->getBestStatements();
+ if ( $rank === 'best' ) {
+ $statements = $statements->getBestStatements();
+ } elseif ( $rank !== 'all' ) {
+ throw new InvalidArgumentException( '$rank must be
"best" or "all", "' . $rank . '" given' );
}
- $statementArr =
$this->newClientStatementListSerializer()->serialize( $statementsProp );
- $this->renumber( $statementArr );
-
- return $statementArr;
+ $serialization =
$this->newClientStatementListSerializer()->serialize( $statements );
+ $this->renumber( $serialization );
+ return $serialization;
}
private function newClientEntitySerializer() {
diff --git
a/extensions/Wikibase/client/includes/DataAccess/Scribunto/Scribunto_LuaWikibaseLibrary.php
b/extensions/Wikibase/client/includes/DataAccess/Scribunto/Scribunto_LuaWikibaseLibrary.php
index 1a799a9..9dcc0df 100644
---
a/extensions/Wikibase/client/includes/DataAccess/Scribunto/Scribunto_LuaWikibaseLibrary.php
+++
b/extensions/Wikibase/client/includes/DataAccess/Scribunto/Scribunto_LuaWikibaseLibrary.php
@@ -15,7 +15,6 @@
use Wikibase\Client\WikibaseClient;
use Wikibase\DataModel\Entity\EntityIdParser;
use Wikibase\DataModel\Entity\EntityIdParsingException;
-use Wikibase\DataModel\SerializerFactory;
use Wikibase\DataModel\Services\Lookup\EntityAccessLimitException;
use Wikibase\LanguageFallbackChain;
use Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookup;
@@ -350,18 +349,18 @@
*
* @param string $prefixedEntityId
* @param string $propertyId
- * @param string $bestStatementsOnly Either 'best' or 'all'
+ * @param string $rank Which statements to include. Either "best" or
"all".
*
* @throws ScribuntoException
* @return array
*/
- public function getEntityStatements( $prefixedEntityId, $propertyId,
$bestStatementsOnly ) {
- $this->checkType( 'getEntityStatement', 1, $prefixedEntityId,
'string' );
- $this->checkType( 'getEntityStatement', 2, $propertyId,
'string' );
- $this->checkType( 'getEntityStatement', 3, $bestStatementsOnly,
'string' );
+ public function getEntityStatements( $prefixedEntityId, $propertyId,
$rank ) {
+ $this->checkType( 'getEntityStatements', 1, $prefixedEntityId,
'string' );
+ $this->checkType( 'getEntityStatements', 2, $propertyId,
'string' );
+ $this->checkType( 'getEntityStatements', 3, $rank, 'string' );
try {
- $statements =
$this->getEntityAccessor()->getEntityStatements( $prefixedEntityId,
$propertyId, $bestStatementsOnly );
+ $statements =
$this->getEntityAccessor()->getEntityStatements( $prefixedEntityId,
$propertyId, $rank );
} catch ( EntityAccessLimitException $ex ) {
throw new ScribuntoException(
'wikibase-error-exceeded-entity-access-limit' );
} catch ( EntityIdParsingException $ex ) {
diff --git
a/extensions/Wikibase/client/includes/DataAccess/Scribunto/mw.wikibase.lua
b/extensions/Wikibase/client/includes/DataAccess/Scribunto/mw.wikibase.lua
index 039f21f..19a40d2 100644
--- a/extensions/Wikibase/client/includes/DataAccess/Scribunto/mw.wikibase.lua
+++ b/extensions/Wikibase/client/includes/DataAccess/Scribunto/mw.wikibase.lua
@@ -75,7 +75,7 @@
entity = php.getEntity( id )
if id ~= wikibase.getEntityIdForCurrentPage() then
- -- Accessing an arbitrary item is supposed to
increment the expensive function count
+ -- Accessing an arbitrary entity is supposed to
increment the expensive function count
php.incrementExpensiveFunctionCount()
end
@@ -126,7 +126,7 @@
end
if not php.getSetting( 'allowArbitraryDataAccess' ) and id ~=
wikibase.getEntityIdForCurrentPage() then
- error( 'Access to arbitrary items has been disabled.',
2 )
+ error( 'Access to arbitrary entities has been
disabled.', 2 )
end
return getEntityObject( id )
@@ -135,39 +135,41 @@
-- getEntityObject is an alias for getEntity as these used to be
different.
wikibase.getEntityObject = wikibase.getEntity
- -- Get statements for the specified entityId and propertyId.
- --
-- @param {string} entityId
-- @param {string} propertyId
- -- @param {string} bestStatementsOnly Which statements to include:
Either "best" or "all"
- local getEntityStatements = function( entityId, propertyId, funcName,
bestStatementsOnly )
+ -- @param {string} rank Which statements to include. Either "best" or
"all".
+ local getEntityStatements = function( entityId, propertyId, funcName,
rank )
if not php.getSetting( 'allowArbitraryDataAccess' ) and
entityId ~= wikibase.getEntityIdForCurrentPage() then
- error( 'Access to arbitrary items has been disabled.',
2 )
+ error( 'Access to arbitrary entities has been
disabled.', 2 )
end
checkType( funcName, 1, entityId, 'string' )
checkType( funcName, 2, propertyId, 'string' )
- local statements = php.getEntityStatements( entityId,
propertyId, bestStatementsOnly )
- if statements == nil or statements[propertyId] == nil then
- return {}
- else
+ local statements = php.getEntityStatements( entityId,
propertyId, rank )
+ if statements and statements[propertyId] then
return statements[propertyId]
end
+
+ return {}
end
- -- Get the best statements for the specified entityId and propertyId.
+ -- Returns a table with the "best" statements matching the given
property ID on the given entity
+ -- ID. The definition of "best" is that the function will return
"preferred" statements, if
+ -- there are any, otherwise "normal" ranked statements. It will never
return "deprecated"
+ -- statements. This is what you usually want when surfacing values to
an ordinary reader.
--
- -- @param {string} [entityId]
- -- @param {string} [propertyId]
+ -- @param {string} entityId
+ -- @param {string} propertyId
wikibase.getBestStatements = function( entityId, propertyId )
return getEntityStatements( entityId, propertyId,
'getBestStatements', 'best' )
end
- -- Get all statements for the specified entityId and propertyId.
+ -- Returns a table with all statements (including all ranks, even
"deprecated") matching the
+ -- given property ID on the given entity ID.
--
- -- @param {string} [entityId]
- -- @param {string} [propertyId]
+ -- @param {string} entityId
+ -- @param {string} propertyId
wikibase.getAllStatements = function( entityId, propertyId )
return getEntityStatements( entityId, propertyId,
'getAllStatements', 'all' )
end
diff --git
a/extensions/Wikibase/client/includes/Hooks/EchoNotificationsHandlers.php
b/extensions/Wikibase/client/includes/Hooks/EchoNotificationsHandlers.php
index 60bbf33..f4110d2 100644
--- a/extensions/Wikibase/client/includes/Hooks/EchoNotificationsHandlers.php
+++ b/extensions/Wikibase/client/includes/Hooks/EchoNotificationsHandlers.php
@@ -52,11 +52,6 @@
private $sendEchoNotification;
/**
- * @var array|false
- */
- private $echoIcon;
-
- /**
* @var string
*/
private $repoSiteName;
@@ -66,7 +61,6 @@
* @param NamespaceChecker $namespaceChecker
* @param string $siteId
* @param bool $sendEchoNotification
- * @param array|false $echoIcon
* @param string $repoSiteName
*/
public function __construct(
@@ -74,14 +68,12 @@
NamespaceChecker $namespaceChecker,
$siteId,
$sendEchoNotification,
- $echoIcon,
$repoSiteName
) {
$this->repoLinker = $repoLinker;
$this->namespaceChecker = $namespaceChecker;
$this->siteId = $siteId;
$this->sendEchoNotification = $sendEchoNotification;
- $this->echoIcon = $echoIcon;
$this->repoSiteName = $repoSiteName;
}
@@ -97,68 +89,8 @@
$wikibaseClient->getNamespaceChecker(),
$settings->getSetting( 'siteGlobalID' ),
$settings->getSetting( 'sendEchoNotification' ),
- $settings->getSetting( 'echoIcon' ),
$settings->getSetting( 'repoSiteName' )
);
- }
-
- /**
- * Handler for BeforeCreateEchoEvent hook
- * @see
https://www.mediawiki.org/wiki/Extension:Echo/BeforeCreateEchoEvent
- * @see doBeforeCreateEchoEvent
- *
- * @param array[] &$notifications
- * @param array[] &$notificationCategories
- * @param array[] &$icons
- */
- public static function onBeforeCreateEchoEvent(
- array &$notifications,
- array &$notificationCategories,
- array &$icons
- ) {
- $self = self::newFromGlobalState();
- $self->doBeforeCreateEchoEvent( $notifications,
$notificationCategories, $icons );
- }
-
- /**
- * @see https://www.mediawiki.org/wiki/Notifications/Developer_guide
- *
- * @param array[] &$notifications
- * @param array[] &$notificationCategories
- * @param array[] &$icons
- */
- public function doBeforeCreateEchoEvent(
- array &$notifications,
- array &$notificationCategories,
- array &$icons
- ) {
- if ( $this->sendEchoNotification !== true ) {
- return;
- }
-
- $notificationCategories['wikibase-action'] = [
- 'priority' => 5,
- 'tooltip' => 'echo-pref-tooltip-wikibase-action',
- ];
-
- $notifications[self::NOTIFICATION_TYPE] = [
- EchoAttributeManager::ATTR_LOCATORS => [
- EchoUserLocator::class .
'::locateArticleCreator',
- ],
- 'category' => 'wikibase-action',
- 'group' => 'neutral',
- 'section' => 'message',
- 'presentation-model' =>
PageConnectionPresentationModel::class,
- 'bundle' => [ 'web' => true, 'email' => false ],
- ];
-
- if ( !empty( $this->echoIcon ) ) {
- $icons[self::NOTIFICATION_TYPE] = $this->echoIcon;
- } else {
- preg_match( '+/extensions/(.*)+', __DIR__,
$remoteExtPath );
- $iconPath = $remoteExtPath[1] .
'/../../resources/images/echoIcon.svg';
- $icons[self::NOTIFICATION_TYPE] = [ 'path' => $iconPath
];
- }
}
/**
diff --git
a/extensions/Wikibase/client/includes/Hooks/EchoSetupHookHandlers.php
b/extensions/Wikibase/client/includes/Hooks/EchoSetupHookHandlers.php
new file mode 100644
index 0000000..44beed4
--- /dev/null
+++ b/extensions/Wikibase/client/includes/Hooks/EchoSetupHookHandlers.php
@@ -0,0 +1,110 @@
+<?php
+
+namespace Wikibase\Client\Hooks;
+
+use EchoAttributeManager;
+use EchoUserLocator;
+use Wikibase\Client\Notifications\PageConnectionPresentationModel;
+use Wikibase\WikibaseSettings;
+
+/**
+ * Handlers for hooks (e.g. BeforeCreateEchoEvent) called when Echo extension
+ * is initialized, so on every page load.
+ *
+ * @license GPL-2.0+
+ * @author Matěj Suchánek
+ * @author Katie Filbert < [email protected] >
+ */
+class EchoSetupHookHandlers {
+
+ /**
+ * @var bool
+ */
+ private $sendEchoNotification;
+
+ /**
+ * @var array|false
+ */
+ private $echoIcon;
+
+ /**
+ * @param bool $sendEchoNotification
+ * @param array|false $echoIcon
+ */
+ public function __construct( $sendEchoNotification, $echoIcon ) {
+ $this->sendEchoNotification = $sendEchoNotification;
+ $this->echoIcon = $echoIcon;
+ }
+
+ /**
+ * @return self
+ */
+ public static function newFromGlobalState() {
+ $settings = WikibaseSettings::getClientSettings();
+
+ return new self(
+ $settings->getSetting( 'sendEchoNotification' ),
+ $settings->getSetting( 'echoIcon' )
+ );
+ }
+
+ /**
+ * Handler for BeforeCreateEchoEvent hook
+ * @see
https://www.mediawiki.org/wiki/Extension:Echo/BeforeCreateEchoEvent
+ * @see doBeforeCreateEchoEvent
+ *
+ * @param array[] &$notifications
+ * @param array[] &$notificationCategories
+ * @param array[] &$icons
+ */
+ public static function onBeforeCreateEchoEvent(
+ array &$notifications,
+ array &$notificationCategories,
+ array &$icons
+ ) {
+ $self = self::newFromGlobalState();
+ $self->doBeforeCreateEchoEvent( $notifications,
$notificationCategories, $icons );
+ }
+
+ /**
+ * @see https://www.mediawiki.org/wiki/Notifications/Developer_guide
+ *
+ * @param array[] &$notifications
+ * @param array[] &$notificationCategories
+ * @param array[] &$icons
+ */
+ public function doBeforeCreateEchoEvent(
+ array &$notifications,
+ array &$notificationCategories,
+ array &$icons
+ ) {
+ if ( $this->sendEchoNotification !== true ) {
+ return;
+ }
+
+ $notificationCategories['wikibase-action'] = [
+ 'priority' => 5,
+ 'tooltip' => 'echo-pref-tooltip-wikibase-action',
+ ];
+
+ $notifications[EchoNotificationsHandlers::NOTIFICATION_TYPE] = [
+ EchoAttributeManager::ATTR_LOCATORS => [
+ EchoUserLocator::class .
'::locateArticleCreator',
+ ],
+ 'category' => 'wikibase-action',
+ 'group' => 'neutral',
+ 'section' => 'message',
+ 'presentation-model' =>
PageConnectionPresentationModel::class,
+ 'bundle' => [ 'web' => true, 'email' => false ],
+ ];
+
+ if ( !empty( $this->echoIcon ) ) {
+ $icons[EchoNotificationsHandlers::NOTIFICATION_TYPE] =
$this->echoIcon;
+ } else {
+ preg_match( '+/extensions/(.*)+', __DIR__,
$remoteExtPath );
+ $iconPath = $remoteExtPath[1] .
'/../../resources/images/echoIcon.svg';
+ $icons[EchoNotificationsHandlers::NOTIFICATION_TYPE] =
[ 'path' => $iconPath ];
+ }
+ }
+
+}
diff --git
a/extensions/Wikibase/client/includes/Serializer/ClientEntitySerializer.php
b/extensions/Wikibase/client/includes/Serializer/ClientEntitySerializer.php
index ef9908b..1aad985 100644
--- a/extensions/Wikibase/client/includes/Serializer/ClientEntitySerializer.php
+++ b/extensions/Wikibase/client/includes/Serializer/ClientEntitySerializer.php
@@ -7,7 +7,6 @@
use Wikibase\DataModel\Entity\EntityDocument;
use Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookup;
use Wikibase\LanguageFallbackChain;
-use Wikibase\Lib\Serialization\SerializationModifier;
/**
* @license GPL-2.0+
@@ -43,6 +42,7 @@
array $fallbackChains
) {
parent::__construct( $dataTypeLookup );
+
$this->filterLangCodes = $filterLangCodes;
$this->entitySerializer = $entitySerializer;
$this->fallbackChains = $fallbackChains;
@@ -83,6 +83,7 @@
$serialization['descriptions'] =
$this->getTermsSerializationWithFallbackInfo(
$serialization['descriptions']
);
+
return $serialization;
}
@@ -107,6 +108,7 @@
}
}
}
+
return $newSerialization;
}
@@ -141,6 +143,7 @@
}
}
}
+
return $serialization;
}
diff --git
a/extensions/Wikibase/client/includes/Serializer/ClientSerializer.php
b/extensions/Wikibase/client/includes/Serializer/ClientSerializer.php
index 8db85ea..1103654 100644
--- a/extensions/Wikibase/client/includes/Serializer/ClientSerializer.php
+++ b/extensions/Wikibase/client/includes/Serializer/ClientSerializer.php
@@ -28,18 +28,18 @@
*/
private $callbackFactory;
- /**
- * @param PropertyDataTypeLookup $dataTypeLookup
- */
- public function __construct(
- PropertyDataTypeLookup $dataTypeLookup
- ) {
+ public function __construct( PropertyDataTypeLookup $dataTypeLookup ) {
$this->dataTypeLookup = $dataTypeLookup;
$this->modifier = new SerializationModifier();
$this->callbackFactory = new CallbackFactory();
}
+ /**
+ * @param array $serialization
+ *
+ * @return array
+ */
protected function omitEmptyArrays( array $serialization ) {
return array_filter(
$serialization,
diff --git
a/extensions/Wikibase/client/includes/Serializer/ClientStatementListSerializer.php
b/extensions/Wikibase/client/includes/Serializer/ClientStatementListSerializer.php
index 7109e3b..00440c1 100644
---
a/extensions/Wikibase/client/includes/Serializer/ClientStatementListSerializer.php
+++
b/extensions/Wikibase/client/includes/Serializer/ClientStatementListSerializer.php
@@ -5,7 +5,7 @@
use Serializers\Exceptions\SerializationException;
use Serializers\Serializer;
use Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookup;
-use Wikibase\Lib\Serialization\SerializationModifier;
+use Wikibase\DataModel\Statement\StatementList;
/**
* @license GPL-2.0+
@@ -16,18 +16,19 @@
/**
* @var Serializer
*/
- private $statementSerializer;
+ private $statementListSerializer;
/**
- * @param Serializer $entitySerializer
+ * @param Serializer $statementListSerializer
* @param PropertyDataTypeLookup $dataTypeLookup
*/
public function __construct(
- Serializer $statementSerializer,
+ Serializer $statementListSerializer,
PropertyDataTypeLookup $dataTypeLookup
) {
parent::__construct( $dataTypeLookup );
- $this->statementSerializer = $statementSerializer;
+
+ $this->statementListSerializer = $statementListSerializer;
}
/**
@@ -39,7 +40,7 @@
* @return array
*/
public function serialize( $statementList ) {
- $serialization = $this->statementSerializer->serialize(
$statementList );
+ $serialization = $this->statementListSerializer->serialize(
$statementList );
$serialization = $this->injectSerializationWithDataTypes(
$serialization, '' );
diff --git
a/extensions/Wikibase/client/tests/phpunit/includes/DataAccess/Scribunto/LuaWikibaseLibraryNoArbitraryAccessTests.lua
b/extensions/Wikibase/client/tests/phpunit/includes/DataAccess/Scribunto/LuaWikibaseLibraryNoArbitraryAccessTests.lua
index 1139818..2f576ef 100644
---
a/extensions/Wikibase/client/tests/phpunit/includes/DataAccess/Scribunto/LuaWikibaseLibraryNoArbitraryAccessTests.lua
+++
b/extensions/Wikibase/client/tests/phpunit/includes/DataAccess/Scribunto/LuaWikibaseLibraryNoArbitraryAccessTests.lua
@@ -12,8 +12,16 @@
{ name = "mw.wikibase.getEntityObject (foreign access)", func =
mw.wikibase.getEntityObject,
args = { 'Q42' },
- expect = 'Access to arbitrary items has been disabled.'
- }
+ expect = 'Access to arbitrary entities has been disabled.'
+ },
+ { name = "mw.wikibase.getBestStatements (foreign access)", func =
mw.wikibase.getBestStatements,
+ args = { 'Q42', 'P12' },
+ expect = 'Access to arbitrary entities has been disabled.'
+ },
+ { name = "mw.wikibase.getAllStatements (foreign access)", func =
mw.wikibase.getAllStatements,
+ args = { 'Q42', 'P12' },
+ expect = 'Access to arbitrary entities has been disabled.'
+ },
}
return testframework.getTestProvider( tests )
diff --git
a/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoNotificationsHandlersTest.php
b/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoNotificationsHandlersTest.php
index ef7cd45..68ae3eb 100644
---
a/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoNotificationsHandlersTest.php
+++
b/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoNotificationsHandlersTest.php
@@ -67,7 +67,6 @@
$this->namespaceChecker,
$settings->getSetting( 'siteGlobalID' ),
$settings->getSetting( 'sendEchoNotification' ),
- $settings->getSetting( 'echoIcon' ),
'repoSiteName'
);
}
@@ -174,68 +173,6 @@
);
}
- public function beforeCreateEchoEventProvider() {
- return [
- 'no registration' => [
- 'register' => false,
- 'icon' => false,
- 'expectedIcon' => false,
- ],
- 'registered with optional icon' => [
- 'register' => true,
- 'icon' => [ 'url' => 'some_url_here' ],
- 'expectedIcon' => [ 'url' => 'some_url_here' ],
- ],
- 'registered with default icon' => [
- 'register' => true,
- 'icon' => false,
- 'expectedIcon' => [ 'path' =>
'Wikibase/client/includes/Hooks/../../resources/images/echoIcon.svg' ],
- ]
- ];
- }
-
- /**
- * @dataProvider beforeCreateEchoEventProvider
- */
- public function testBeforeCreateEchoEvent( $register, $icon,
$expectedIcon ) {
- $notifications = [];
- $categories = [];
- $icons = [];
-
- $handlers = new EchoNotificationsHandlers(
- $this->repoLinker,
- $this->namespaceChecker,
- 'enwiki',
- $register,
- $icon,
- 'repoSiteName'
- );
-
- $handlers->doBeforeCreateEchoEvent( $notifications,
$categories, $icons );
-
- $this->assertSame( $register, isset(
$notifications[$handlers::NOTIFICATION_TYPE] ) );
- $this->assertSame( $register, isset(
$categories['wikibase-action'] ) );
- $this->assertSame( $register, isset(
$icons[$handlers::NOTIFICATION_TYPE] ) );
-
- if ( $register ) {
- if ( isset( $expectedIcon['path'] ) ) {
- $this->assertSame(
- array_keys( $expectedIcon ),
- array_keys(
$icons[$handlers::NOTIFICATION_TYPE] )
- );
- $this->assertStringEndsWith(
- $expectedIcon['path'],
-
$icons[$handlers::NOTIFICATION_TYPE]['path']
- );
- } else {
- $this->assertSame(
- $expectedIcon,
- $icons[$handlers::NOTIFICATION_TYPE]
- );
- }
- }
- }
-
public function localUserCreatedProvider() {
return [
'disabled no auto' => [
@@ -270,7 +207,6 @@
$this->namespaceChecker,
'enwiki',
$enabled,
- '',
'repoSiteName'
);
diff --git
a/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoSetupHookHandlersTest.php
b/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoSetupHookHandlersTest.php
new file mode 100644
index 0000000..bdc22c7
--- /dev/null
+++
b/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoSetupHookHandlersTest.php
@@ -0,0 +1,78 @@
+<?php
+
+namespace Wikibase\Client\Tests\Hooks;
+
+use EchoEvent;
+use MediaWikiTestCase;
+use Wikibase\Client\Hooks\EchoNotificationsHandlers;
+use Wikibase\Client\Hooks\EchoSetupHookHandlers;
+
+/**
+ * @covers Wikibase\Client\Hooks\EchoSetupHookHandlers
+ *
+ * @group Database
+ * @group WikibaseClient
+ * @group Wikibase
+ */
+class EchoSetupHookHandlersTest extends MediaWikiTestCase {
+
+ public function beforeCreateEchoEventProvider() {
+ return [
+ 'no registration' => [
+ 'register' => false,
+ 'icon' => false,
+ 'expectedIcon' => false,
+ ],
+ 'registered with optional icon' => [
+ 'register' => true,
+ 'icon' => [ 'url' => 'some_url_here' ],
+ 'expectedIcon' => [ 'url' => 'some_url_here' ],
+ ],
+ 'registered with default icon' => [
+ 'register' => true,
+ 'icon' => false,
+ 'expectedIcon' => [ 'path' =>
'Wikibase/client/includes/Hooks/../../resources/images/echoIcon.svg' ],
+ ]
+ ];
+ }
+
+ /**
+ * @dataProvider beforeCreateEchoEventProvider
+ */
+ public function testBeforeCreateEchoEvent( $register, $icon,
$expectedIcon ) {
+ if ( !class_exists( EchoEvent::class ) ) {
+ $this->markTestSkipped( "Echo not loaded" );
+ }
+
+ $notifications = [];
+ $categories = [];
+ $icons = [];
+
+ $handlers = new EchoSetupHookHandlers( $register, $icon );
+
+ $handlers->doBeforeCreateEchoEvent( $notifications,
$categories, $icons );
+
+ $this->assertSame( $register, isset(
$notifications[EchoNotificationsHandlers::NOTIFICATION_TYPE] ) );
+ $this->assertSame( $register, isset(
$categories['wikibase-action'] ) );
+ $this->assertSame( $register, isset(
$icons[EchoNotificationsHandlers::NOTIFICATION_TYPE] ) );
+
+ if ( $register ) {
+ if ( isset( $expectedIcon['path'] ) ) {
+ $this->assertSame(
+ array_keys( $expectedIcon ),
+ array_keys(
$icons[EchoNotificationsHandlers::NOTIFICATION_TYPE] )
+ );
+ $this->assertStringEndsWith(
+ $expectedIcon['path'],
+
$icons[EchoNotificationsHandlers::NOTIFICATION_TYPE]['path']
+ );
+ } else {
+ $this->assertSame(
+ $expectedIcon,
+
$icons[EchoNotificationsHandlers::NOTIFICATION_TYPE]
+ );
+ }
+ }
+ }
+
+}
diff --git
a/extensions/Wikibase/client/tests/phpunit/includes/Notifications/PageConnectionPresentationModelTest.php
b/extensions/Wikibase/client/tests/phpunit/includes/Notifications/PageConnectionPresentationModelTest.php
index c2ae5ec..3bbf070 100644
---
a/extensions/Wikibase/client/tests/phpunit/includes/Notifications/PageConnectionPresentationModelTest.php
+++
b/extensions/Wikibase/client/tests/phpunit/includes/Notifications/PageConnectionPresentationModelTest.php
@@ -9,9 +9,8 @@
use Title;
use User;
use Wikibase\Client\Hooks\EchoNotificationsHandlers;
-use Wikibase\Client\NamespaceChecker;
+use Wikibase\Client\Hooks\EchoSetupHookHandlers;
use Wikibase\Client\Notifications\PageConnectionPresentationModel;
-use Wikibase\Client\RepoLinker;
/**
* @covers Wikibase\Client\Notifications\PageConnectionPresentationModel
@@ -61,34 +60,12 @@
return $event;
}
- /**
- * @return RepoLinker
- */
- private function getRepoLinker() {
- $repoLinker = $this->getMockBuilder( RepoLinker::class )
- ->disableOriginalConstructor()
- ->getMock();
- $repoLinker
- ->expects( $this->any() )
- ->method( 'getEntityUrl' )
- ->will( $this->returnValue( 'foo' ) );
-
- return $repoLinker;
- }
-
public function testPresentationModel() {
global $wgEchoNotifications, $wgEchoNotificationCategories,
$wgEchoNotificationIcons;
- $namespaceChecker = $this->getMockBuilder(
NamespaceChecker::class )
- ->disableOriginalConstructor()
- ->getMock();
- $handlers = new EchoNotificationsHandlers(
- $this->getRepoLinker(),
- $namespaceChecker,
- 'enwiki',
+ $handlers = new EchoSetupHookHandlers(
true,
- false,
- 'repoSiteName'
+ false
);
$handlers->doBeforeCreateEchoEvent(
$wgEchoNotifications, $wgEchoNotificationCategories,
$wgEchoNotificationIcons
@@ -134,9 +111,9 @@
$this->assertInternalType( 'array', $model->getSecondaryLinks()
);
$this->assertInstanceOf( Message::class,
$model->getSubjectMessage() );
- unset( $wgEchoNotifications[$handlers::NOTIFICATION_TYPE] );
+ unset(
$wgEchoNotifications[EchoNotificationsHandlers::NOTIFICATION_TYPE] );
unset( $wgEchoNotificationCategories['wikibase-action'] );
- unset( $wgEchoNotificationIcons[$handlers::NOTIFICATION_TYPE] );
+ unset(
$wgEchoNotificationIcons[EchoNotificationsHandlers::NOTIFICATION_TYPE] );
}
}
diff --git a/extensions/Wikibase/docs/lua.wiki
b/extensions/Wikibase/docs/lua.wiki
index f6d041a..c010932 100644
--- a/extensions/Wikibase/docs/lua.wiki
+++ b/extensions/Wikibase/docs/lua.wiki
@@ -180,22 +180,20 @@
=== mw.wikibase.getBestStatements ===
<code>wikibase.getBestStatements( entityId, propertyId )</code><br>
-Returns a table with the best statements for the given entity ID and property
ID.
-
+Returns a table with the "best" statements matching the given property ID on
the given entity ID. The definition of "best" is that the function will return
"preferred" statements, if there are any, otherwise "normal" ranked statements.
It will never return "deprecated" statements. This is what you usually want
when surfacing values to an ordinary reader.
An example call might look like this:
<source lang="lua">
-mw.wikibase.getBestStatements( 'Q1', 'P12' ) -- Returns a table containing the
serialization of the best statements with the property id P12 of Q1
+mw.wikibase.getBestStatements( 'Q1', 'P12' ) -- Returns a table containing the
serialization of P12 statements from Q1
</source>
=== mw.wikibase.getAllStatements ===
<code>wikibase.getAllStatements( entityId, propertyId )</code><br>
-Returns a table with all statements (even "deprecated" ones) for the given
entity ID and property ID.
-
+Returns a table with all statements (including all ranks, even "deprecated")
matching the given property ID on the given entity ID.
An example call might look like this:
<source lang="lua">
-mw.wikibase.getAllStatements( 'Q1', 'P12' ) -- Returns a table containing the
serialization of the statements with the property id P12 of Q1
+mw.wikibase.getAllStatements( 'Q1', 'P12' ) -- Returns a table containing the
serialization of P12 statements from Q1
</source>
== mw.wikibase.entity ==
diff --git a/extensions/Wikibase/lib/i18n/ais.json
b/extensions/Wikibase/lib/i18n/ais.json
index 80771f1..19a877e 100644
--- a/extensions/Wikibase/lib/i18n/ais.json
+++ b/extensions/Wikibase/lib/i18n/ais.json
@@ -10,6 +10,7 @@
"wikibase-deletedentity-property": "masiputu tu susin",
"wikibase-deletedentity-query": "masiputu tu palalitemuh tu kawaw",
"wikibase-error-unexpected": "mungangaw: $1.",
+ "wikibase-error-autocomplete-connection": "a’cus palalitemuh tu kawaw
nu calay-kakacawan(wangcan) API. sawsawni mitanam aca",
"wikibase-error-autocomplete-response": "sefuci-kikay patukil: $1",
"wikibase-quantitydetails-amount": "pulung sausi",
"wikibase-quantitydetails-upperbound": "sakapabaway a sausi",
@@ -40,12 +41,16 @@
"wikibase-validator-invalid": "la’cusay a sulyang",
"wikibase-validator-missing-field": "caay kataneng suliten naca
pisinga’an \"$1\"",
"wikibase-validator-bad-type": "pisaungay $2 mibalic $1",
+ "wikibase-validator-too-high": "mangasiw,amana mangsiw $1",
+ "wikibase-validator-too-low": "magnasiw, amana ma’ngadis mangalep $1",
"wikibase-validator-malformed-value": "sulit kese caay katatenga’: $1",
"wikibase-validator-bad-entity-id": "ID kese caay katatenga’: $1",
+ "wikibase-validator-bad-entity-type": "talibahalay a masaheciay
nikalahizaan $1",
"wikibase-validator-no-such-entity": "caykatepa $1",
"wikibase-validator-bad-value": "kalunasulitan sulyang mungangaw: $1",
"wikibase-validator-bad-value-type": "mungangaw kakuniza-sulyang $1,
talaayaway mazateng ku $2",
"wikibase-validator-bad-data-type": "mungangaway a kalunasulitan
nikalahizaan: $1",
+ "wikibase-validator-bad-url-scheme": "URL ketun \"$1\" caay pamadama.",
"wikibase-validator-unknown-unit": "caay kapulita tatebanan-nisulitan
$1",
"wikibase-validator-not-allowed": "caay kalikecay a sulyang: $1",
"wikibase-validator-no-validators": "satezep",
@@ -67,6 +72,7 @@
"wikibase-entity-summary-wbeditentity-update": "masumaday tu ku cacay
masaheciay",
"wikibase-entity-summary-wbeditentity-override": "malamadac tu ku cacay
masaheciay",
"wikibase-entity-summary-wbsetreference": "misetin miazih tu tatenga’ay
nasulitan",
+ "wikibase-entity-summary-wbsetreference-add": "micunus miazih tu
tatenga’ay nasulitan tayza saleku",
"wikibase-entity-summary-wbsetreference-set": "misumad saleku a miazih
tu tatenga’ay nasulitan tuway",
"wikibase-entity-summary-wbsetlabel-add": "macunus tu [$2] aazihen a
paya",
"wikibase-entity-summary-wbsetlabel-set": "masumad tu [$2] aazihen a
paya",
@@ -74,12 +80,22 @@
"wikibase-entity-summary-wbsetdescription-add": "macunus tu [$2]
sapuelac",
"wikibase-entity-summary-wbsetdescription-set": "masumad tu [$2]
sapuelac",
"wikibase-entity-summary-wbsetdescription-remove": "masipu tuway [$2]
sapuelac",
+ "wikibase-entity-summary-wbsetlabeldescriptionaliases": "misumad [$2]
aazihen-paya, sapuelac atu pacimilay ngangan",
"wikibase-entity-summary-wbsetsitelink-add": "macunus tu masasiket
tayza i [$2]",
+ "wikibase-entity-summary-wbsetsitelink-add-both": "macunus saungay
kunpay a siket tayza [$2]",
"wikibase-entity-summary-wbsetsitelink-set": "masumad tu masasiket
tayza i [$2]",
+ "wikibase-entity-summary-wbsetsitelink-set-badges": "masumad tuway [$2]
a kunpay",
"wikibase-entity-summary-wbsetsitelink-set-both": "masumad [$2] a siket
atu kunpay",
"wikibase-entity-summary-wbsetsitelink-remove": "misipu masasiket tayza
[$2] tuway",
"wikibase-entity-summary-wblinktitles-create": "napatizeng tu tina
masaheciay sapipapatun kasabelih",
+ "wikibase-entity-summary-wblinktitles-connect": "macunus tu cacay
masasiket nu kamu kyu papatun kasabelih",
"wikibase-entity-summary-wbcreateclaim-create": "patizeng tu saleku",
+ "wikibase-entity-summary-wbsetclaim-update": "masumad
{{PLURAL:$3|saleku}} tuway",
+ "wikibase-entity-summary-clientsitelink-update": "kasabelih malimad tu
nay [$3] tayza [$4]",
+ "wikibase-entity-summary-clientsitelink-remove": "[$3] a kasabelih
masipu tuway",
+ "wikibase-entity-summary-wbsetqualifier-add": "macunus
{{PLURAL:$1|asip-sulit}} tuway",
+ "wikibase-entity-summary-wbsetqualifier-update":
"masumad{{PLURAL:$1|asip-sulit}} tuway",
+ "wikibase-entity-summary-wbremovequalifiers-remove": "masipu
{{PLURAL:$1|asip-sulit}}",
"wikibase-entity-summary-wbmergeitems-from": "makabu kasacacay nay $3",
"wikibase-entity-summary-wbmergeitems-to": "makabu kasacacay ta $3",
"wikibase-item-summary-wbcreate-new": "patizeng tuway baluhay
kasacacay",
@@ -87,6 +103,7 @@
"wikibase-item-summary-wbeditentity-update": "masumad tuway kasacacay",
"wikibase-item-summary-wbeditentity-override": "palwpes tuway ku
kasacacay",
"wikibase-item-summary-wblinktitles-create": "napatizeng tu tina
kasacacay sapipapatun kasabelih",
+ "wikibase-item-summary-wblinktitles-connect": "macunus tu cacay
masasiket nu kamu kyu papatun kasabelih",
"wikibase-property-summary-wbcreate-new": "patizeng tuway baluhay
susin",
"wikibase-property-summary-wbeditentity-update": "susin masumad tuway",
"wikibase-property-summary-wbeditentity-override": "palawpes tuway ku
susin"
diff --git a/extensions/Wikibase/lib/i18n/az.json
b/extensions/Wikibase/lib/i18n/az.json
index 5ab42ef..a34166f 100644
--- a/extensions/Wikibase/lib/i18n/az.json
+++ b/extensions/Wikibase/lib/i18n/az.json
@@ -2,9 +2,11 @@
"@metadata": {
"authors": [
"Eminn",
- "Dağlı95"
+ "Dağlı95",
+ "Wertuose"
]
},
"wikibase-error-unexpected": "Xəta: $1",
- "wikibase-sitelinks-wikipedia": "Vikipediya"
+ "wikibase-sitelinks-wikipedia": "Vikipediya",
+ "wikibase-validator-no-such-property": "$1 xüsusiyyəti tapılmadı"
}
diff --git a/extensions/Wikibase/repo/i18n/ais.json
b/extensions/Wikibase/repo/i18n/ais.json
index 529ac6e..7a4bcc2 100644
--- a/extensions/Wikibase/repo/i18n/ais.json
+++ b/extensions/Wikibase/repo/i18n/ais.json
@@ -60,25 +60,35 @@
"wikibase-partial-undo": "liyad nu mikawaway-kalumyiti kapah patiku.",
"wikibase-empty-undo": "itini inayi’ ku patiku a sumad.",
"wikibase-undo-revision-error": "patiku mungangaw",
+ "wikibase-undo-samerev": "apatiku mikawaway-kalumyiti kanca matuzu’
tusa caay kalecaday a sumad.",
"wikibase-undo-firstrev": "la’cus patiku kasabelih patizengay a
saungay",
+ "wikibase-undo-nocontent": "la’cus miasip kasabelihay a $1 masumad nu
ayaway $2 a lacul",
"wikibase-disambiguation-title": "\"$1\" a caayay kalecad azihen",
+ "wikibase-aliases-input-help-message": "anu maydih kisu tina kasacacay
dayum mikilim, kapah kisu misulit pacimilay ngangan.",
"wikibase-propertypage-datatype": "kalunasulitan a kakuniza",
"wikibase-propertypage-bad-datatype": "caay katinengay a piazihan tu
kakuniza: $1",
"wikibase-statementview-rank-preferred": "sakapahay a kasaselel",
"wikibase-statementview-rank-normal": "habutud kasaselel",
"wikibase-statementview-rank-deprecated": "caay matatungus kasaselel",
+ "wikibase-snakview-variation-datavaluetypemismatch": "kya sulyang caay
matatungus susin pasaheci.",
+ "wikibase-snakview-variation-nonewvaluefordeletedproperty": "amana
misaheci baluhay sulyang tu masipuay tu susin.",
"wikibase-snakview-variations-somevalue-label": "caay kapulita ku
sulyang",
"wikibase-snakview-variations-novalue-label": "inayi’ ku sulyang",
"wikibase-snakview-snaktypeselector-value": "pakuniza misanga’ay a
sulyang",
"wikibase-snakformat-invalid-value": "la’cusay a sulyang.",
"wikibase-snakformat-propertynotfound": "caykatepa ku susin.",
"wikibase-entityselector-more": "yadah",
+ "wikibase-validator-label-no-entityid": "tina aazihen-paya kanca cacay
ku kapahay a masaheciay ID.",
+ "wikibase-validator-page-not-exists": "kasabelih \"$1\" inayi’.",
+ "wikibase-wikibaserepopage-not-itemid": "\"$1\" caay ku kapahay a
kasacacay ID.",
"wikibase-wikibaserepopage-unresolved-redirect": "$1 ku cacay miliyaw
patatuzu’.",
+ "wikibase-wikibaserepopage-storage-exception": "mitanam maasip $1
mungangaw:$2",
"wikibase-itembytitle-lookup-fieldset": "mikilim kilul tu
calay-kakacawan(wangcan) atu satangahan",
"wikibase-itembytitle-lookup-site": "calay-kakacawan(wangcan):",
"wikibase-itembytitle-lookup-page": "kasabelih:",
"wikibase-itembytitle-submit": "kilim",
"wikibase-itembytitle-error-item": "cay katepa masasiketay a
kasacacay.",
+ "wikibase-itembytitle-create": "kapah tu kisu [$1 patizeng kasacacay]",
"special-gotolinkedpage": "taayaw namasasiketay a kasabelih",
"wikibase-gotolinkedpage-lookup-fieldset": "kilul
calay-kakacawan(wangcan) atu kasacacay tayza masasiketay a kasabelih",
"wikibase-gotolinkedpage-lookup-site": "calay-kakacawan(wangcan):",
@@ -132,11 +142,14 @@
"special-mergeitems": "mikabu tatusa kasacacay",
"wikibase-mergeitems-fromid": "mikabu nay kasacacay ID",
"wikibase-mergeitems-submit": "mikabu tu kasacacay",
+ "wikibase-mergeitems-success": "makabu tuway ku $1 ~ $3 atu miliyaw
patatuzu’.",
"wikibase-itemmerge-missing-parameter": "caayka leku nu sulitan.",
+ "wikibase-itemmerge-not-item": "matuzu’ay a masaheciay caay kasacacay.",
"wikibase-itemmerge-permissiondenied": "caykataneng ku tungus.",
"wikibase-itemmerge-failed-modify": "mikabu kasacacay mungangaw,
pisaayaw sapawazay sasula’cus.",
"wikibase-itemmerge-no-such-entity": "caykatepa kasacacay.",
"wikibase-itemmerge-cant-merge-self": "la’cus mikabu kasacacay katukuh
i takakuan.",
+ "wikibase-tokencheck-mustposttoken": "pisaungay dada’ POST milunguc
miteka mikawaway-kalumyiti.",
"special-dispatchstats": "misumad patiyak sausi",
"wikibase-dispatchstats-no-stats": "ayzasa inayi’ ngaayay a sausi
kalunasulitan.",
"wikibase-dispatchstats-stats": "patiyak sausi a cesyun",
@@ -156,6 +169,8 @@
"wikibase-dispatchstats-average": "lalet",
"special-listdatatypes": "sacahamin silaheciay kalunasulitan kakuniza",
"wikibase-listdatatypes-intro": "uyniyay kalunasulitan kakuniza u
sacahamin kapahay:",
+ "wikibase-listdatatypes-listproperties": "pisaungay tina kalunasulitan
kakuniza a susin piazihan-tu-sulit",
+ "wikibase-history-title-with-label": "\"$2\" ($1) sumaday nu nazipa’an",
"wikibase-history-title-without-label": "($1) masumaday a nazipa’an",
"special-listproperties": "piazihan tu sulit nu susin",
"wikibase-listproperties-legend": "kilul kalunasulitan kakuziza maala
susin piazihan-tu-sulit",
@@ -174,18 +189,24 @@
"wikibase-entitieswithoutlabel-invalid-type": "\"$1\" caykaw kapahay a
masaheciay nikalahizaan.",
"special-itemswithoutsitelinks": "inayi’ calay-kakacawan(wangcan)
masasiket a kasacacay",
"special-entitydata": "masaheciay a kalunasulitan",
+ "wikibase-entitydata-not-found": "inayi’ ku ID nu $1 a masaheciay.",
+ "wikibase-entitydata-bad-revision": "la’cus paazih masaheciay $1 sumad
$2.",
"wikibase-entitydata-bad-id": "la’cusay ID: $1.",
"wikibase-entitydata-unsupported-format": "tina taypuolayta caay midama
kalunasulitan kese $1.",
"wikibase-entitydata-storage-error": "miasip masaheciay $1 mungngaw.",
"wikibase-entitydata-title": "masaheciay a kalunasulitan",
"wikibase-entitypage-bad-id": "la’cusay ID: $1.",
"special-redirectentity": "miliyaw patatuzu’ masaheciay",
+ "wikibase-redirectentity-success": "$1 miliyaw patatuzu’ tayza $2.",
"wikibase-redirectentity-fromid": "amiliyaw patatuzu’ay a ID",
"wikibase-redirectentity-submit": "miliyaw patatuzu’",
+ "wikibase-mylanguagefallbackchain-text": "kamu pahalhal satatusul
sawsawni paazih isasa’ nu masaheciay a aazihen-paya.",
+ "wikibase-api-target-is-redirect": "kya miliyaw patatuzu’ a papatuzu'an
akatu miliyaw patatuzu’ kasabelih.",
"wikibase-api-target-is-incompatible": "mitanam miliyaw patatuzu’ tayza
caay kalecaday a nikalahizaan masaheciay.",
"wikibase-conflict-patched": "mikawaway-kalumyiti nu misu malisimet tu
sabaluhay a baziyong.",
"wikibase-restoreold": "patiku",
"wikibase-no-direct-editing": "pangangananay a salaedan $1 mapasatezep
kakelul mikawaway-kalumyiti",
+ "wikibase-special-mergeitems-error-prefix": "tina kasacacay la’cus
pakabu. isasa’ mungangaw:",
"wikibase-listdatatypes-commonsmedia-head": "kasasimel tu myiti",
"wikibase-listdatatypes-globe-coordinate-head": "taenengan nu
lala’-liwliw",
"wikibase-listdatatypes-geo-shape-head": "hekal nu lala’-liwliw",
@@ -196,20 +217,26 @@
"wikibase-listdatatypes-url-head": "URL",
"wikibase-listdatatypes-external-id-head": "ihekalay mapulitaay a kodo",
"wikibase-concept-uri": "nizatengan nu URI",
+ "wikibase-concept-uri-tooltip": "URI amitaazih tina kasacacay
masapuelac a nizatengan",
"content-model-wikibase-item": "Wikibase kasacacay",
"content-model-wikibase-property": "Wikibase susin",
"content-model-wikibase-query": "Wikibase palalitemuh tu kawaw",
+ "right-item-term": "misumad kasacacay a kamu (aazihen-paya, sapuelac
atu pacimilay ngangan)",
"right-item-merge": "mikabu tu kasacacay",
"right-item-redirect": "patizeng kasacacay miliyawtu patatuzu’",
+ "right-property-term": "misumad susin a kamu (aazihen-paya, sapuelac
atu pacimilay ngangan)",
"right-property-create": "patizeng tu susin",
"action-item-merge": "mikabu tu kasacacay",
"action-property-create": "patizeng tu susin",
"wikibase-pageinfo-subscription-none": "nayi’",
"apihelp-wbcreateclaim-description": "patizeng Wikibase saleku.",
+ "apihelp-wbcreateclaim-param-entity": "amicunus kisu salekuay a
masaheciay ID",
"apihelp-wbcreateredirect-description": "patizeng masaheciay miliyaw
patatuzu’.",
"apihelp-wbcreateredirect-param-to": "miliyaw patatuzu’ a masaheciay
ID",
"apihelp-wbeditentity-example-12": "misipu cacay a aazihen a paya",
+ "apihelp-wbgetclaims-description": "maala Wikibase a saleku.",
"apihelp-wbmergeitems-param-fromid": "mikabu nay kasacacay ID",
+ "apihelp-wbremoveclaims-description": "misipu Wikibase a salekuan.",
"apihelp-wbremovequalifiers-description": "nay saleku misipu nikayadah
a kamu.",
"apihelp-wbsearchentities-param-search": "mikilim tina sulit.",
"apihelp-wbsearchentities-param-language": "mikilim tina kamu.",
@@ -221,5 +248,6 @@
"apihelp-query+wbsearch-param-type": "mikilim tina nikalahizaan a
masaheciay.",
"apihelp-query+wbsearch-param-limit": "sakatabakiay a sausi nu heci",
"apihelp-query+wbsubscribers-param-limit": "sakatabakiay a sausi nu
heci",
+ "apihelp-wbsetaliases-description": "setin Wikibase masaheciay a
pacimilay ngangan.",
"apihelp-wbsetclaim-description": "patizeng saca misabaluh sacahamin
sapuelac saca saleku."
}
diff --git a/extensions/Wikibase/repo/i18n/az.json
b/extensions/Wikibase/repo/i18n/az.json
index 33669c4..c97670d 100644
--- a/extensions/Wikibase/repo/i18n/az.json
+++ b/extensions/Wikibase/repo/i18n/az.json
@@ -17,5 +17,6 @@
"wikibase-statementsection-statements": "Müddəalar",
"wikibase-sitelinks-special": "Digər saytlar",
"wikibase-statementview-rank-normal": "Normal dərəcə",
- "wikibase-statementview-references-counter":
"$1{{PLURAL:$2|0=|$3+$2$4}} {{PLURAL:$1|mənbə|mənbələr}}"
+ "wikibase-statementview-references-counter":
"$1{{PLURAL:$2|0=|$3+$2$4}} {{PLURAL:$1|mənbə|mənbələr}}",
+ "wikibase-listdatatypes-wikibase-property-head": "Xüsusiyyət"
}
diff --git a/extensions/Wikibase/repo/i18n/sv.json
b/extensions/Wikibase/repo/i18n/sv.json
index 9a7e4a2..e5b4cdc 100644
--- a/extensions/Wikibase/repo/i18n/sv.json
+++ b/extensions/Wikibase/repo/i18n/sv.json
@@ -312,6 +312,8 @@
"wikibase-mylanguagefallbackchain-text": "Nedan visas kedjan
språktillbakafallskedjan som används för att visa dig entitetsetiketter.",
"wikibase-mylanguagefallbackchain-babel": "Du kan redigera den genom
att lägga in <nowiki>{{#babel: }}</nowiki> på {{GENDER:$1|din}}
[[Special:MyPage|användarsida]].",
"wikibase-mylanguagefallbackchain-converted-item": "$1 - $2,
konverterade från $3 - $4",
+ "wikibase-api-claim-value-missing": "Ett värde måste anges när ett
påstående med en PropertyValueSnak-snak skapas.",
+ "wikibase-api-claim-value-unexpected": "Du kan inte ange ett värde när
du skapar ett påstående utan en PropertyValueSnak som huvudsnak.",
"wikibase-api-unresolved-redirect": "Angiven entitets-ID hänvisar till
en omdirigering, som inte stöds i detta sammanhang.",
"wikibase-api-illegal-entity-remove": "Entiteter med toppnivånyckeln
<var>remove</var> kan inte raderas.",
"wikibase-api-illegal-id-or-site-page-selector": "Du måste ange
antingen en <var>id</var>-entitet eller en kombination av <var>site</var> och
<var>page</var>, men inte båda.",
diff --git a/vendor/composer/autoload_classmap.php
b/vendor/composer/autoload_classmap.php
index 3a442e1..39c364e 100644
--- a/vendor/composer/autoload_classmap.php
+++ b/vendor/composer/autoload_classmap.php
@@ -364,6 +364,7 @@
'Wikibase\\Client\\Hooks\\DataUpdateHookHandlers' => $baseDir .
'/extensions/Wikibase/client/includes/Hooks/DataUpdateHookHandlers.php',
'Wikibase\\Client\\Hooks\\DeletePageNoticeCreator' => $baseDir .
'/extensions/Wikibase/client/includes/Hooks/DeletePageNoticeCreator.php',
'Wikibase\\Client\\Hooks\\EchoNotificationsHandlers' => $baseDir .
'/extensions/Wikibase/client/includes/Hooks/EchoNotificationsHandlers.php',
+ 'Wikibase\\Client\\Hooks\\EchoSetupHookHandlers' => $baseDir .
'/extensions/Wikibase/client/includes/Hooks/EchoSetupHookHandlers.php',
'Wikibase\\Client\\Hooks\\EditActionHookHandler' => $baseDir .
'/extensions/Wikibase/client/includes/Hooks/EditActionHookHandler.php',
'Wikibase\\Client\\Hooks\\InfoActionHookHandler' => $baseDir .
'/extensions/Wikibase/client/includes/Hooks/InfoActionHookHandler.php',
'Wikibase\\Client\\Hooks\\LanguageLinkBadgeDisplay' => $baseDir .
'/extensions/Wikibase/client/includes/Hooks/LanguageLinkBadgeDisplay.php',
@@ -454,6 +455,7 @@
'Wikibase\\Client\\Tests\\Hooks\\DataUpdateHookHandlersTest' => $baseDir .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/DataUpdateHookHandlersTest.php',
'Wikibase\\Client\\Tests\\Hooks\\DeletePageNoticeCreatorTest' => $baseDir
.
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/DeletePageNoticeCreatorTest.php',
'Wikibase\\Client\\Tests\\Hooks\\EchoNotificationsHandlersTest' =>
$baseDir .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoNotificationsHandlersTest.php',
+ 'Wikibase\\Client\\Tests\\Hooks\\EchoSetupHookHandlersTest' => $baseDir .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoSetupHookHandlersTest.php',
'Wikibase\\Client\\Tests\\Hooks\\EditActionHookHandlerTest' => $baseDir .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EditActionHookHandlerTest.php',
'Wikibase\\Client\\Tests\\Hooks\\InfoActionHookHandlerTest' => $baseDir .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/InfoActionHookHandlerTest.php',
'Wikibase\\Client\\Tests\\Hooks\\LanguageLinkBadgeDisplayTest' => $baseDir
.
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/LanguageLinkBadgeDisplayTest.php',
diff --git a/vendor/composer/autoload_static.php
b/vendor/composer/autoload_static.php
index 6ccb2b1..e256528 100644
--- a/vendor/composer/autoload_static.php
+++ b/vendor/composer/autoload_static.php
@@ -668,6 +668,7 @@
'Wikibase\\Client\\Hooks\\DataUpdateHookHandlers' => __DIR__ .
'/../..' .
'/extensions/Wikibase/client/includes/Hooks/DataUpdateHookHandlers.php',
'Wikibase\\Client\\Hooks\\DeletePageNoticeCreator' => __DIR__ .
'/../..' .
'/extensions/Wikibase/client/includes/Hooks/DeletePageNoticeCreator.php',
'Wikibase\\Client\\Hooks\\EchoNotificationsHandlers' => __DIR__ .
'/../..' .
'/extensions/Wikibase/client/includes/Hooks/EchoNotificationsHandlers.php',
+ 'Wikibase\\Client\\Hooks\\EchoSetupHookHandlers' => __DIR__ . '/../..'
. '/extensions/Wikibase/client/includes/Hooks/EchoSetupHookHandlers.php',
'Wikibase\\Client\\Hooks\\EditActionHookHandler' => __DIR__ . '/../..'
. '/extensions/Wikibase/client/includes/Hooks/EditActionHookHandler.php',
'Wikibase\\Client\\Hooks\\InfoActionHookHandler' => __DIR__ . '/../..'
. '/extensions/Wikibase/client/includes/Hooks/InfoActionHookHandler.php',
'Wikibase\\Client\\Hooks\\LanguageLinkBadgeDisplay' => __DIR__ .
'/../..' .
'/extensions/Wikibase/client/includes/Hooks/LanguageLinkBadgeDisplay.php',
@@ -758,6 +759,7 @@
'Wikibase\\Client\\Tests\\Hooks\\DataUpdateHookHandlersTest' =>
__DIR__ . '/../..' .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/DataUpdateHookHandlersTest.php',
'Wikibase\\Client\\Tests\\Hooks\\DeletePageNoticeCreatorTest' =>
__DIR__ . '/../..' .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/DeletePageNoticeCreatorTest.php',
'Wikibase\\Client\\Tests\\Hooks\\EchoNotificationsHandlersTest' =>
__DIR__ . '/../..' .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoNotificationsHandlersTest.php',
+ 'Wikibase\\Client\\Tests\\Hooks\\EchoSetupHookHandlersTest' => __DIR__
. '/../..' .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EchoSetupHookHandlersTest.php',
'Wikibase\\Client\\Tests\\Hooks\\EditActionHookHandlerTest' => __DIR__
. '/../..' .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/EditActionHookHandlerTest.php',
'Wikibase\\Client\\Tests\\Hooks\\InfoActionHookHandlerTest' => __DIR__
. '/../..' .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/InfoActionHookHandlerTest.php',
'Wikibase\\Client\\Tests\\Hooks\\LanguageLinkBadgeDisplayTest' =>
__DIR__ . '/../..' .
'/extensions/Wikibase/client/tests/phpunit/includes/Hooks/LanguageLinkBadgeDisplayTest.php',
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index 2d45c1d..587a042 100644
--- a/vendor/composer/installed.json
+++ b/vendor/composer/installed.json
@@ -1389,12 +1389,12 @@
"source": {
"type": "git",
"url":
"https://github.com/wikimedia/mediawiki-extensions-Wikibase.git",
- "reference": "01b3d94b3ef788eef3415a49c932db887e44949f"
+ "reference": "4e28a911ce1717b3e96e1eefb9031d1550bc2590"
},
"dist": {
"type": "zip",
- "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/01b3d94b3ef788eef3415a49c932db887e44949f",
- "reference": "01b3d94b3ef788eef3415a49c932db887e44949f",
+ "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/4e28a911ce1717b3e96e1eefb9031d1550bc2590",
+ "reference": "4e28a911ce1717b3e96e1eefb9031d1550bc2590",
"shasum": ""
},
"require": {
@@ -1429,7 +1429,7 @@
"mediawiki/minus-x": "0.1.0",
"wikibase/wikibase-codesniffer": "^0.1.0"
},
- "time": "2017-10-02 13:20:47",
+ "time": "2017-10-05 08:43:29",
"type": "mediawiki-extension",
"installation-source": "dist",
"autoload": {
@@ -1780,7 +1780,7 @@
"source": {
"type": "git",
"url":
"https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseQualityConstraints",
- "reference": "02946a03166ee8b70ef0e323145442199ff4cdbe"
+ "reference": "38bb16a0efba2183612909aac1bbbc06af6e8bfc"
},
"require": {
"php": ">=5.5.9",
@@ -1796,7 +1796,7 @@
"satooshi/php-coveralls": "master-dev",
"wikibase/wikibase-codesniffer": "^0.1.0"
},
- "time": "2017-10-02 15:58:38",
+ "time": "2017-10-05 09:57:53",
"type": "mediawiki-extension",
"installation-source": "source",
"autoload": {
--
To view, visit https://gerrit.wikimedia.org/r/382411
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e7784dd1bc10967d220e11fcb14216ecb28479e
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