Commit graph

4037 commits

Author SHA1 Message Date
Translation updater bot b68de12e69 Localisation updates from https://translatewiki.net.
Change-Id: I4d33204cd5b6df94d90e458271513e444e4e7d08
2023-08-24 09:48:53 +02:00
jenkins-bot a3f136cf7b Merge "Convert Cite extention to ES6" 2023-08-23 16:19:37 +00:00
mareikeheuer 1eb405eb54 Convert Cite extention to ES6
Bug: T343220
Change-Id: I769f0bfaa5af14d6ea4861ea738b44c98feb6193
2023-08-23 12:39:29 +00:00
Translation updater bot 9f74f74cbd Localisation updates from https://translatewiki.net.
Change-Id: I130c471228a9bc5eba16bdefa4a2c08fb3683b4c
2023-08-23 08:38:54 +02:00
Translation updater bot c82292634a Localisation updates from https://translatewiki.net.
Change-Id: I66daf1d98ea1bcffa2fe8adb63ac553d3d59fe41
2023-08-22 09:01:19 +02:00
Translation updater bot 411989a205 Localisation updates from https://translatewiki.net.
Change-Id: Idb27c1adffb0938b2c0f04c1576d48d4fa3dc3ed
2023-08-21 08:47:22 +02:00
James D. Forrester 9dcfabc49e build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I3bc415bd5f561f08a4e3e2d45fb89906c8062415
2023-08-19 11:29:54 +00:00
jenkins-bot e5ba600c36 Merge "Don't warn that reference list is uneditable" 2023-08-19 07:42:53 +00:00
gerritbot 198ae5b21c Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: Idde5511e075fcec40cad12c7369abec3ee4d096c
2023-08-19 04:13:55 +00:00
Novem Linguae 339ba57786 Don't warn that reference list is uneditable
In articles with references, a reference list is generated. If you
try to visual edit the reference list, it displays a message "This
reference list is generated by a template, and for now can only be
edited in source mode." However it is actually editable now that
T54750 (Community Wishlist 2023 wish #2) is complete.

Bug: T54750
Change-Id: Id8115ae6045f371e4619c85aeb610fe78927d802
2023-08-18 20:46:41 -07:00
Translation updater bot e7a594cd35 Localisation updates from https://translatewiki.net.
Change-Id: I3dcf2223660bfd10a43dfce23eeb5660c3cb0d45
2023-08-18 09:07:42 +02:00
Translation updater bot f0e877a0c5 Localisation updates from https://translatewiki.net.
Change-Id: I1eeab58604b3920557065715a54f8d149882a8ad
2023-08-17 12:09:31 +02:00
jenkins-bot 8fe57fcd71 Merge "Bump MW dependency to >= 1.40.0" 2023-08-16 07:30:59 +00:00
Translation updater bot 4ec268d8c3 Localisation updates from https://translatewiki.net.
Change-Id: I2c05a4aa185ed1008a975ef09755e31e3ee7575d
2023-08-16 09:11:18 +02:00
WMDE-Fisch 90499a6f76 Bump MW dependency to >= 1.40.0
Forgot to do that in Id2992d5beb0bc226a9acdfd28b2c7b37eee7e06a

Bug: T328497
Change-Id: I3633e17418529c5970eb456d055565433f2c3b80
2023-08-16 08:49:56 +02:00
jenkins-bot 7e521eecab Merge "Targets no longer needed in Cite" 2023-08-15 19:06:56 +00:00
WMDE-Fisch 29ed8bde7d Targets no longer needed in Cite
All match current default.

Bug: T328497
Change-Id: Id2992d5beb0bc226a9acdfd28b2c7b37eee7e06a
2023-08-15 19:48:34 +02:00
Translation updater bot d22fdf8f28 Localisation updates from https://translatewiki.net.
Change-Id: I22b6584266b49895276d3222819e9afa840a028d
2023-08-15 08:25:37 +02:00
Daimona Eaytoy e8da022968 Mark CiteDbTest as using the page table
The test creates the Cite-tracking-category-cite-error page.

Change-Id: I20b2007b943afd69bef8fcce18f382e64d752c57
2023-08-11 17:29:33 +02:00
Translation updater bot 13ea4e89fc Localisation updates from https://translatewiki.net.
Change-Id: I1f569f3fab61644744e0cdfc702bcf2ad4c556de
2023-08-11 08:59:42 +02:00
Translation updater bot 6476dde20e Localisation updates from https://translatewiki.net.
Change-Id: I25b70a269d0fd437b1066f38d7ef5d9ebd713820
2023-08-10 09:40:16 +02:00
Translation updater bot 18dfa26ee1 Localisation updates from https://translatewiki.net.
Change-Id: I360936597a0da7bf39115100a95c77435b2a4b8d
2023-08-09 09:14:43 +02:00
Translation updater bot a6c8f9be64 Localisation updates from https://translatewiki.net.
Change-Id: Ibf69b8414cfd13d1994fb4442158327dd8441638
2023-08-08 09:00:37 +02:00
Translation updater bot 3302f7191d Localisation updates from https://translatewiki.net.
Change-Id: Ida42b9050052350d4f23a9ba2cff8b68574ea6a6
2023-08-07 08:37:50 +02:00
Translation updater bot c7d27dd020 Localisation updates from https://translatewiki.net.
Change-Id: I48409a19a5c65ee62560096d1671f807be954181
2023-08-03 08:48:18 +02:00
Translation updater bot 995495eb6f Localisation updates from https://translatewiki.net.
Change-Id: Iecd50180af49cf669a2d2888427a76fcb22c3033
2023-08-02 09:03:40 +02:00
Translation updater bot c55dc43253 Localisation updates from https://translatewiki.net.
Change-Id: I734e69dac9ed65628ad13455892ecc9404a9afbb
2023-07-31 08:56:24 +02:00
jenkins-bot 5a66597fa0 Merge "Rename ext.cite.style VE dependency to ext.cite.parsoid.styles" 2023-07-28 15:28:44 +00:00
Translation updater bot ef5d0a3e7e Localisation updates from https://translatewiki.net.
Change-Id: I0d49ac76485a1130e6c19310944ef6478b3b8686
2023-07-28 09:19:07 +02:00
jenkins-bot 0fc08a2ac7 Merge "Replace extremely slow parser test with fast unit tests" 2023-07-28 01:05:39 +00:00
thiemowmde 5aa6cb0c7b Replace extremely slow parser test with fast unit tests
This parser test is a bit obscure, in my opinion. We added it in
I8c4de96 to make sure we don't get thousand separators in most
places.

We continued reworking the code since then. By now it's effectively
impossible to "accidentally" get thousand separators. The
problematic methods from the Language class are not even accessible
any more from this code.

To make the tests more robust we now use createNoOpMock (done via
the previous patch) where it matters, specifically for all Language
and Parser mocks. This proves the problematic Language methods are
never called.

Bug: T253743
Bug: T238187
Change-Id: I9bfe1f4decfaf699996da63e19473c2c0d581d9d
2023-07-28 00:32:38 +00:00
jenkins-bot 51308066fa Merge "Remove unused private method from CiteDbTest" 2023-07-27 19:02:16 +00:00
jenkins-bot ebd355c067 Merge "Replace all Language and Parser mocks with no-op mocks" 2023-07-27 18:59:53 +00:00
thiemowmde 2aa421a021 Replace all Language and Parser mocks with no-op mocks
Both Language and Parser are extremely complex classes with hundreds
of public methods. We really want to make sure we are not depending
on anything unexpected from these classes. If calls are made into
these classes we want to know exactly what is called.

Doing this also showed that some mocked methods are not even needed.

Change-Id: Icdfff6c07be78a47bf7cadb1813a72581a51272a
2023-07-27 10:00:28 +00:00
thiemowmde e750cc2ed2 Remove unused "HTML message" cite_references_no_link
I believe there is no reason to keep this. The only reason might be
a known wiki that uses this as a feature. But such a wiki doesn't
exist:
https://global-search.toolforge.org/?q=.&regex=1&namespaces=8&title=Cite.*no.*link

Bug: T321217
Change-Id: I128d4383da48f9bdda92f03b212ef3997b3a4802
2023-07-27 11:55:13 +02:00
thiemowmde d6d447e861 Remove unused private method from CiteDbTest
Change-Id: I1c827fd01b65910af24ef1c7b9379d9be8cf6880
2023-07-27 09:52:52 +00:00
Thiemo Kreuz (WMDE) df5484ea25 Revert "Localisation updates from https://translatewiki.net."
This reverts commit 41c4fcf41e.

Reason for revert: Something is/was broken here. This doesn't make
sense. The message still exists in en.json.

Change-Id: Ia018cc8b1d96a1b26905532e15d69f8ec07ca375
2023-07-27 09:50:58 +00:00
Translation updater bot 41c4fcf41e Localisation updates from https://translatewiki.net.
Change-Id: Ic9628873ef1b56e70af8fbfeebb33e41a7013790
2023-07-26 10:26:28 +02:00
jenkins-bot 1732720608 Merge "Remove (revert) expensive parsing of 1-character message" 2023-07-25 20:29:47 +00:00
Translation updater bot da0f53d4c2 Localisation updates from https://translatewiki.net.
Change-Id: I84bd82743e4ba5a0aa88f1b4e889305d4db79535
2023-07-24 09:36:47 +02:00
jenkins-bot bceaf47597 Merge "No expensive transformations on prefix/suffix messages" 2023-07-21 13:22:35 +00:00
thiemowmde 08814c8e38 Remove (revert) expensive parsing of 1-character message
This reverts a very tiny part of Ib3fdc89 from 2 weeks ago. The
reasons are explained in Ib3fdc89. Short version:
* The ->parse() calls have drastic performance implications.
* Allowing wikitext and HTML in this message also makes T321217
  worse.

The new message "cite_reference_backlink_symbol" is kept and still
used in the UI. Just not in these two messages any more. This is a
minor redundancy we want to get rid of at some point. But it's not
critical for the moment. This will be done as part of T321217.

Nothing will break on the wikis. Some wikis have customizations for
"cite_references_link_one" and "cite_references_link_many" in place.
This will continue to work as before Ib3fdc89.

Bug: T339973
Change-Id: I933771e3ad67cd530bcf5ee8469cef35ea1070d2
2023-07-21 14:05:31 +02:00
Translation updater bot 182401570e Localisation updates from https://translatewiki.net.
Change-Id: I4401790cf0e9fda4787e990f267f2290077dba66
2023-07-21 08:41:03 +02:00
Subramanya Sastry 09df6301d7 Rename ext.cite.style VE dependency to ext.cite.parsoid.styles
Follows-Up: a5b8640928
Change-Id: If697936b8107b43be6019aa612f9fce8a21e87a4
2023-07-20 12:23:55 -05:00
thiemowmde 25e7aa44dd No expensive transformations on prefix/suffix messages
This is a mistake that exists in this codebase for who knows how
long.

Cite mis-uses the messaging system a lot for internal things we still
want to customize somehow, but are not labels that will ever be shown
on the screen. The prefix/suffix messages in this patch are meant to be
part of the HTML in id="…" attributes. Prefix/suffix must be a static
plain text strings. Using e.g. {{GENDER}} or {{PLURAL}} in these
messages is not even possible because there is no $1 parameter to use.

Note how all other similar messages already use ->plain().

A few wikis override these messages, but stick to the plain-text
convention, as they should:
https://global-search.toolforge.org/?q=.&regex=1&namespaces=8&title=Cite.*reference.*fix
This will continue to work.

This has minor performance implications. Fetching these messages is
faster if we can skip transformations.

Bug: T321217
Change-Id: I7969c255fe4ce897e904897081da5f52678721aa
2023-07-20 16:22:46 +02:00
Translation updater bot 3ff81498ed Localisation updates from https://translatewiki.net.
Change-Id: Id5362988556255ec20520eb262e090509a7f39de
2023-07-20 09:32:03 +02:00
Translation updater bot d7c22027ee Localisation updates from https://translatewiki.net.
Change-Id: Ica38b7dc843dbf8faeb3d12b5618b2fbb81b3b11
2023-07-18 09:49:14 +02:00
Translation updater bot cd2c578e29 Localisation updates from https://translatewiki.net.
Change-Id: I12b4e8d4e90c89dd6efd3c74f11c63029ace6941
2023-07-17 10:16:34 +02:00
Translation updater bot 6aff5b0828 Localisation updates from https://translatewiki.net.
Change-Id: Iee86fdbe9ea5e8df0eab763827146f1c765785d8
2023-07-14 09:32:36 +02:00
Subramanya Sastry a5b8640928 Rename ext.cite.style.css to ext.cite.parsoid.styles.css
ext.cite.style.css is very close to ext.cite.styles.css and is
often confusing.

In about 3 weeks (the current PC expiry time), we should be able to
get rid of the ext.cite.style module from extension.json after
removing all references to it from other repos and caches.

I don't see a reason to rename all the other language specific
CSS files since there is no room for being confused there.

Change-Id: I3a41f435b0cbe51f8c9a6dde8a9f6eb13a9879f7
2023-07-13 11:31:41 -05:00