jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/349398 )
Change subject: New Wikidata Build - 2017-04-21T10:00:01+0000
......................................................................
New Wikidata Build - 2017-04-21T10:00:01+0000
Change-Id: I32f191b323776285589335350d3d389638b9cb6b
---
M composer.lock
M extensions/Constraints/maintenance/UpdateConstraintsTable.php
M extensions/Wikibase/client/i18n/nl.json
M
extensions/Wikibase/client/tests/phpunit/includes/Hooks/ChangesListSpecialPageHookHandlersTest.php
M
extensions/Wikibase/client/tests/phpunit/includes/Hooks/MagicWordHookHandlersTest.php
M extensions/Wikibase/docs/federation.wiki
M extensions/Wikibase/docs/options.wiki
M extensions/Wikibase/lib/i18n/ar.json
M extensions/Wikibase/lib/i18n/cs.json
M extensions/Wikibase/lib/i18n/fr.json
M extensions/Wikibase/lib/i18n/gl.json
M extensions/Wikibase/lib/i18n/he.json
M extensions/Wikibase/lib/i18n/pl.json
M extensions/Wikibase/lib/i18n/pt-br.json
M extensions/Wikibase/lib/i18n/zh-hans.json
M extensions/Wikibase/repo/i18n/ar.json
M extensions/Wikibase/repo/i18n/cs.json
M extensions/Wikibase/repo/i18n/de.json
M extensions/Wikibase/repo/i18n/en.json
M extensions/Wikibase/repo/i18n/fr.json
M extensions/Wikibase/repo/i18n/gl.json
M extensions/Wikibase/repo/i18n/he.json
M extensions/Wikibase/repo/i18n/ko.json
M extensions/Wikibase/repo/i18n/pl.json
M extensions/Wikibase/repo/i18n/pt-br.json
M extensions/Wikibase/repo/i18n/qqq.json
M extensions/Wikibase/repo/i18n/zh-hans.json
M
extensions/Wikibase/repo/includes/ChangeOp/Deserialization/ClaimsChangeOpDeserializer.php
M extensions/Wikibase/repo/includes/Hooks/LinkBeginHookHandler.php
M extensions/Wikibase/repo/includes/Specials/SpecialEntityData.php
M
extensions/Wikibase/repo/tests/phpunit/includes/Specials/SpecialEntityDataTest.php
M vendor/composer/installed.json
32 files changed, 188 insertions(+), 111 deletions(-)
Approvals:
Aude: Looks good to me, approved
jenkins-bot: Verified
diff --git a/composer.lock b/composer.lock
index a45082e..4dc048b 100644
--- a/composer.lock
+++ b/composer.lock
@@ -935,7 +935,7 @@
"source": {
"type": "git",
"url":
"https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseQualityConstraints",
- "reference": "c2aa62f43030e3c57f7631f3e9cc4c750bd1de8e"
+ "reference": "1b888d356f9619ca5fd14a0bc4c0d253dcdc910f"
},
"require": {
"php": ">=5.5.9",
@@ -988,7 +988,7 @@
"support": {
"issues":
"https://phabricator.wikimedia.org/project/profile/1202/"
},
- "time": "2017-04-19 11:01:26"
+ "time": "2017-04-20 11:56:33"
},
{
"name": "wikibase/data-model",
@@ -1558,12 +1558,12 @@
"source": {
"type": "git",
"url":
"https://github.com/wikimedia/mediawiki-extensions-Wikibase.git",
- "reference": "9d44440af6ab950d1fd60eea2f3b098cb2efba9b"
+ "reference": "ac94fbedfff67d4a50bdb9c374e8fb54b3d31d06"
},
"dist": {
"type": "zip",
- "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/9d44440af6ab950d1fd60eea2f3b098cb2efba9b",
- "reference": "9d44440af6ab950d1fd60eea2f3b098cb2efba9b",
+ "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/ac94fbedfff67d4a50bdb9c374e8fb54b3d31d06",
+ "reference": "ac94fbedfff67d4a50bdb9c374e8fb54b3d31d06",
"shasum": ""
},
"require": {
@@ -1637,7 +1637,7 @@
"wikibaserepo",
"wikidata"
],
- "time": "2017-04-20 08:41:18"
+ "time": "2017-04-21 06:54:23"
},
{
"name": "wikibase/wikimedia-badges",
diff --git a/extensions/Constraints/maintenance/UpdateConstraintsTable.php
b/extensions/Constraints/maintenance/UpdateConstraintsTable.php
index 0c350fe..f66bda5 100644
--- a/extensions/Constraints/maintenance/UpdateConstraintsTable.php
+++ b/extensions/Constraints/maintenance/UpdateConstraintsTable.php
@@ -70,6 +70,9 @@
$accumulator = array();
if ( $data === false ) {
+ if ( !$this->isQuiet() ) {
+ $this->output( "\n" );
+ }
break;
}
}
diff --git a/extensions/Wikibase/client/i18n/nl.json
b/extensions/Wikibase/client/i18n/nl.json
index ff20071..5c06c3b 100644
--- a/extensions/Wikibase/client/i18n/nl.json
+++ b/extensions/Wikibase/client/i18n/nl.json
@@ -60,6 +60,7 @@
"wikibase-rc-show-wikidata-pref": "Bewerkingen van {{WBREPONAME}}
weergeven in recente wijzigingen",
"wikibase-rc-wikibase-edit-letter": "D",
"wikibase-rc-wikibase-edit-title": "Bewerking van {{WBREPONAME}}",
+ "wikibase-rcfilters-hide-wikibase-label": "Bewerkingen van
{{WBREPONAME}}",
"wikibase-replicationnote": "Het kan een aantal minuten duren voor alle
wijzigingen op alle wiki's zichtbaar zijn",
"wikibase-watchlist-show-changes-pref": "Bewerkingen van {{WBREPONAME}}
op mijn volglijst weergeven",
"wikibase-error-serialize-error": "De gegevens konden niet
geserialiseerd worden",
diff --git
a/extensions/Wikibase/client/tests/phpunit/includes/Hooks/ChangesListSpecialPageHookHandlersTest.php
b/extensions/Wikibase/client/tests/phpunit/includes/Hooks/ChangesListSpecialPageHookHandlersTest.php
index aa51402..8b7b2a3 100644
---
a/extensions/Wikibase/client/tests/phpunit/includes/Hooks/ChangesListSpecialPageHookHandlersTest.php
+++
b/extensions/Wikibase/client/tests/phpunit/includes/Hooks/ChangesListSpecialPageHookHandlersTest.php
@@ -7,10 +7,10 @@
use FormOptions;
use IDatabase;
use SpecialPageFactory;
-use TestingAccessWrapper;
use User;
use Wikibase\Client\Hooks\ChangesListSpecialPageHookHandlers;
use Wikimedia\Rdbms\LoadBalancer;
+use Wikimedia\TestingAccessWrapper;
/**
* @covers Wikibase\Client\Hooks\ChangesListSpecialPageHookHandlers
diff --git
a/extensions/Wikibase/client/tests/phpunit/includes/Hooks/MagicWordHookHandlersTest.php
b/extensions/Wikibase/client/tests/phpunit/includes/Hooks/MagicWordHookHandlersTest.php
index b8a2637..8049ece 100644
---
a/extensions/Wikibase/client/tests/phpunit/includes/Hooks/MagicWordHookHandlersTest.php
+++
b/extensions/Wikibase/client/tests/phpunit/includes/Hooks/MagicWordHookHandlersTest.php
@@ -7,7 +7,7 @@
use MediaWikiTestCase;
use Parser;
use Wikibase\SettingsArray;
-use TestingAccessWrapper;
+use Wikimedia\TestingAccessWrapper;
/**
* @covers Wikibase\Client\Hooks\MagicWordHookHandlers
diff --git a/extensions/Wikibase/docs/federation.wiki
b/extensions/Wikibase/docs/federation.wiki
index b0b04cc..57e02c0 100644
--- a/extensions/Wikibase/docs/federation.wiki
+++ b/extensions/Wikibase/docs/federation.wiki
@@ -1,11 +1,29 @@
-This file describes the concept of federated wikibase repositories.
+This file describes the concept of federated Wikibase repositories.
-This file is currently a STUB, referencing existing documentation on some
aspects of federation. More comprehensive documentation of the concept should
be added here.
-
-* "Foreign" is used to mean that something refers to and comes from another
wikibase repository.
+* "Foreign" is used to mean that something refers to and comes from another
Wikibase repository.
* Foreign EntityIds and mappings are documented in the file
docs/foreign-entity-ids.wiki in the wikibase/data-model component.
As of March 2017, in order to enable access to entities from federated
repositories both Repo and Client components must be enabled. Also as of March
2017, accessing data of foreign entities relies on the shared database access
(databases of federated repositories must be in the same database cluster).
* Local repository is configured as documented in docs/options.wiki. Note that
as of March 2017, database of the local repository is configured based on
Client's settings (''repoDatabase'' setting).
* Configuration of foreign repositories is done using the
''foreignRepositories'' setting in $wgWBClientSettings, as documented in the
file docs/options.wiki.
-* In order to correctly link entities from foreign repositories, local wiki
must have MediaWiki interwiki prefix configured for each foreign repository. As
of March 2017, interwiki prefix must be the same as the name used for the
foreign repository.
+* In order to correctly link entities from foreign repositories, the local
wiki must have MediaWiki interwiki prefixes configured for each foreign
repository. As of March 2017, the interwiki prefix must be the same as the name
used for the foreign repository. If there is no interwiki prefix configured for
the wiki containing the foreign repository, it can be added e.g. by adding a
row to the <code>interwiki</code> database table, or by using
[[Special:Interwiki]] if the Interwiki extension is enabled on the local wiki.
+
+Note that as of March 2017 it is only possible for Wikibase to use entities
from a single repository, either local or foreign. For instance, it is not
possible to use both local and foreign items in statements.
+
+== Example ==
+
+Below is an excerpt of some configuration of a Wikibase instance providing
items, and using properties provided by a foreign repository identified as
"prop". It is assumed that the repository "prop" uses a database identified as
"propwiki", and the "prop:" interwiki prefix has been configured already. There
is no repository prefix mapping configured.
+
+Note that as only foreign properties from the repository "prop" are to be
used, this example configuration only enables local items explicitly.
+
+<pre>
+$wgWBClientSettings['foreignRepositories'] = [
+ 'prop' => [
+ 'repoDatabase' => 'propwiki',
+ 'supportedEntityTypes' => [ 'property' ],
+ 'prefixMapping' => [],
+ 'baseUri' => 'http://prop.wiki/entity/',
+ ],
+];
+$wgWBClientSettings['repoNamespaces'] = [ 'item' => WB_NS_DATA ];
+</pre>
diff --git a/extensions/Wikibase/docs/options.wiki
b/extensions/Wikibase/docs/options.wiki
index 5aa29a4..6e5d59a 100644
--- a/extensions/Wikibase/docs/options.wiki
+++ b/extensions/Wikibase/docs/options.wiki
@@ -94,10 +94,10 @@
;otherProjectsLinksBeta: If this is set to true links to other projects will
be available as beta feature, enabling every user to turn them on/off if
wanted. (Only applies if other project links aren't enabled per default and the
BetaFeatures extension is installed)
;propertyOrderUrl: URL to use for retrieving the property order used for
sorting properties by property ID. Will be ignored if set to null.
;foreignRepositories: An associative array mapping foreign repository names to
settings relevant to the particular repository. Each repository's settings are
an associative array containing the following keys:
-:;'supportedEntityTypes': list of entity types (strings) that the local wiki
supports from the foreign repository
-:;'repoDatabase': value should be a symbolic database name,
-:;'baseUri': value should be base URI for concept URIs. It should contain
scheme and authority part of the URI.
-:;'prefixMapping': value should be a prefix mapping array, see also:
docs/foreign-entity-ids.wiki in the DataModel component.
+:;'supportedEntityTypes': A list of entity type identifiers (strings) that the
local wiki supports from the foreign repository.
+:;'repoDatabase': A symbolic database identifier (string) that MediaWiki's
LBFactory class understands.
+:;'baseUri': A base URI (string) for concept URIs. It should contain scheme
and authority part of the URI.
+:;'prefixMapping': A prefix mapping array, see also:
docs/foreign-entity-ids.wiki in the DataModel component.
=== Expert Settings ===
;injectRecentChanges: Whether changes on the repository should be injected
into this wiki's recent changes table, so they show up on watchlists, etc.
Requires the <code>dispatchChanges.php</code> script to run, and this wiki to
be listed in the <code>localClientDatabases</code> setting on the repository.
diff --git a/extensions/Wikibase/lib/i18n/ar.json
b/extensions/Wikibase/lib/i18n/ar.json
index 6802570..6a90f37 100644
--- a/extensions/Wikibase/lib/i18n/ar.json
+++ b/extensions/Wikibase/lib/i18n/ar.json
@@ -14,7 +14,8 @@
"Maroen1990",
"Sonic N800",
"Mr. Ibrahem",
- "ديفيد"
+ "ديفيد",
+ "محمد أحمد عبد الفتاح"
]
},
"wikibase-lib-desc": "يمسك بالوظيفة المشتركة لامتدادات Wikibase و
Wikibase Client",
@@ -86,6 +87,7 @@
"datatypes-type-wikibase-property": "خاصية",
"datatypes-type-commonsMedia": "ملف وسائط من كومنز",
"datatypes-type-geo-shape": "شكل جغرافي",
+ "datatypes-type-tabular-data": "بيانات مجدولة",
"datatypes-type-external-id": "معرف خارجي",
"version-wikibase": "قاعدة ويكي",
"wikibase-time-precision-Gannum": "$1 مليار سنة بعد الميلاد",
diff --git a/extensions/Wikibase/lib/i18n/cs.json
b/extensions/Wikibase/lib/i18n/cs.json
index 0b439e6..376de72 100644
--- a/extensions/Wikibase/lib/i18n/cs.json
+++ b/extensions/Wikibase/lib/i18n/cs.json
@@ -80,6 +80,8 @@
"datatypes-type-wikibase-item": "Položka",
"datatypes-type-wikibase-property": "Vlastnost",
"datatypes-type-commonsMedia": "Mediální soubor na Commons",
+ "datatypes-type-geo-shape": "Geografický tvar",
+ "datatypes-type-tabular-data": "Tabulková data",
"datatypes-type-external-id": "Externí identifikátor",
"version-wikibase": "Wikibase",
"wikibase-time-precision-Gannum": "$1
{{PLURAL:$1|miliarda|miliardy|miliard}} let",
diff --git a/extensions/Wikibase/lib/i18n/fr.json
b/extensions/Wikibase/lib/i18n/fr.json
index bb4af60..fe0cfb8 100644
--- a/extensions/Wikibase/lib/i18n/fr.json
+++ b/extensions/Wikibase/lib/i18n/fr.json
@@ -23,7 +23,8 @@
"Orlodrim",
"Zolo",
"Wladek92",
- "Urhixidur"
+ "Urhixidur",
+ "AntonierCH"
]
},
"wikibase-lib-desc": "Regroupe des fonctionnalités communes aux
extensions Wikibase et Wikibase Client",
@@ -95,6 +96,7 @@
"datatypes-type-wikibase-property": "Propriété",
"datatypes-type-commonsMedia": "Fichier multimédia de Commons",
"datatypes-type-geo-shape": "Couche géographique",
+ "datatypes-type-tabular-data": "Données tabulaires",
"datatypes-type-external-id": "Identifiant externe",
"version-wikibase": "Wikibase",
"wikibase-time-precision-Gannum": "$1 milliards d’années EC",
diff --git a/extensions/Wikibase/lib/i18n/gl.json
b/extensions/Wikibase/lib/i18n/gl.json
index 16cb328..c096af1 100644
--- a/extensions/Wikibase/lib/i18n/gl.json
+++ b/extensions/Wikibase/lib/i18n/gl.json
@@ -77,6 +77,7 @@
"datatypes-type-wikibase-property": "Propiedade",
"datatypes-type-commonsMedia": "Ficheiro multimedia de Commons",
"datatypes-type-geo-shape": "Forma xeográfica",
+ "datatypes-type-tabular-data": "Datos tabulares",
"datatypes-type-external-id": "Identificador externo",
"version-wikibase": "Wikibase",
"wikibase-time-precision-Gannum": "$1 mil millóns de anos EC",
diff --git a/extensions/Wikibase/lib/i18n/he.json
b/extensions/Wikibase/lib/i18n/he.json
index 4d790e8..c39c395 100644
--- a/extensions/Wikibase/lib/i18n/he.json
+++ b/extensions/Wikibase/lib/i18n/he.json
@@ -77,6 +77,7 @@
"datatypes-type-wikibase-property": "מאפיין",
"datatypes-type-commonsMedia": "קובץ מדיה בוויקישיתוף",
"datatypes-type-geo-shape": "צורה גאוגרפית",
+ "datatypes-type-tabular-data": "נתונים טבלאיים",
"datatypes-type-external-id": "מזהה חיצוני",
"version-wikibase": "Wikibase",
"wikibase-time-precision-Gannum": "$1 מיליארד שנים לספירה",
diff --git a/extensions/Wikibase/lib/i18n/pl.json
b/extensions/Wikibase/lib/i18n/pl.json
index 89585d5..3573b4c 100644
--- a/extensions/Wikibase/lib/i18n/pl.json
+++ b/extensions/Wikibase/lib/i18n/pl.json
@@ -83,6 +83,7 @@
"datatypes-type-wikibase-item": "Element",
"datatypes-type-wikibase-property": "Właściwość",
"datatypes-type-commonsMedia": "Plik multimedialny na Commons",
+ "datatypes-type-tabular-data": "Dane tabelaryczne",
"datatypes-type-external-id": "Identyfikator zewnętrzny",
"version-wikibase": "Wikibase",
"wikibase-time-precision-Gannum": "$1 mld lat C#",
diff --git a/extensions/Wikibase/lib/i18n/pt-br.json
b/extensions/Wikibase/lib/i18n/pt-br.json
index 2d69b71..2c222ad 100644
--- a/extensions/Wikibase/lib/i18n/pt-br.json
+++ b/extensions/Wikibase/lib/i18n/pt-br.json
@@ -37,6 +37,7 @@
"wikibase-snakview-snaktypeselector-novalue": "nenhum valor",
"wikibase-tooltip-error-details": "Detalhes",
"datatypes-type-wikibase-item": "Item",
+ "datatypes-type-wikibase-property": "Propriedade",
"datatypes-type-commonsMedia": "Arquivo de mídia do Commons",
"wikibase-entity-summary-wbsetitem": "Criado um novo item",
"wikibase-entity-summary-wbsetreference-add": "Incluída referência para
a afirmação",
diff --git a/extensions/Wikibase/lib/i18n/zh-hans.json
b/extensions/Wikibase/lib/i18n/zh-hans.json
index b6aed78..fbc5b6b 100644
--- a/extensions/Wikibase/lib/i18n/zh-hans.json
+++ b/extensions/Wikibase/lib/i18n/zh-hans.json
@@ -84,6 +84,7 @@
"datatypes-type-wikibase-property": "属性",
"datatypes-type-commonsMedia": "共享资源媒体文件",
"datatypes-type-geo-shape": "地理形状",
+ "datatypes-type-tabular-data": "表格数据",
"datatypes-type-external-id": "外部标识符",
"version-wikibase": "维基数据库",
"wikibase-time-precision-Gannum": "公元$1十亿年",
diff --git a/extensions/Wikibase/repo/i18n/ar.json
b/extensions/Wikibase/repo/i18n/ar.json
index 4c03292..d733bcf 100644
--- a/extensions/Wikibase/repo/i18n/ar.json
+++ b/extensions/Wikibase/repo/i18n/ar.json
@@ -294,7 +294,6 @@
"wikibase-entitieswithoutlabel-legend": "أعط قائمة بالكائنات بلا تسمية",
"wikibase-entitieswithoutlabel-label-language": "رمز اللغة:",
"wikibase-entitieswithoutlabel-label-type": "النمط:",
- "wikibase-entitieswithoutlabel-label-alltypes": "الكل",
"wikibase-entitieswithoutlabel-submit": "ابحث",
"wikibase-entitieswithoutlabel-invalid-language": "«$1» ليس رمز لغة
صالحاً.",
"wikibase-entitieswithoutlabel-invalid-type": "«$1» ليس نمط كائن
صالحاً.",
@@ -346,6 +345,7 @@
"wikibase-listdatatypes-globe-coordinate-body": "بيانات حرفية لموقع
جغرافي معطاة كزوج من latitude-longitude في درجات gms أو decimal للجرم السماوي
المعطى. القيمة الافتراضية هي \"Earth\" ثم \"WGS84\". هي تضيف قيمة توضيح
ونطاق.\n* latitude – الجزء الأول المضمن (float, dms, dm, dd) من سلسلة حروف
الإحداثيات، الاتجاه معطى إما بواسطة إشارة بادئة أو بواسطة اتجاه N/S ثابت\n*
longitude – الجزء الثاني المضمن (float, dms, dm, dd) لسلسلة حروف الإحداثيات،
الاتجاه معطى إما بواسطة إشارة بادئة أو بواسطة اتجاه E/W ثابت\n* globe – قيمة
بيانات (?) صريحة, معطاة كجرم سماوي والقيمة الافتراضية هي الأرض
\"http://www.wikidata.org/entity/Q2\"\n* precision - الدقة الرقمية للإحداثيات",
"wikibase-listdatatypes-geo-shape-head": "شكل جغرافي",
"wikibase-listdatatypes-geo-shape-body": "وصلة لبيانات الخريطة
الجغرافية المخزنة على ويكيميديا كومنز (أو ويكي مضبوطة أخرى). انظر
\"https://www.mediawiki.org/wiki/Help:Map_Data\" للمزيد من المعلومات حول بيانات
الخريطة.",
+ "wikibase-listdatatypes-tabular-data-head": "بيانات مجدولة",
"wikibase-listdatatypes-quantity-head": "كمية",
"wikibase-listdatatypes-quantity-body": "حقل بيانات حرفي لكمية مرتبطة
بوحدة معرفة جيدا. الوحدة الفعلية تدخل في قيم البيانات التي يتم إدخالها.\n*
amount – جزء مضمن من سلسلة الحروف (رسم بادئة الوحدة غير واضح)\n* unit – جزء
مضمن من سلسلة الحروف قيمته الافتراضية هي \"1\" (الرسم لهيئة المقاييس غير
واضح)\n* upperbound - الحد الأعلى للكمية\n* lowerbound - الحد الأدنى للكمية",
"wikibase-listdatatypes-monolingualtext-head": "نص بلغة وحيدة",
diff --git a/extensions/Wikibase/repo/i18n/cs.json
b/extensions/Wikibase/repo/i18n/cs.json
index 6cb477b..be60021 100644
--- a/extensions/Wikibase/repo/i18n/cs.json
+++ b/extensions/Wikibase/repo/i18n/cs.json
@@ -134,6 +134,7 @@
"wikibase-validator-label-no-entityid": "Štítek nesmí být platným
identifikátorem entity.",
"wikibase-validator-illegal-file-chars": "Jména souborů nesmí obsahovat
některé znaky jako dvojtečky či lomítka. Vkládejte prosím jen název souboru za
„File:“.",
"wikibase-validator-illegal-geo-shape-title": "Hodnota musí začínat
„Data:“ a končit „.map“. Kromě toho by název neměl obsahovat znaky jako
dvojtečka, křížek nebo svislítko.",
+ "wikibase-validator-illegal-tabular-data-title": "Hodnota musí začínat
„Data:“ a končit „.tab“. Kromě toho by název neměl obsahovat znaky jako
dvojtečka, křížek nebo svislá čára.",
"wikibase-validator-no-such-media": "Soubor „$1“ na
[https://commons.wikimedia.org/ Wikimedia Commons] neexistuje.",
"wikibase-validator-no-such-sitelink": "Při editaci odznaku nebyl
nalezen odkaz na článek „$1“.",
"wikibase-validator-page-not-exists": "Stránka „$1“ neexistuje.",
@@ -287,7 +288,6 @@
"wikibase-entitieswithoutlabel-legend": "Získat seznam entit bez
štítku",
"wikibase-entitieswithoutlabel-label-language": "Kód jazyka:",
"wikibase-entitieswithoutlabel-label-type": "Typ:",
- "wikibase-entitieswithoutlabel-label-alltypes": "vše",
"wikibase-entitieswithoutlabel-submit": "Najít",
"wikibase-entitieswithoutlabel-invalid-language": "„$1“ není platný kód
jazyka.",
"wikibase-entitieswithoutlabel-invalid-type": "„$1“ není platný druh
entity.",
diff --git a/extensions/Wikibase/repo/i18n/de.json
b/extensions/Wikibase/repo/i18n/de.json
index ad4072c..caf78b0 100644
--- a/extensions/Wikibase/repo/i18n/de.json
+++ b/extensions/Wikibase/repo/i18n/de.json
@@ -156,6 +156,8 @@
"wikibase-wikibaserepopage-invalid-id": "Die Kennung „$1“ ist
unbekannt. Bitte nutze eine gültige Objektkennung.",
"wikibase-wikibaserepopage-unresolved-redirect": "$1 ist eine
Weiterleitung.",
"wikibase-wikibaserepopage-storage-exception": "Beim Laden von $1 ist
ein Fehler aufgetreten: $2.",
+ "special-availablebadges": "Verfügbare Auszeichnungen",
+ "wikibase-availablebadges-emptylist": "Auf diesem Wiki gibt es keine
konfigurierten Auszeichnungen.",
"special-itembytitle": "Datenobjekte nach Titel",
"wikibase-itembytitle-lookup-fieldset": "Suche Datenobjekte nach
Website und Titel",
"wikibase-itembytitle-lookup-site": "Website:",
diff --git a/extensions/Wikibase/repo/i18n/en.json
b/extensions/Wikibase/repo/i18n/en.json
index 900a426..c9d6e87 100644
--- a/extensions/Wikibase/repo/i18n/en.json
+++ b/extensions/Wikibase/repo/i18n/en.json
@@ -303,7 +303,7 @@
"wikibase-entitydata-unsupported-format": "The data format $1 is not
supported by this interface.",
"wikibase-entitydata-storage-error": "Failed to load entity $1.",
"wikibase-entitydata-title": "Entity Data",
- "wikibase-entitydata-text": "This page provides a linked data interface
to entity values. Please provide the entity ID in the URL, using subpage
syntax.\n* Content negotiation applies based on you client's Accept header.
This means that the entity data will be provided in the format preferred by
your client. For a web browser, this will be HTML, causing your browser to be
redirected to the regular entity page.\n* You can explicitly request a specific
data format by adding the appropriate file extension to the entity ID: Q23.json
will return data in the JSON format, Q23.ttl will return RDF/Turtle, and so
on.",
+ "wikibase-entitydata-text": "This page provides a linked data interface
to entity values. Please provide the entity ID in the URL, using subpage
syntax.\n* Content negotiation applies based on you client's Accept header.
This means that the entity data will be provided in the format preferred by
your client. For a web browser, this will be HTML, causing your browser to be
redirected to the regular entity page.\n* You can explicitly request a specific
data format by adding the appropriate file extension to the entity ID: Q23.json
will return data in the JSON format, Q23.ttl will return RDF/Turtle, and so on.
Supported formats are: $1.",
"special-entitypage": "Entity page",
"wikibase-entitypage-title": "Entity Page",
"wikibase-entitypage-text": "This page redirects to the entity page on
the repository it belongs to. Please provide the entity ID in the URL, using
subpage syntax.",
diff --git a/extensions/Wikibase/repo/i18n/fr.json
b/extensions/Wikibase/repo/i18n/fr.json
index 9368957..f906a19 100644
--- a/extensions/Wikibase/repo/i18n/fr.json
+++ b/extensions/Wikibase/repo/i18n/fr.json
@@ -169,6 +169,7 @@
"wikibase-validator-label-no-entityid": "Le libellé ne doit pas être un
identifiant d’entité valide.",
"wikibase-validator-illegal-file-chars": "Les noms de fichier ne
doivent pas contenir certains caractères comme les virgules ou les barres
obliques. Merci de bien vouloir coller uniquement le nom de fichier après
« File: ».",
"wikibase-validator-illegal-geo-shape-title": "La valeur doit commencer
par \"Data:\" et finir par \".map\". En outre, le titre ne doit pas contenir de
caractères comme la virgule, le dièse(#) ou la barre verticale(|).",
+ "wikibase-validator-illegal-tabular-data-title": "La valeur doit
commencer par « Data: » et finir par « .tab ». De plus, le titre ne doit pas
contenir de caractères comme les virgules, les dièses ou les barres
verticales.",
"wikibase-validator-no-such-media": "Le fichier « $1 »
n'existe pas sur [https://commons.wikimedia.org/Wikimedia Commons].",
"wikibase-validator-no-such-sitelink": "Impossible de trouver un lien
de site vers « $1 » en essayant de modifier les badges.",
"wikibase-validator-page-not-exists": "La page « $1 » n’existe pas.",
@@ -373,6 +374,8 @@
"wikibase-listdatatypes-globe-coordinate-body": "Données littérales
pour une position géographique donnée sous forme de paire latitude-longitude en
GMS ou en degrés décimaux pour le corps céleste concerné. Par défaut, « Terre »
puis « WGS84 ». Cela ajoute une résolution et une portée.\n* latitude —
première partie implicite (float, dms, dm, dd) de la chaîne des coordonnées, la
direction étant donnée soit par le signe en préfixe ou par le N/S en suffixe\n*
longitude – seconde partie implicite (float, dms, dm, dd) de la chaîne des
coordonnées, la direction étant donnée soit par le signe en préfixe soit par le
E/W en suffixe\n* globe – valeur de donnée explicite (?), fournissant le corps
céleste, par défaut la Terre « http://www.wikidata.org/entity/Q2 »\n* precision
— précision numérique des coordonnées",
"wikibase-listdatatypes-geo-shape-head": "Forme géographique",
"wikibase-listdatatypes-geo-shape-body": "Lien vers les données de
carte géographique stockées sur Wikimédia Communs (ou autre wiki configuré).
Voir « https://www.mediawiki.org/wiki/Help:Map_Data » pour plus de
documentation sur les données de carte.",
+ "wikibase-listdatatypes-tabular-data-head": "Données tabulaires",
+ "wikibase-listdatatypes-tabular-data-body": "Lien vers les données
tabulaires stockées sur Wikimédia Communs (ou un autre wiki configuré). Voir «
https://www.mediawiki.org/wiki/Help:Tabular_Data » pour plus d’information sur
les données tabulaires.",
"wikibase-listdatatypes-quantity-head": "Quantité",
"wikibase-listdatatypes-quantity-body": "Champ de donnée littérale pour
une quantité qui se rapporte à un type d’unité bien défini. L’unité réelle va
dans les valeurs de donnée qui sont entrées.\n* montant — partie implicite de
la chaîne (l’application du préfixe de l’unité n’est pas clair)\n* unité —
partie implicite de la chaîne, « 1 » par défaut (l’application du corps
standardisé n’est pas claire)\n* majorant — majorant de la quantité",
"wikibase-listdatatypes-monolingualtext-head": "Texte monolingue",
diff --git a/extensions/Wikibase/repo/i18n/gl.json
b/extensions/Wikibase/repo/i18n/gl.json
index 7da9609..bd4075f 100644
--- a/extensions/Wikibase/repo/i18n/gl.json
+++ b/extensions/Wikibase/repo/i18n/gl.json
@@ -279,7 +279,6 @@
"wikibase-entitieswithoutlabel-legend": "Obter a lista de entidades sen
etiqueta",
"wikibase-entitieswithoutlabel-label-language": "Código da lingua:",
"wikibase-entitieswithoutlabel-label-type": "Tipo:",
- "wikibase-entitieswithoutlabel-label-alltypes": "todos",
"wikibase-entitieswithoutlabel-submit": "Buscar",
"wikibase-entitieswithoutlabel-invalid-language": "\"$1\" non é un
código de lingua válido.",
"wikibase-entitieswithoutlabel-invalid-type": "\"$1\" non é un tipo de
entidade válido.",
@@ -331,6 +330,7 @@
"wikibase-listdatatypes-globe-coordinate-body": "Datos literais para
unha posición xeográfica dada como un par latitude-lonxitude en GMS ou graos
decimais do corpo estelar especificado. Por defecto, é \"Terra\" e logo
\"WGS84\". Engade unha resolución e un rango.\n* latitude – primeira parte
implícita (float, dms, dm, dd) da cadea de coordenadas; a dirección achégase
mediante o signo en prefixo ou o sufixo N/S\n* longitude – segunda parte
implícita (float, dms, dm, dd) da cadea de coordenadas; a dirección achégase
mediante o signo en prefixo ou o sufixo E/W\n* globe – valor de datos explícito
(?), dado como un corpo estelar; por defecto a Terra
\"http://www.wikidata.org/entity/Q2\"\n* precision - precisión numérica das
coordenadas",
"wikibase-listdatatypes-geo-shape-head": "Forma xeográfica",
"wikibase-listdatatypes-geo-shape-body": "Ligazón ós datos de mapa
xeográfico almacenados en Wikimedia Commons (ou outra wiki configurada).
Consulte \"https://www.mediawiki.org/wiki/Help:Map_Data\" para atopar máis
documentación sobre datos de mapas.",
+ "wikibase-listdatatypes-tabular-data-head": "Datos tabulares",
"wikibase-listdatatypes-quantity-head": "Cantidade",
"wikibase-listdatatypes-quantity-body": "Campo de datos literal para
unha cantidade relacionada con algún tipo de unidade ben definida. A unidade
real vai nos valores de datos introducidos.\n* amount – parte implícita da
cadea de texto (o mapeamento do prefixo da unidade non está claro)\n* unit –
parte implícita da cadea de texto con valor por defecto \"1\" (o mapeamento ao
corpo estandarizante non está claro)\n* upperbound - límite superior da
cantidade \n* lowerbound - límite inferior da cantidade",
"wikibase-listdatatypes-monolingualtext-head": "Texto monolingüe",
diff --git a/extensions/Wikibase/repo/i18n/he.json
b/extensions/Wikibase/repo/i18n/he.json
index 091618d..1aa11a8 100644
--- a/extensions/Wikibase/repo/i18n/he.json
+++ b/extensions/Wikibase/repo/i18n/he.json
@@ -130,6 +130,7 @@
"wikibase-validator-label-no-entityid": "התווית הזאת אינה צריכה להיות
מזהה ישות תקין.",
"wikibase-validator-illegal-file-chars": "שמות קבצים לא יכולים להכיל
תווים מסוימים, כמו נקודתיים וקווים נטויים. יש להדביק את שם הקובץ רק אחרי
\"File:\".",
"wikibase-validator-illegal-geo-shape-title": "ערכים צריכים להתחיל
ב־\"Data:\" ולהסתיים ב־\".map\". בנוסף, הכותרת צריכה לא להכיל תווים כמו
נקודתיים, סולמית, או מקל.",
+ "wikibase-validator-illegal-tabular-data-title": "נתונים צריכים להתחיל
ב־\"Data:\" ולהסתיים ב־\".tab\". בנוסף, הכותרת צריכה לא להכיל תווים כמו
נקודתיים, סולמית, או מקל.",
"wikibase-validator-no-such-media": "הקובץ \"$1\" אינו קיים
ב־[https://commons.wikimedia.org/ ויקישיתוף]",
"wikibase-validator-no-such-sitelink": "לא היה אפשר למצוא קישור אתר אל
\"$1\" בלי לנסות לערוך סמלים.",
"wikibase-validator-page-not-exists": "הדף \"$1\" אינו קיים.",
@@ -142,6 +143,8 @@
"wikibase-wikibaserepopage-invalid-id": "המזהה \"$1\" אינו ידוע למערכת.
נא להשתמש במזהה ישות תקין.",
"wikibase-wikibaserepopage-unresolved-redirect": "$1 היא הפניה",
"wikibase-wikibaserepopage-storage-exception": "בעת ניסיון לטעון את $1
אירעה שגיעה: $2.",
+ "special-availablebadges": "סמלים זמינים",
+ "wikibase-availablebadges-emptylist": "אין סמלים מוגדרים בוויקי הזה.",
"special-itembytitle": "פריט לפי כותרת",
"wikibase-itembytitle-lookup-fieldset": "חיפוש פריטים לפי אתר וכותרת",
"wikibase-itembytitle-lookup-site": "אתר:",
@@ -334,6 +337,8 @@
"wikibase-listdatatypes-globe-coordinate-body": "נתונים מפורשים על
מיקום גאוגרפי בתור זוג קו־רוחב–קו־אורך ב־gms או במעלות עשרוניות לגוף השמימי
הנתון. בררת המחדל היא להשתמש בכדור הארץ ובמערכת גאודזית עולמית (WGS84).
מתווספים רזולוציה וטווח.\n* latitude – החלק המשתמע הראשון (float, dms, dm, dd)
של מחרוזת נקודות הציון, הכיוון ניתן בסימן בהתחלה או ב־N/S בסוף\n* longitude –
החלק המשתמע השני (float, dms, dm, dd) של מחרוזת נקודות הציון, הכיוון ניתן בסימן
בהתחלה או ב־E/W בסוף\n* globe ערך נתונים מפורש (?), נתון כגוף שמימי כאשר בררת
המחדל היא \"Earth\" (\"כדור הארץ\"), \"http://www.wikidata.org/entity/Q2\"\n*
precision – הדיוק המספרי של נקודת הציון",
"wikibase-listdatatypes-geo-shape-head": "צורה גאוגרפית",
"wikibase-listdatatypes-geo-shape-body": "קישור לנתוני מפה גאוגרפית
שמאוחסנת בוויקישיתוף (או ויקי אחר עם הגדרות מתאימות). ר'
https://www.mediawiki.org/wiki/Help:Map_Data לתיעוד נוסף על נתוני מפה.",
+ "wikibase-listdatatypes-tabular-data-head": "נתונים טבלאיים",
+ "wikibase-listdatatypes-tabular-data-body": "קישור לנתונים טבלאיים
בוויקישיתוף (או כל ויקי אחר שיוגדר). ר'
\"https://www.mediawiki.org/wiki/Help:Tabular_Data\" לתיעוד נוסף על נתונים
טבלאיים.",
"wikibase-listdatatypes-quantity-head": "כמות",
"wikibase-listdatatypes-quantity-body": "שדה נתונים מפורשים שמתייחס
ליחידה כלשהי שמודרת היטב. היחידה האמתית אמורה להיות בערכי הנתונים המוזנים.\n*
amount – חלק משתמע של המחרוזת (מיפוי של תחילית היחידה אינו ברור)\n* unit – חלק
משתמע של המחרוזת, בררת המחדל – \"1\" (מיפוי לגוף התקינה אינו ברור)\n*
upperbound – הגבול העליון של הכמות\n* lowerbound – הגבול התחתון של הכמות",
"wikibase-listdatatypes-monolingualtext-head": "טקסט חד־לשוני",
diff --git a/extensions/Wikibase/repo/i18n/ko.json
b/extensions/Wikibase/repo/i18n/ko.json
index 508d3e2..f81af2f 100644
--- a/extensions/Wikibase/repo/i18n/ko.json
+++ b/extensions/Wikibase/repo/i18n/ko.json
@@ -121,6 +121,7 @@
"wikibase-validator-label-conflict": "속성($3)은 이미 $2 언어 코드와 관련된 \"$1\"
레이블이 있습니다.",
"wikibase-validator-label-with-description-conflict": "항목($3)은 이미 같은
설명을 사용하는 $2 언어 코드와 관련된 \"$1\" 레이블이 있습니다.",
"wikibase-validator-label-no-entityid": "레이블은 유효한 항목 id가 아니어야 합니다.",
+ "wikibase-validator-illegal-tabular-data-title": "값은 \"Data:\"로 시작하고
\".tab\"으로 끝나야 합니다. 또, 제목은 콜론, 해시, 파이프와 같은 문자를 포함할 수 없습니다.",
"wikibase-validator-no-such-sitelink": "배지 편집을 시도할 때 \"$1\"에 대한 사이트링크를
찾을 수 없었습니다.",
"wikibase-validator-page-not-exists": "\"$1\" 문서가 존재하지 않습니다.",
"wikibase-validator-not-a-language": "\"$1\"은(는) 알려진 언어 코드가 아닙니다.",
diff --git a/extensions/Wikibase/repo/i18n/pl.json
b/extensions/Wikibase/repo/i18n/pl.json
index fad8ba9..9de7fc3 100644
--- a/extensions/Wikibase/repo/i18n/pl.json
+++ b/extensions/Wikibase/repo/i18n/pl.json
@@ -309,6 +309,7 @@
"wikibase-listdatatypes-commonsmedia-head": "Plik multimedialny z
Commons",
"wikibase-listdatatypes-commonsmedia-body": "Odwołuje się do plików
przechowywanych na Wikimedia Commons. Podczas wprowadzania będzie przeszukiwana
przestrzeń nazw „File” na Commons, aby odnaleźć pasujące wpisy.",
"wikibase-listdatatypes-globe-coordinate-head": "Współrzędne
geograficzne",
+ "wikibase-listdatatypes-tabular-data-head": "Dane tabelaryczne",
"wikibase-listdatatypes-quantity-head": "Ilość",
"wikibase-listdatatypes-monolingualtext-head": "Tekst jednojęzyczny",
"wikibase-listdatatypes-multilingualtext-head": "Tekst wielojęzyczny",
diff --git a/extensions/Wikibase/repo/i18n/pt-br.json
b/extensions/Wikibase/repo/i18n/pt-br.json
index 0d42709..97d2bca 100644
--- a/extensions/Wikibase/repo/i18n/pt-br.json
+++ b/extensions/Wikibase/repo/i18n/pt-br.json
@@ -114,6 +114,7 @@
"wikibase-move-error": "Você não pode mover páginas que estão em um
espaço nominal de dados nem mover páginas para dentro desse espaço nominal.",
"wikibase-validator-label-conflict": "Propriedade ($3) já possui o
rótulo \"$1\" associado com o código de idioma $2.",
"wikibase-validator-label-with-description-conflict": "Item ($3) já
possui o rótulo \"$1\" associado ao código de idioma $2, usando o mesmo texto
de descrição.",
+ "wikibase-validator-page-not-exists": "A página \"$1\" não existe.",
"wikibase-validator-not-a-language": "\"$1\" não é um código de idioma
conhecido.",
"wikibase-wikibaserepopage-not-itemid": "\"$1\" não é um ID de um item
válido.",
"wikibase-wikibaserepopage-invalid-langcode": "O código de idioma
\"$1\" é desconhecido. Utilize um código de idioma reconhecido pelo sistema,
tal como \"en\".",
@@ -219,6 +220,7 @@
"wikibase-noentity": "Esta entidade não existe. Você pode
[{{fullurl:{{#Special:Log}}|page={{FULLPAGENAMEE}}}} pesquisar nos registros
relacionados] para descobrir o que ocorreu.",
"wikibase-noentity-createone": "Você também pode [[$1|criar um novo]].",
"wikibase-listdatatypes-wikibase-item-head": "Item",
+ "wikibase-listdatatypes-wikibase-property-head": "Propriedade",
"wikibase-listdatatypes-commonsmedia-head": "Mídia do Commons",
"wikibase-listdatatypes-globe-coordinate-head": "Coordenada glogal",
"wikibase-listdatatypes-quantity-head": "Quantidade",
@@ -250,6 +252,8 @@
"apihelp-wbremoveclaims-param-summary": "Sumário para a edição. \nSerá
antecedido por um comentário gerado automaticamente. O limite de comprimento do
comentário automático juntamente com o sumário é de 260 caracteres. Esteja
ciente de que tudo que exceder este limite será cortado.",
"apihelp-wbremovequalifiers-param-summary": "Sumário para a edição.
\nSerá antecedido por um comentário gerado automaticamente. O limite de
comprimento do comentário automático juntamente com o sumário é de 260
caracteres. Esteja ciente de que tudo que exceder este limite será cortado.",
"apihelp-wbremovereferences-param-summary": "Sumário para a edição.
\nSerá antecedido por um comentário gerado automaticamente. O limite de
comprimento do comentário automático juntamente com o sumário é de 260
caracteres. Esteja ciente de que tudo que exceder este limite será cortado.",
+ "apihelp-wbsearchentities-param-search": "Pesquisar este texto.",
+ "apihelp-query+wbsearch-param-search": "Pesquisar este texto.",
"apihelp-wbsetaliases-param-new": "Se definido, uma nova entidade será
criada.\nDefina isso com o tipo da entidade que você deseja criar.",
"apihelp-wbsetaliases-param-summary": "Sumário para a edição. \nSerá
antecedido por um comentário gerado automaticamente. O limite de comprimento do
comentário automático juntamente com o sumário é de 260 caracteres. Esteja
ciente de que tudo que exceder este limite será cortado.",
"apihelp-wbsetclaim-param-summary": "Sumário para a edição. \nSerá
antecedido por um comentário gerado automaticamente. O limite de comprimento do
comentário automático juntamente com o sumário é de 260 caracteres. Esteja
ciente de que tudo que exceder este limite será cortado.",
diff --git a/extensions/Wikibase/repo/i18n/qqq.json
b/extensions/Wikibase/repo/i18n/qqq.json
index aee69df..94f1e66 100644
--- a/extensions/Wikibase/repo/i18n/qqq.json
+++ b/extensions/Wikibase/repo/i18n/qqq.json
@@ -335,7 +335,7 @@
"wikibase-entitydata-unsupported-format": "Error shown when the
requested output format is not supported for entity data (HTTP error
415).\n\nParameters:\n* $1 - the specified data format name",
"wikibase-entitydata-storage-error": "Error shown when the requested
entity could not be loaded.\n\nParameters:\n* $1 - entity ID\n* $2 - (Unused)
revision ID\nSee also:\n* {{msg-mw|Wikibase-entitydata-bad-revision}}",
"wikibase-entitydata-title": "Title shown on the special page when a
form or text is presented",
- "wikibase-entitydata-text": "Explanatory text shown on the special
page.",
+ "wikibase-entitydata-text": "Explanatory text shown on the special
page.\n* $1: List of supported formats",
"special-entitypage": "{{doc-special|EntityPage}}\nThis special page
redirects to the actual entity page on the repository the entity belongs to.",
"wikibase-entitypage-title": "Title shown on Special:EntityPage when
the explanatory text is presented",
"wikibase-entitypage-text": "Explanatory text shown on
Special:EntityPage when no ID has been provided.",
@@ -421,7 +421,7 @@
"wikibase-listdatatypes-multilingualtext-head":
"{{Wikibase-datatype-head|Multilingual
text|multilingualtext}}\n{{Identical|Multilingual text}}",
"wikibase-listdatatypes-multilingualtext-body":
"{{Wikibase-datatype-body|Multilingual text}}\n\nSee also:\n*
{{msg-mw|Wikibase-listdatatypes-multilingualtext-head}}",
"wikibase-listdatatypes-string-head":
"{{Wikibase-datatype-head|String}}\n{{Identical|String}}",
- "wikibase-listdatatypes-string-body": "{{doc-important|Do not translate
<code>language</code> and <code>text</code> (before
\"-\").}}\n{{Wikibase-datatype-body|String}}",
+ "wikibase-listdatatypes-string-body":
"{{Wikibase-datatype-body|String}}",
"wikibase-listdatatypes-time-head":
"{{Wikibase-datatype-head|Time}}\n{{Identical|Time}}",
"wikibase-listdatatypes-time-body": "{{Wikibase-datatype-body|Time}}",
"wikibase-listdatatypes-url-head":
"{{Wikibase-datatype-head|Url}}\n{{Identical|URL}}",
diff --git a/extensions/Wikibase/repo/i18n/zh-hans.json
b/extensions/Wikibase/repo/i18n/zh-hans.json
index 1ab2a5b..c7442a5 100644
--- a/extensions/Wikibase/repo/i18n/zh-hans.json
+++ b/extensions/Wikibase/repo/i18n/zh-hans.json
@@ -142,6 +142,7 @@
"wikibase-validator-label-no-entityid": "该标签不是有效的实体ID。",
"wikibase-validator-illegal-file-chars":
"文件名不允许保护冒号或斜杠字符。请只粘贴“File:”之后的文件名。",
"wikibase-validator-illegal-geo-shape-title":
"值必须以“Data:”开头,并以“.map”结尾。另外标题不应包含冒号、哈希或管道字符。",
+ "wikibase-validator-illegal-tabular-data-title":
"值必须以“Data:”开头,并以“.tab”结尾。另外标题不应包含冒号、哈希或管道字符。",
"wikibase-validator-no-such-media":
"文件“$1”在[https://commons.wikimedia.org/ 维基共享资源]不存在。",
"wikibase-validator-no-such-sitelink": "尝试编辑徽章时无法找到至“$1”的网站链接。",
"wikibase-validator-page-not-exists": "页面“$1”不存在。",
@@ -348,7 +349,9 @@
"wikibase-listdatatypes-globe-coordinate-head": "地球坐标",
"wikibase-listdatatypes-globe-coordinate-body":
"由gms或十进制经纬度度指定的地理位置的原始数据代码。默认为“地球”其次是“WGS84”。其加入一解析度及范围。\n*
纬度——隐藏地理位置代码的第一部分,包含float、dms、dm及dd,方向由前缀符号或后缀N或S提供\n*
经度——隐藏地理位置代码的第二部分,包含float、dms、dm及dd,方向由前缀符号或后缀E或W提供\n*
星球——精确(?)的数据值,作为恒星主体,默认为地球“http://www.wikidata.org/entity/Q2”\n* 精度——数值化的坐标精度",
"wikibase-listdatatypes-geo-shape-head": "地理形状",
- "wikibase-listdatatypes-geo-shape-body":
"链接到存储在维基共享资源(或其他配置的wiki)上的地理图数据。参见“https://www.mediawiki.org/wiki/Help:Map_Data
”获取更多有关地图数据的文档。",
+ "wikibase-listdatatypes-geo-shape-body":
"链接到存储在维基共享资源(或其他配置的wiki)上的地理图数据。参见“https://www.mediawiki.org/wiki/Help:Map_Data”获取更多有关地图数据的文档。",
+ "wikibase-listdatatypes-tabular-data-head": "表格数据",
+ "wikibase-listdatatypes-tabular-data-body":
"链接到存储在维基共享资源(或其他配置的wiki)上的表格数据。参见“https://www.mediawiki.org/wiki/Help:Tabular_Data”获取更多有关表格数据的文档。",
"wikibase-listdatatypes-quantity-head": "数量",
"wikibase-listdatatypes-quantity-body":
"一些精确定义单位的数值的原始数据字段。实际单位也输入到数据中。\n* 数额——字符串的暗示部分(单位前缀的映射未知)\n*
单位——默认为“1”字符串的暗示部分(映射的规范实体未知)\n* 上限——量的最高界限\n* 下限——量的最低界限",
"wikibase-listdatatypes-monolingualtext-head": "单语文本",
@@ -356,7 +359,7 @@
"wikibase-listdatatypes-multilingualtext-head": "多语文本",
"wikibase-listdatatypes-multilingualtext-body":
"一个必须翻译成其他语言的串的原始数据字段。典型的是用于具有不同于当地书写形式但却全球知名的实体名称。它们可能在语言和文字系统上都不同。\n*语言——标定文本部分语言的明确的值\n*值——特定语言变体字符串的明确的值",
"wikibase-listdatatypes-string-head": "字符串",
- "wikibase-listdatatypes-string-body":
"符号的原始数据字段。典型的用途是与读者语言无关之书写方式的标识符。\n*文字——特定语言变体字串的明确的数值",
+ "wikibase-listdatatypes-string-body":
"符号的原始数据字段。典型的用途是与读者语言无关之书写方式的标识符。\n* 值——特定语言变体字串的明确的数值",
"wikibase-listdatatypes-time-head": "时间",
"wikibase-listdatatypes-time-body":
"用于一个时间点的文字数据字段。给出一个拥有一定精度和边界的日期和时间。时间以指定的日历模型保存在内部。\n* 时间 – 时间点的确定值,表现为类似ISO
8601标准的时间戳,例如+2013-01-01T00:00:00Z。年份总是用4~16位数来标记并保存。\n* 时区 –
有符号整数确定值。时区信息是以分为单位以国际标准时间(UTC)为基准的一个偏移量。\n* 早于 –
表示它发生时可能晚于给定时间多少单位的整数确定值。单位由精度给定。\n* 晚于 – 表示它发生时可能早于给定时间多少单位的整数确定值。单位由精度给定。\n*
精度 – 编码为短整数的确定值。数字含义如下:0 - 十亿年,1 - 亿年,...,6 - 千年,7 - 世纪,8 - 十年,9 - 年,10 - 月,11
- 天,12 - 小时,13 - 分,14 - 秒。\n* 日历模型 – 由一个URI给定的确定值。它可识别时间戳的日历模型。",
"wikibase-listdatatypes-url-head": "URL",
@@ -415,8 +418,8 @@
"apihelp-wbeditentity-example-3": "创建一个包含json数据的新属性,返回完整的实体结构",
"apihelp-wbeditentity-example-4": "从ID为<samp>Q42</samp>的实体清空一切数据",
"apihelp-wbeditentity-example-5":
"从ID为<samp>Q42</samp>的实体清除所有数据,并设置用于<var>en</var>的标签",
- "apihelp-wbeditentity-example-6": "设置<var>nowiki</var>的站点链接,覆盖已有的",
- "apihelp-wbeditentity-example-7": "设置<var>nb</var>的描述,如果已存在,覆盖已有的",
+ "apihelp-wbeditentity-example-6": "设置<var>nowiki</var>的网站链接,如果已存在则将其覆盖",
+ "apihelp-wbeditentity-example-7": "设置<var>nb</var>的描述,如果已存在则将其覆盖",
"apihelp-wbeditentity-example-8":
"在使用属性<samp>P56</samp>和值“<var>ExampleString</var>”的项中创建一个新的声称",
"apihelp-wbeditentity-example-9":
"从GUID为<var>Q42$D8404CDA-25E4-4334-AF13-A3290BCD9C0F</var>和<var>Q42$GH678DSA-01PQ-28XC-HJ90-DDFD9990126X</var>的项中移除声称",
"apihelp-wbeditentity-example-10": "设置声称与GUID至声称的值",
diff --git
a/extensions/Wikibase/repo/includes/ChangeOp/Deserialization/ClaimsChangeOpDeserializer.php
b/extensions/Wikibase/repo/includes/ChangeOp/Deserialization/ClaimsChangeOpDeserializer.php
index abec317..75c36f3 100644
---
a/extensions/Wikibase/repo/includes/ChangeOp/Deserialization/ClaimsChangeOpDeserializer.php
+++
b/extensions/Wikibase/repo/includes/ChangeOp/Deserialization/ClaimsChangeOpDeserializer.php
@@ -11,7 +11,7 @@
use Wikibase\Repo\ChangeOp\ChangeOpDeserializer;
/**
- * Constructs ChangeOps for claim change requests
+ * Constructs ChangeOps for statement change requests (referred to as "claims"
for legacy reasons).
*
* @license GPL-2.0+
*/
@@ -41,25 +41,29 @@
* @param array[] $changeRequest
*
* @return ChangeOp
- *
* @throws ChangeOpDeserializationException
*/
public function createEntityChangeOp( array $changeRequest ) {
$this->assertIsArray( $changeRequest['claims'] );
- $changeOps = [];
-
//check if the array is associative or in arrays by property
if ( array_keys( $changeRequest['claims'] ) !== range( 0,
count( $changeRequest['claims'] ) - 1 ) ) {
+ $changeOps = [];
+
foreach ( $changeRequest['claims'] as $subClaims ) {
- $changeOps = array_merge( $changeOps,
- $this->getRemoveStatementChangeOps(
$subClaims ),
- $this->getModifyStatementChangeOps(
$subClaims ) );
+ $this->assertIsArray( $subClaims );
+
+ $changeOps = array_merge(
+ $changeOps,
+ $this->getStatementChangeOps(
$subClaims )
+ );
}
} else {
- $changeOps = array_merge( $changeOps,
- $this->getRemoveStatementChangeOps(
$changeRequest['claims'] ),
- $this->getModifyStatementChangeOps(
$changeRequest['claims'] ) );
+ $changeOps = $this->getStatementChangeOps(
$changeRequest['claims'] );
+ }
+
+ if ( count( $changeOps ) === 1 ) {
+ return reset( $changeOps );
}
return new ChangeOps( $changeOps );
@@ -69,14 +73,19 @@
* @param array[] $statements array of serialized statements
*
* @return ChangeOp[]
- *
* @throws ChangeOpDeserializationException
*/
- private function getModifyStatementChangeOps( array $statements ) {
- $opsToReturn = [];
+ private function getStatementChangeOps( array $statements ) {
+ $changeOps = [];
foreach ( $statements as $statementArray ) {
- if ( !array_key_exists( 'remove', $statementArray ) ) {
+ if ( array_key_exists( 'remove', $statementArray ) ) {
+ if ( !array_key_exists( 'id', $statementArray )
) {
+ $this->throwException( 'Cannot remove a
claim with no GUID', 'invalid-claim' );
+ }
+
+ $changeOps[] =
$this->statementChangeOpFactory->newRemoveStatementOp( $statementArray['id'] );
+ } else {
try {
$statement =
$this->statementDeserializer->deserialize( $statementArray );
@@ -84,34 +93,14 @@
throw new Exception( 'Statement
serialization did not contain a Statement.' );
}
- $opsToReturn[] =
$this->statementChangeOpFactory->newSetStatementOp( $statement );
+ $changeOps[] =
$this->statementChangeOpFactory->newSetStatementOp( $statement );
} catch ( Exception $ex ) {
$this->throwException(
$ex->getMessage(), 'invalid-claim' );
}
}
}
- return $opsToReturn;
- }
- /**
- * Get changeops that remove all claims that have the 'remove' key in
the array
- *
- * @param array[] $statements array of serialized claims
- *
- * @return ChangeOp[]
- */
- private function getRemoveStatementChangeOps( array $statements ) {
- $opsToReturn = [];
- foreach ( $statements as $statementArray ) {
- if ( array_key_exists( 'remove', $statementArray ) ) {
- if ( array_key_exists( 'id', $statementArray )
) {
- $opsToReturn[] =
$this->statementChangeOpFactory->newRemoveStatementOp( $statementArray['id'] );
- } else {
- $this->throwException( 'Cannot remove a
claim with no GUID', 'invalid-claim' );
- }
- }
- }
- return $opsToReturn;
+ return $changeOps;
}
/**
diff --git a/extensions/Wikibase/repo/includes/Hooks/LinkBeginHookHandler.php
b/extensions/Wikibase/repo/includes/Hooks/LinkBeginHookHandler.php
index 439bf26..9f45378 100644
--- a/extensions/Wikibase/repo/includes/Hooks/LinkBeginHookHandler.php
+++ b/extensions/Wikibase/repo/includes/Hooks/LinkBeginHookHandler.php
@@ -171,8 +171,8 @@
$out = $context->getOutput();
$outTitle = $out->getTitle();
- $targetIsForeignEntityPage = $this->isForeignEntityPage(
$target );
- $isLocal = !$targetIsForeignEntityPage;
+ $foreignEntityId = $this->parseForeignEntityId( $target );
+ $isLocal = !$foreignEntityId;
if ( $isLocal
&& !$this->entityNamespaceLookup->isEntityNamespace(
$target->getNamespace() )
@@ -215,7 +215,7 @@
return;
}
- $entityId = $this->getEntityIdFromTarget( $target );
+ $entityId = $foreignEntityId ?:
$this->entityIdLookup->getEntityIdForTitle( $target );
if ( !$entityId ) {
return;
@@ -252,38 +252,18 @@
/**
* @param LinkTarget $target
*
- * @return bool
+ * @return EntityId|null
*/
- private function isForeignEntityPage( LinkTarget $target ) {
+ private function parseForeignEntityId( LinkTarget $target ) {
$interwiki = $target->getInterwiki();
if ( $interwiki === '' ||
!$this->interwikiLookup->isValidInterwiki( $interwiki ) ) {
- return false;
+ return null;
}
- return $this->startsWith( $target->getText(),
'Special:EntityPage/' );
- }
+ $idPart = $this->extractForeignIdString( $target->getText() );
- /**
- * @param string $haystack
- * @param string $needle
- *
- * @return bool
- */
- private function startsWith( $haystack, $needle ) {
- return strncmp( $haystack, $needle, strlen( $needle ) ) === 0;
- }
-
- /**
- * @param Title $target
- *
- * @return null|EntityId
- */
- private function getEntityIdFromTarget( Title $target ) {
- if ( $this->isForeignEntityPage( $target ) ) {
- $interwiki = $target->getInterwiki();
- $idPart = substr( $target->getText(), strlen(
'Special:EntityPage/' ) );
-
+ if ( $idPart !== null ) {
try {
// FIXME: This assumes repository name is equal
to interwiki. This assumption might
// become invalid
@@ -292,11 +272,26 @@
);
} catch ( EntityIdParsingException $ex ) {
}
-
- return null;
}
- return $this->entityIdLookup->getEntityIdForTitle( $target );
+ return null;
+ }
+
+ /**
+ * @param string $pageName
+ *
+ * @return string|null
+ */
+ private function extractForeignIdString( $pageName ) {
+ // FIXME: This encodes knowledge from
EntityContentFactory::getTitleForId
+ $prefix = 'Special:EntityPage/';
+ $prefixLength = 19;
+
+ if ( strncmp( $pageName, $prefix, $prefixLength ) === 0 ) {
+ return substr( $pageName, $prefixLength );
+ }
+
+ return null;
}
/**
diff --git a/extensions/Wikibase/repo/includes/Specials/SpecialEntityData.php
b/extensions/Wikibase/repo/includes/Specials/SpecialEntityData.php
index 82f680e..fa2cdaf 100644
--- a/extensions/Wikibase/repo/includes/Specials/SpecialEntityData.php
+++ b/extensions/Wikibase/repo/includes/Specials/SpecialEntityData.php
@@ -30,8 +30,15 @@
*/
private $requestHandler = null;
+ /**
+ * @var EntityDataFormatProvider|null
+ */
+ private $entityDataFormatProvider = null;
+
public function __construct() {
parent::__construct( 'EntityData' );
+
+ $this->entityDataFormatProvider = new
EntityDataFormatProvider();
}
/**
@@ -75,8 +82,6 @@
$titleLookup = $wikibaseRepo->getEntityTitleLookup();
$entityIdParser = $wikibaseRepo->getEntityIdParser();
- $entityDataFormatProvider = new EntityDataFormatProvider();
-
$serializerFactoryOptions =
SerializerFactory::OPTION_SERIALIZE_MAIN_SNAKS_WITHOUT_HASH +
SerializerFactory::OPTION_SERIALIZE_REFERENCE_SNAKS_WITHOUT_HASH;
@@ -91,7 +96,7 @@
$wikibaseRepo->getValueSnakRdfBuilderFactory(),
$wikibaseRepo->getEntityRdfBuilderFactory(),
$wikibaseRepo->getSiteLookup()->getSites(),
- $entityDataFormatProvider,
+ $this->entityDataFormatProvider,
$serializerFactory,
$wikibaseRepo->getEntitySerializer(
$serializerFactoryOptions ),
$wikibaseRepo->getSiteLookup(),
@@ -100,15 +105,15 @@
$maxAge = $wikibaseRepo->getSettings()->getSetting(
'dataSquidMaxage' );
$formats = $wikibaseRepo->getSettings()->getSetting(
'entityDataFormats' );
- $entityDataFormatProvider->setFormatWhiteList( $formats );
+ $this->entityDataFormatProvider->setFormatWhiteList( $formats );
$defaultFormat = empty( $formats ) ? 'html' : $formats[0];
// build a mapping of formats to file extensions and include
HTML
$supportedExtensions = array();
$supportedExtensions['html'] = 'html';
- foreach ( $entityDataFormatProvider->getSupportedFormats() as
$format ) {
- $ext = $entityDataFormatProvider->getExtension( $format
);
+ foreach (
$this->entityDataFormatProvider->getSupportedFormats() as $format ) {
+ $ext = $this->entityDataFormatProvider->getExtension(
$format );
if ( $ext !== null ) {
$supportedExtensions[$format] = $ext;
@@ -128,7 +133,7 @@
$entityRevisionLookup,
$entityRedirectLookup,
$serializationService,
- $entityDataFormatProvider,
+ $this->entityDataFormatProvider,
$defaultFormat,
$maxAge,
$wgUseSquid,
@@ -162,7 +167,24 @@
public function showForm() {
//TODO: show input form with selector for format and field for
ID. Add some explanation,
// point to meta-info like schema and license, and
generally be a helpful data endpoint.
- $this->getOutput()->showErrorPage( 'wikibase-entitydata-title',
'wikibase-entitydata-text' );
+ $supportedFormats =
$this->entityDataFormatProvider->getSupportedExtensions();
+ $supportedFormats[] = 'html';
+ $this->getOutput()->showErrorPage(
+ 'wikibase-entitydata-title',
+ 'wikibase-entitydata-text',
+ [ $this->getOutput()->getLanguage()->commaList(
$supportedFormats ) ]
+ );
+ }
+
+ /**
+ * @param EntityDataFormatProvider $entityDataFormatProvider
+ *
+ * TODO: Inject them
+ */
+ public function setEntityDataFormatProvider(
+ EntityDataFormatProvider $entityDataFormatProvider
+ ) {
+ $this->entityDataFormatProvider = $entityDataFormatProvider;
}
}
diff --git
a/extensions/Wikibase/repo/tests/phpunit/includes/Specials/SpecialEntityDataTest.php
b/extensions/Wikibase/repo/tests/phpunit/includes/Specials/SpecialEntityDataTest.php
index fbee6da..20823c3 100644
---
a/extensions/Wikibase/repo/tests/phpunit/includes/Specials/SpecialEntityDataTest.php
+++
b/extensions/Wikibase/repo/tests/phpunit/includes/Specials/SpecialEntityDataTest.php
@@ -5,6 +5,7 @@
use DataValues\Serializers\DataValueSerializer;
use FauxRequest;
use FauxResponse;
+use Language;
use HashSiteStore;
use HttpError;
use OutputPage;
@@ -52,6 +53,7 @@
$page->getContext()->setOutput( new OutputPage(
$page->getContext() ) );
$page->setRequestHandler( $this->newRequestHandler() );
+ $page->setEntityDataFormatProvider(
$this->newEntityDataFormatProvider() );
return $page;
}
@@ -141,7 +143,6 @@
$cases[$n][5] = array(); // response headers
}
}
-
return $cases;
}
@@ -189,4 +190,22 @@
}
}
+ private function newEntityDataFormatProvider() {
+ $entityDataFormatProvider = new EntityDataFormatProvider();
+ $entityDataFormatProvider->setFormatWhiteList( [ 'json',
'rdfxml', 'ntriples' ] );
+
+ return $entityDataFormatProvider;
+ }
+
+ public function testEntityDataFormatProvider() {
+ $this->setContentLang( Language::factory( 'en' ) );
+ $request = new FauxRequest();
+ $request->response()->header( 'Status: 200 OK', true, 200 ); //
init/reset
+
+ list( $output, ) = $this->executeSpecialPage( '', $request );
+
+ $this->assertRegExp( '/Supported formats are: json, nt, rdf,
html/', $output, "output" );
+
+ }
+
}
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index 336250e..a6f843a 100644
--- a/vendor/composer/installed.json
+++ b/vendor/composer/installed.json
@@ -1358,12 +1358,12 @@
"source": {
"type": "git",
"url":
"https://github.com/wikimedia/mediawiki-extensions-Wikibase.git",
- "reference": "9d44440af6ab950d1fd60eea2f3b098cb2efba9b"
+ "reference": "ac94fbedfff67d4a50bdb9c374e8fb54b3d31d06"
},
"dist": {
"type": "zip",
- "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/9d44440af6ab950d1fd60eea2f3b098cb2efba9b",
- "reference": "9d44440af6ab950d1fd60eea2f3b098cb2efba9b",
+ "url":
"https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/zipball/ac94fbedfff67d4a50bdb9c374e8fb54b3d31d06",
+ "reference": "ac94fbedfff67d4a50bdb9c374e8fb54b3d31d06",
"shasum": ""
},
"require": {
@@ -1395,7 +1395,7 @@
"jakub-onderka/php-parallel-lint": ">=0.3 <0.10",
"mediawiki/mediawiki-codesniffer": ">=0.7 <0.8"
},
- "time": "2017-04-20 08:41:18",
+ "time": "2017-04-21 06:54:23",
"type": "mediawiki-extension",
"installation-source": "dist",
"autoload": {
@@ -1780,7 +1780,7 @@
"source": {
"type": "git",
"url":
"https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseQualityConstraints",
- "reference": "c2aa62f43030e3c57f7631f3e9cc4c750bd1de8e"
+ "reference": "1b888d356f9619ca5fd14a0bc4c0d253dcdc910f"
},
"require": {
"php": ">=5.5.9",
@@ -1793,7 +1793,7 @@
"phpunit/phpunit": "^3.7.37|~4.5",
"satooshi/php-coveralls": "master-dev"
},
- "time": "2017-04-07 17:00:07",
+ "time": "2017-04-20 09:19:50",
"type": "mediawiki-extension",
"installation-source": "source",
"autoload": {
--
To view, visit https://gerrit.wikimedia.org/r/349398
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I32f191b323776285589335350d3d389638b9cb6b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikidata
Gerrit-Branch: master
Gerrit-Owner: WikidataBuilder <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Gergő Tisza <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits