Mattflaschen has uploaded a new change for review. https://gerrit.wikimedia.org/r/217432
Change subject: Point from -irc messages to main messages, and make it more greppable ...................................................................... Point from -irc messages to main messages, and make it more greppable Bug: T101941 Change-Id: I1fbde484bb1a92cbf423bd005a2300d8a8d7cd3d --- M i18n/qqq.json M includes/Formatter/AbstractFormatter.php 2 files changed, 18 insertions(+), 17 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow refs/changes/32/217432/1 diff --git a/i18n/qqq.json b/i18n/qqq.json index ae4fa3e..78d82c3 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -199,45 +199,45 @@ "flow-rev-message-edit-post-recentchanges": "Used as a revision comment (in RecentChanges) when a post has been edited.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who edited the post. Can be used for GENDER\n* $3 - the URL of the post\n* $4 - the name of the topic that the post belongs to\n{{Related|Flow-rev-message}}", "flow-rev-message-edit-post-recentchanges-summary": "Used as edit summary (in RecentChanges) when a post has been edited.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who edited the post. Can be used for GENDER\n* $3 - the URL of the post\n* $4 - the name of the topic that the post belongs to\n{{Related|Flow-rev-message}}", "flow-rev-message-edit-post-contributions": "Used as a revision comment (in Contributions) when a post has been edited.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who edited the post. Can be used for GENDER\n* $3 - the URL of the post\n* $4 - the name of the topic that the post belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-edit-post-irc": "{{notranslate}}", + "flow-rev-message-edit-post-irc": "IRC version of {{msg-mw|flow-rev-message-edit-post}} {{notranslate}}", "flow-rev-message-reply": "Used as a revision comment when a new reply has been posted.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who replied. Can be used for GENDER\n* $3 - the URL of the post\n* $4 - the name of the topic that was commented on\n* $5 - truncated summary of the reply content\n{{Related|Flow-rev-message}}", "flow-rev-message-reply-recentchanges": "Used as a revision comment (in RecentChanges) when a new reply has been posted.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who replied. Can be used for GENDER\n* $3 - the URL of the post\n* $4 - the name of the topic that was commented on\n* $5 - truncated summary of the reply content\n{{Related|Flow-rev-message}}", "flow-rev-message-reply-contributions": "Used as a revision comment (in Contributions) when a new reply has been posted.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who replied. Can be used for GENDER\n* $3 - the URL of the post\n* $4 - the name of the topic that was commented on\n* $5 - truncated summary of the reply content\n{{Related|Flow-rev-message}}", - "flow-rev-message-reply-irc": "{{notranslate}}", + "flow-rev-message-reply-irc": "IRC version of {{msg-mw|flow-rev-message-reply}} {{notranslate}}", "flow-rev-message-reply-bundle": "When multiple replies have been posted, they're bundled. This is the message to describe that multiple replies were posted.\n\nParameters:\n* $1 - the amount of replies posted\n{{Related|Flow-rev-message}}", "flow-rev-message-new-post": "Used as revision comment when the topic has been created.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username. Can be used for GENDER\n* $3 - the URL of the topic\n* $4 - the topic title\n{{Related|Flow-rev-message}}", "flow-rev-message-new-post-recentchanges": "Used as revision comment (in RecentChanges) when the topic has been created.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username. Can be used for GENDER\n* $3 - the URL of the topic\n* $4 - the topic title\n{{Related|Flow-rev-message}}", "flow-rev-message-new-post-recentchanges-summary": "Used as edit summary (in RecentChanges) when the topic has been created.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username. Can be used for GENDER\n* $3 - the URL of the topic\n* $4 - the topic title\n{{Related|Flow-rev-message}}", "flow-rev-message-new-post-contributions": "Used as revision comment (in Contributions) when the topic has been created.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username. Can be used for GENDER\n* $3 - the URL of the topic\n* $4 - the topic title\n{{Related|Flow-rev-message}}", - "flow-rev-message-new-post-irc": "{{notranslate}}", + "flow-rev-message-new-post-irc": "IRC version of {{msg-mw|flow-rev-message-new-post}} {{notranslate}}", "flow-rev-message-edit-title": "Used as revision comment when a post has been edited.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who edited the title. Can be used for GENDER\n* $3 - the URL of the topic\n* $4 - the topic title\n* $5 - the previous topic title\n{{Related|Flow-rev-message}}", - "flow-rev-message-edit-title-irc": "{{notranslate}}", + "flow-rev-message-edit-title-irc": "IRC version of {{msg-mw|flow-rev-message-edit-title}} {{notranslate}}", "flow-rev-message-create-header": "Used as revision comment when the description has been created.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who created the description. Can be used for GENDER.\n{{Related|Flow-rev-message}}", - "flow-rev-message-create-header-irc": "{{notranslate}}", + "flow-rev-message-create-header-irc": "IRC version of {{msg-mw|flow-rev-message-create-header}} {{notranslate}}", "flow-rev-message-edit-header": "Used as revision comment when the description has been edited.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who edited the description. Can be used for GENDER.\n{{Related|Flow-rev-message}}", - "flow-rev-message-edit-header-irc": "{{notranslate}}", + "flow-rev-message-edit-header-irc": "IRC version of {{msg-mw|flow-rev-message-edit-header}} {{notranslate}}", "flow-rev-message-create-topic-summary": "Used as revision comment when a topic summary has been created.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who created the topic summary. Can be used for GENDER\n* $3 - the topic this summary belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-create-topic-summary-irc": "{{notranslate}}", + "flow-rev-message-create-topic-summary-irc": "IRC version of {{msg-mw|flow-rev-message-create-topic-summary}} {{notranslate}}", "flow-rev-message-edit-topic-summary": "Used as revision comment when a topic summary has been edited.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who edited the topic summary. Can be used for GENDER\n* $3 - the topic this summary belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-edit-topic-summary-irc": "{{notranslate}}", + "flow-rev-message-edit-topic-summary-irc": "IRC version of {{msg-mw|flow-rev-message-edit-topic-summary}} {{notranslate}}", "flow-rev-message-hid-post": "Used as revision comment when a post has been hidden.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who moderated the comment. Can be used for GENDER\n* $3 - (Optional) username of the user who had posted the comment. Can be used for GENDER\n* $4 - permalink to the comment\n* $5 - Reason, from the moderating user, for moderating this post\n* $6 - Name of the topic the post belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-hid-post-irc": "{{notranslate}}", + "flow-rev-message-hid-post-irc": "IRC version of {{msg-mw|flow-rev-message-hid-post}} {{notranslate}}", "flow-rev-message-deleted-post": "Used as revision comment when a post has been deleted.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who moderated the comment. Can be used for GENDER\n* $3 - (Optional) username of the user who had posted the comment. Can be used for GENDER\n* $4 - permalink to the comment\n* $5 - Reason, from the moderating user, for moderating this post\n* $6 - Name of the topic the post belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-deleted-post-irc": "{{notranslate}}", + "flow-rev-message-deleted-post-irc": "IRC version of {{msg-mw|flow-rev-message-deleted-post}} {{notranslate}}", "flow-rev-message-suppressed-post": "Used as revision comment when a post has been suppressed.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who moderated the comment. Can be used for GENDER\n* $3 - (Optional) username of the user who had posted the comment. Can be used for GENDER\n* $4 - permalink to the comment\n* $5 - Reason, from the moderating user, for moderating this post\n* $6 - Name of the topic the post belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-suppressed-post-irc": "{{notranslate}}", + "flow-rev-message-suppressed-post-irc": "IRC version of {{msg-mw|flow-rev-message-suppressed-post}} {{notranslate}}", "flow-rev-message-restored-post": "Used as revision comment when a post has been restored (un-hidden).\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who restored the comment. Can be used for GENDER\n* $3 - (Optional) username of the user who had posted the comment. Can be used for GENDER\n* $4 - permalink to the comment\n* $5 - Reason, from the moderating user, for moderating this post\n* $6 - Name of the topic the post belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-restored-post-irc": "{{notranslate}}", + "flow-rev-message-restored-post-irc": "IRC version of {{msg-mw|flow-rev-message-restored-post}} {{notranslate}}", "flow-rev-message-hid-topic": "Used as revision comment when a topic has been hidden.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who moderated the topic. Can be used for GENDER\n* $3 - (Optional) username of the user who had posted the topic. Can be used for GENDER\n* $4 - permalink to the topic\n* $5 - Reason, from the moderating user, for moderating this topic\n* $6 - Name of the topic the post belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-hid-topic-irc": "{{notranslate}}", + "flow-rev-message-hid-topic-irc": "IRC version of {{msg-mw|flow-rev-message-hid-topic}} {{notranslate}}", "flow-rev-message-deleted-topic": "Used as revision comment when a topic has been deleted.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who moderated the topic. Can be used for GENDER\n* $3 - (Optional) username of the user who had posted the topic. Can be used for GENDER\n* $4 - permalink to the topic\n* $5 - Reason, from the moderating user, for moderating this topic\n* $6 - Name of the topic the post belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-deleted-topic-irc": "{{notranslate}}", + "flow-rev-message-deleted-topic-irc": "IRC version of {{msg-mw|flow-rev-message-deleted-topic}} {{notranslate}}", "flow-rev-message-suppressed-topic": "Used as revision comment when a topic has been suppressed.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who moderated the topic. Can be used for GENDER\n* $3 - (Optional) username of the user who had posted the topic. Can be used for GENDER\n* $4 - permalink to the topic\n* $5 - Reason, from the moderating user, for moderating this topic\n* $6 - Name of the topic the post belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-suppressed-topic-irc": "{{notranslate}}", + "flow-rev-message-suppressed-topic-irc": "IRC version of {{msg-mw|flow-rev-message-suppressed-topic}} {{notranslate}}", "flow-rev-message-locked-topic": "Used as revision comment when a topic has been locked.\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who moderated the topic. Can be used for GENDER\n* $3 - (Optional) username of the user who had posted the topic. Can be used for GENDER\n* $4 - permalink to the topic\n* $5 - Reason, from the moderating user, for moderating this topic\n* $6 - Name of the topic the post belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-locked-topic-irc": "{{notranslate}}", + "flow-rev-message-locked-topic-irc": "IRC version of {{msg-mw|flow-rev-message-locked-topic}} {{notranslate}}", "flow-rev-message-restored-topic": "Used as revision comment when a topic has been restored (un-hidden).\n\nParameters:\n* $1 - user link and tool links for the user.\n* $2 - username of the user who restored the topic. Can be used for GENDER\n* $3 - (Optional) username of the user who had posted the topic. Can be used for GENDER\n* $4 - permalink to the topic\n* $5 - Reason, from the moderating user, for moderating this topic\n* $6 - Name of the topic the post belongs to\n{{Related|Flow-rev-message}}", - "flow-rev-message-restored-topic-irc": "{{notranslate}}", + "flow-rev-message-restored-topic-irc": "IRC version of {{msg-mw|flow-rev-message-restored-topic}} {{notranslate}}", "flow-rc-topic-of-board": "Part of an entry in RecentChanges, the text for the link to the topic.\n\nParameters:\n* $1 - topic title text.\n* $2 - board name text.\n----\nHere's an example of the RecentChanges line that was generated by me just adding a discussion topic:\n\n(diff | hist) . . Just a small test on Talk:Sandbox; 16:53 . . (+17) . . Mmullie (WMF) (talk | contribs | block) (←Created new topic)\n\nFlow-rc-topic-of-board is for the \"Just a small test on Talk:Sandbox\" part, where \"Just a small test\" is the title of the discussion I just created, and \"Talk:Sandbox\" is the board I posted this in. \n\n{{Identical|On}}", "flow-board-history": "Used as <code><nowiki><h1></nowiki></code> heading and HTML title in the \"Board history\" page.\n\nParameters:\n* $1 - the title to which the flow board belongs\n{{Identical|History}}", "flow-board-history-empty": "Displayed when no board history is available.", diff --git a/includes/Formatter/AbstractFormatter.php b/includes/Formatter/AbstractFormatter.php index 4c9e1f4..2571981 100644 --- a/includes/Formatter/AbstractFormatter.php +++ b/includes/Formatter/AbstractFormatter.php @@ -238,6 +238,7 @@ $key = $actions->getValue( $changeType, 'history', 'i18n-message' ); // find specialized message for this particular formatter type + // E.g. the -irc messages. $msg = $ctx->msg( $key . '-' . $this->getHistoryType() ); if ( !$msg->exists() ) { // fallback to default msg -- To view, visit https://gerrit.wikimedia.org/r/217432 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1fbde484bb1a92cbf423bd005a2300d8a8d7cd3d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Flow Gerrit-Branch: master Gerrit-Owner: Mattflaschen <mflasc...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits