Changelist "tags" item is wrapped in brackets via CSS
authorjdlrobson <jdlrobson@gmail.com>
Wed, 14 Nov 2018 01:28:48 +0000 (17:28 -0800)
committerJdlrobson <jrobson@wikimedia.org>
Tue, 20 Nov 2018 19:21:26 +0000 (19:21 +0000)
In our quest to separate content from presentation,
the parentheticals are moved into CSS. These support translation via
the lessMessages ResourceLoader property.

There is obviously a risk with this change of double brackets appearing.
We might want to consider a new message to avoid this (at the cost of
some translations being outdated). However, I believe it's better to
have the double paranthetical wrap then to have English strings show up
in the wrong places. We can update other translations if
necessary.

Bug: T205581
Change-Id: I9c3fb069fc93800f39a922feab56489f1614785c

languages/i18n/en.json
languages/i18n/qqq.json
resources/src/mediawiki.special.changeslist.less

index 4acf6eb..7e22fc1 100644 (file)
        "tags-summary": "",
        "tag-filter": "[[Special:Tags|Tag]] filter:",
        "tag-filter-submit": "Filter",
-       "tag-list-wrapper": "([[Special:Tags|{{PLURAL:$1|Tag|Tags}}]]: $2)",
+       "tag-list-wrapper": "[[Special:Tags|{{PLURAL:$1|Tag|Tags}}]]: $2",
        "tag-mw-contentmodelchange": "content model change",
        "tag-mw-contentmodelchange-description": "Edits that [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:ChangeContentModel change the content model] of a page",
        "tag-mw-new-redirect": "New redirect",
index ee53214..ba2b6c2 100644 (file)
        "tags-summary": "{{doc-specialpagesummary|tags}}",
        "tag-filter": "Caption of a filter shown on lists of changes (e.g. [[Special:Log]], [[Special:Contributions]], [[Special:Newpages]], [[Special:Recentchanges]], [[Special:Recentchangeslinked]], page histories)",
        "tag-filter-submit": "Caption of the submit button displayed next to the tag filter on lists of changes (e.g. [[Special:Log]], [[Special:Contributions]], [[Special:Newpages]], [[Special:Recentchanges]], [[Special:Recentchangeslinked]], page histories)\n\n{{Identical|Filter}}",
-       "tag-list-wrapper": "Wrapper for the list of tags shown on recent changes, watchlists, history pages and diffs.\n\nParameters:\n* $1 - number of distinct tags for given edit\n* $2 - comma-separated list of tags for given edit",
+       "tag-list-wrapper": "Wrapper for the list of tags shown on recent changes, watchlists, history pages and diffs. The message will be wrapped in {{msg-mw|parentheses-start}} and {{msg-mw|parentheses-end}} if set. \n\nParameters:\n* $1 - number of distinct tags for given edit\n* $2 - comma-separated list of tags for given edit",
        "tag-mw-contentmodelchange": "Change tag for edits that change the content model of a page",
        "tag-mw-contentmodelchange-description": "Description for \"content model change\" change tag",
        "tag-mw-new-redirect": "Change tag for edits that make the page a redirect (either redirect creation or editing an existing page)",
index 015c187..e2ee9a5 100644 (file)
@@ -69,6 +69,7 @@
 
 .mw-changeslist-links,
 .mw-diff-bytes,
+.mw-tag-markers,
 .mw-uctop {
        &:before {
                content: '@{msg-parentheses-start}';