Umherirrender has uploaded a new change for review.
https://gerrit.wikimedia.org/r/74636
Change subject: Add flag 'D' for wikidata edits on old watchlist/recentchanges
......................................................................
Add flag 'D' for wikidata edits on old watchlist/recentchanges
Using $wgRecentChangesFlag for this,
which was added which If69de05c to core.
Change-Id: Idc666db1b1b2b6656fa7b593f564f3f9c885f35f
---
M client/WikibaseClient.i18n.php
M client/WikibaseClient.php
M client/includes/recentchanges/ExternalChangesLine.php
3 files changed, 9 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/36/74636/1
diff --git a/client/WikibaseClient.i18n.php b/client/WikibaseClient.i18n.php
index aa1f18e..da1eb57 100644
--- a/client/WikibaseClient.i18n.php
+++ b/client/WikibaseClient.i18n.php
@@ -58,6 +58,8 @@
'wikibase-property-notsupportedyet' => 'Wikibase does not yet support
property type for $1 property.',
'wikibase-rc-hide-wikidata' => '$1 Wikidata',
'wikibase-rc-show-wikidata-pref' => 'Show Wikidata edits in recent
changes',
+ 'wikibase-rc-wikibase-edit-letter' => 'D',
+ 'wikibase-rc-wikibase-edit-title' => 'Wikidata edit',
'wikibase-watchlist-show-changes-pref' => 'Show Wikidata edits in your
watchlist',
'wikibase-error-serialize-error' => 'Failed to serialize data.',
'wikibase-error-invalid-entity-id' => 'The ID entered is unknown to the
system. Please use a valid entity ID.',
@@ -166,6 +168,8 @@
Parameters:
* $1 - a link with the text {{msg-mw|show}} or {{msg-mw|hide}}',
'wikibase-rc-show-wikidata-pref' => 'Option in the recent changes
section of preferences to show wikibase changes by default in recent changes.',
+ 'wikibase-rc-wikibase-edit-letter' => "Very short form of \"'''wikidata
edit'''\". Used in [[Special:RecentChanges]] and [[Special:Watchlist]].",
+ 'wikibase-rc-wikibase-edit-title' => 'Tooltip for
{{msg-mw|wikibase-rc-wikibase-edit-letter}}',
'wikibase-watchlist-show-changes-pref' => 'Option in the watchlist
section of preferences to always show wikibase edits by default in the
watchlist.',
'wikibase-error-serialize-error' => 'Generic error for when entity data
failed to serialize or cannot be handled.',
'wikibase-error-invalid-entity-id' => 'Generic error message when an
invalid entity ID was entered.',
diff --git a/client/WikibaseClient.php b/client/WikibaseClient.php
index 70500a3..72a362b 100644
--- a/client/WikibaseClient.php
+++ b/client/WikibaseClient.php
@@ -47,7 +47,7 @@
call_user_func( function() {
global $wgExtensionCredits, $wgExtensionMessagesFiles,
$wgAutoloadClasses, $wgHooks;
global $wgAPIMetaModules, $wgSpecialPages, $wgSpecialPageGroups,
$wgResourceModules;
- global $wgWBClientStores, $wgWBClientSettings;
+ global $wgWBClientStores, $wgWBClientSettings, $wgRecentChangesFlags;
$wgExtensionCredits['wikibase'][] = array(
@@ -173,6 +173,9 @@
if ( defined( 'WB_EXPERIMENTAL_FEATURES' ) && WB_EXPERIMENTAL_FEATURES
) {
include_once( $dir . 'config/WikibaseClient.experimental.php' );
}
+
+ $wgRecentChangesFlags['wikibase-edit'] = array( 'letter' =>
'wikibase-rc-wikibase-edit-letter',
+ 'title' => 'wikibase-rc-wikibase-edit-title' );
} );
$wgWBSettings =& $wgWBClientSettings; // B/C alias
diff --git a/client/includes/recentchanges/ExternalChangesLine.php
b/client/includes/recentchanges/ExternalChangesLine.php
index 49ab4a1..7ff455b 100644
--- a/client/includes/recentchanges/ExternalChangesLine.php
+++ b/client/includes/recentchanges/ExternalChangesLine.php
@@ -100,6 +100,7 @@
}
$line .= self::changeSeparator();
+ $line .= $cl->recentChangesFlags( array( 'wikibase-edit' =>
true ), '' ) . ' ';
$title = $rc->getTitle();
$line .= \Linker::link( $title );
--
To view, visit https://gerrit.wikimedia.org/r/74636
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc666db1b1b2b6656fa7b593f564f3f9c885f35f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits