MarkTraceur has uploaded a new change for review. https://gerrit.wikimedia.org/r/60961
Change subject: i18n-able-ize the [NEW] string ...................................................................... i18n-able-ize the [NEW] string Done collaboratively as a teaching exercise! Also changed the format a little - now a bolded text rather than just a simple bracketed thing. Bug: 43412 Change-Id: Ib1a623b7a17b33aaec6e83c99615a64172141c30 --- M SemanticWatchlist.i18n.php M specials/SpecialSemanticWatchlist.php 2 files changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticWatchlist refs/changes/61/60961/1 diff --git a/SemanticWatchlist.i18n.php b/SemanticWatchlist.i18n.php index cacd442..ac124f9 100644 --- a/SemanticWatchlist.i18n.php +++ b/SemanticWatchlist.i18n.php @@ -58,6 +58,7 @@ 'swl-watchlist-position' => "Showing '''$1''' of the last {{PLURAL:$1|change|changes}} starting with '''#$2'''.", 'swl-watchlist-insertions' => 'New:', 'swl-watchlist-deletions' => 'Old:', + 'swl-new-item' => 'NEW', 'swl-watchlist-pagincontrol' => 'View ($1) ($2)', 'swl-watchlist-firstn' => 'first $1', 'swl-watchlist-firstn-title' => 'First $1 {{PLURAL:$1|result|results}}', @@ -141,6 +142,7 @@ {{Identical|New}}', 'swl-watchlist-deletions' => 'This message precedes the display of the old property value set for the watched property. {{Identical|Old}}', + 'swl-new-item' => 'This message is used to draw the attention of the user to an entry on the watchlist as a new item.', 'swl-watchlist-pagincontrol' => 'This message allows to navigate through the changes on [[Special:SemanticWatchlist]] in a paginated format. * $1 - replaced by {{msg-mw|Swl-watchlist-firstn}} * $2 - replaced by {{msg-mw|Nextn}} diff --git a/specials/SpecialSemanticWatchlist.php b/specials/SpecialSemanticWatchlist.php index 34be6f4..298556b 100644 --- a/specials/SpecialSemanticWatchlist.php +++ b/specials/SpecialSemanticWatchlist.php @@ -356,7 +356,7 @@ array( 'href' => SpecialPage::getTitleFor( 'Block', $edit->getUser()->getName() )->getLocalURL() ), wfMsg( 'blocklink' ) ) . ')' . - ( $edit->getTime() > $this->lastViewed ? ' [NEW]' : '' ) . + ( $edit->getTime() > $this->lastViewed ? ' <b>' . wfMsg( 'swl-new-item' ) . '</b>' : '' ) . '</p>' ; -- To view, visit https://gerrit.wikimedia.org/r/60961 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib1a623b7a17b33aaec6e83c99615a64172141c30 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SemanticWatchlist Gerrit-Branch: master Gerrit-Owner: MarkTraceur <mtrac...@member.fsf.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits