Commit graph

3966 commits

Author SHA1 Message Date
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
Translation updater bot 4265152ea6 Localisation updates from https://translatewiki.net.
Change-Id: Id08669a1b1f850b0ced9b3b83e92100e6e032d45
2023-07-13 10:48:40 +02:00
Translation updater bot 11d1587333 Localisation updates from https://translatewiki.net.
Change-Id: Ibd19363ee22331e3f8c0c250be20f6b41db50ccf
2023-07-11 08:48:53 +02:00
Ed Sanders b2fd0aa4d1 Fix ContextItem documentation
* Be more specific about the type of context which a
  context item belongs to.
* Make grammar clearer.

Change-Id: I9bcc129766c3386582def0f346d6f175e54d6ff6
2023-07-10 14:33:24 +01:00
Translation updater bot d06b315b7c Localisation updates from https://translatewiki.net.
Change-Id: I2bbad9897d911b24a470cd0f49b9a44e1a653ff8
2023-07-10 09:37:11 +02:00
Translation updater bot 885eaf2411 Localisation updates from https://translatewiki.net.
Change-Id: Ia844ca89c7dd7a6fbf3ca80ffb03e9e4b9b6464a
2023-07-06 10:11:17 +02:00
jenkins-bot 7a8a0e9eb0 Merge "Fix message parsing" 2023-07-05 15:17:34 +00:00
Translation updater bot 37adcdd75d Localisation updates from https://translatewiki.net.
Change-Id: Ib05292ca15ac4a284eaa8f1c19b2d63ee3738351
2023-07-05 08:28:22 +02:00
Jon Harald Søby 99370a77dd Fix message parsing
Some of the methods used for mw.message were incorrect, which could
potentially lead to double escaping.

This follows up I4bc60570012bcd8eab5ad32c5004d06b3af42798

Change-Id: Iceb819c8fa6c46c234fc79d1c81bd3252440269c
2023-07-05 01:40:58 +02:00
Translation updater bot fe7114aa2c Localisation updates from https://translatewiki.net.
Change-Id: I4e1c5f446da41d0ca5dfed3700cab919adf4e02f
2023-07-04 09:20:22 +02:00
Translation updater bot 152abcbe1f Localisation updates from https://translatewiki.net.
Change-Id: Ia5be9d48e4e44dfad73df0396987142693ff459b
2023-07-03 10:14:41 +02:00
Jon Harald Søby 2ae345ca4b Remove use of autoMsg in favour of using mw.message directly
Bug: T154891
Change-Id: I4bc60570012bcd8eab5ad32c5004d06b3af42798
2023-06-30 01:33:25 +02:00
jenkins-bot 0a3240e217 Merge "Revert "Add extends warning to reference dialog"" 2023-06-29 16:58:33 +00:00
Awight 42e13cb3c3 Revert "Add extends warning to reference dialog"
This reverts commit da30b2b626.

Reason for revert: Caused a regression.  Feature is not enabled on public wikis so reverting is harmless for now.

Bug: T247922
Bug: T340757
Change-Id: I83434afaf1b76425bddb575dd724f462a247c83d
2023-06-29 16:36:47 +00:00
jenkins-bot 75c946c8d5 Merge "Move Cite-specific settings from WikiEditor" 2023-06-28 23:42:46 +00:00
Jon Harald Søby c66371b3d9 Move Cite-specific settings from WikiEditor
The WikiEditor extension has a button and some help text that
is only applicable if the Cite extension is enabled. Move
that (with some modifications) to the Cite extension instead.

Bug: T339973
Depends-On: I8256660f9c6886d6764b45735284e00308fc56e5
Change-Id: Ib3fdc897dd3330f69c5832003d4c3cb1e6dba2f3
2023-06-28 20:22:14 +02:00
Translation updater bot d8121c4b2c Localisation updates from https://translatewiki.net.
Change-Id: Ifc60a07ae9077e92f9653662a448525f25a84c15
2023-06-28 17:32:42 +02:00
Translation updater bot 72b94c9244 Localisation updates from https://translatewiki.net.
Change-Id: Ib0b74672ee6d359f11401d18e56387c7e1b45221
2023-06-26 12:38:21 +02:00
Translation updater bot bad83bbb21 Localisation updates from https://translatewiki.net.
Change-Id: I6757b58ba2fd6dd45acc66ee914db6b0741b7990
2023-06-20 09:50:17 +02:00
Translation updater bot 88e504647d Localisation updates from https://translatewiki.net.
Change-Id: I9030217a54e9bd7bc79a204f8281377ed73b7c69
2023-06-19 11:06:28 +02:00
Translation updater bot 6e1b2c8be8 Localisation updates from https://translatewiki.net.
Change-Id: Id77ec86541c52e8883a22a6aa585c5b0da61ef50
2023-06-14 13:06:17 +02:00
jenkins-bot 9bd0f969bb Merge "Display text of parent reference in VE popup" 2023-06-14 10:12:53 +00:00