Commit graph

2497 commits

Author SHA1 Message Date
Thiemo Kreuz 919a7a5a30 Don't use {{int:…}} in full sentence messages
Directly referencing other messages is sometimes a good idea,
e.g. in a sentence like "Please look for a button with the
label \"{{int:cancel}}\"."

But here the word is used as part of a sentence. "This is
really not great, because in some languages the word can
change according to grammar." (T276218#6886266)

This patch doesn't change the wording of the messages, and
should not need PM approval. The qqq.json entries are
annotations for tranalators and don't need PM approval either.

The only additional change is that I update the gadget's names
to be their canonical ones everywhere.

Bug: T276218
Change-Id: I8a05f3871fa1d5d0570e1cba90ead29f9ea3b7df
2021-03-05 16:01:00 +01:00
Andrew Kostka 9fcdaf5c00 Fix maximum height of reference popups when in beta
This fixes a small regression introduced in Ia61f1b7. When
reference previews are still enabled as a beta feature the
unnecessary footer is hidden, therefore, we need to account
for this when calculating the dialog's height.

Bug: T234205
Change-Id: I1c142019031ab954550e237ddb23824da1aee8db
2021-03-05 12:52:13 +00:00
Thiemo Kreuz 24c75d11b3 Fix maximum height of reference popups
In patch I2a82831 we removed a line `margin-bottom: 16px`. This
margin defaults to 47px now. This made the popup bigger. This
patch fixes this.

The original size of 403px was introduced in I6036968 (T246029)
and already fixed one time in I82ea489 (T246029).

Bug: T234205
Change-Id: Ia61f1b79f8450d6249e190ab4ed1565ed5ac77be
2021-03-05 11:50:21 +00:00
Translation updater bot 3dea2e3c81 Localisation updates from https://translatewiki.net.
Change-Id: I843fa42f0401c6921d117a293fdf283fe061d59a
2021-03-05 08:56:29 +01:00
jenkins-bot 189f3cb0a2 Merge "remove spacing, when the footer is empty" 2021-03-04 16:45:31 +00:00
Svantje Lilienthal fb0863f101 remove spacing, when the footer is empty
Bug: T276200
Change-Id: Id5d30a53251bdf3674388cbdb29d93a0d52b3266
2021-03-04 16:22:55 +00:00
Thiemo Kreuz 66b5e307e1 Minor tweaks to the wording of gadget-related messages
Bug: T276218
Change-Id: I6b9ebec33f39e938855c5ee9b2f9665ea92560d0
2021-03-04 09:53:41 +01:00
Translation updater bot 39a309ddbc Localisation updates from https://translatewiki.net.
Change-Id: Ie8d5ee5889d0f00a035b3ae1b161b40de5a85b56
2021-03-04 08:39:08 +01:00
jenkins-bot f92e41c6ae Merge "Change wording around gadgets and user scripts" 2021-03-03 15:53:09 +00:00
WMDE-Fisch f7e60f2016 Change wording around gadgets and user scripts
The text could be misleading. There are global user scripts but no
global gadgets currently.

Also removing spaces around the pipes in links.

Bug: T276218
Change-Id: Ic29258c107393640e605bffff2ebf1c73e09c363
2021-03-03 12:22:28 +01:00
Noam Rosenthal e49f7d74e4 Take direction into account for clip-path cursor
The cursor needs to be flipped when:
- LTR document and X is flipped
- RTL document and X is not flipped

Bug: T276112
Change-Id: I66d31135833b649643c5ca123458036c00666f7d
2021-03-03 12:57:56 +02:00
Translation updater bot 2c51058bda Localisation updates from https://translatewiki.net.
Change-Id: I89f473db2434a432fb5f1b650493833f536f1a0b
2021-03-02 08:50:21 +01:00
jenkins-bot e441052cb0 Merge "Combine page and reference preview preferences" 2021-03-01 11:10:17 +00:00
Umherirrender eaaf560d99 build: Updating mediawiki/mediawiki-codesniffer to 35.0.0
Change-Id: Ib411b8fbec93f469e4f4812f60f8349207744ecd
2021-02-26 23:42:29 +01:00
Translation updater bot 89f5a27700 Localisation updates from https://translatewiki.net.
Change-Id: I4e4dd8ed1be2080395eeb2be48f3516ed94b386b
2021-02-26 08:57:24 +01:00
Andrew Kostka 82d54945e4 Combine page and reference preview preferences
Update copy and remove unnecessary reference preview preference
in favor of using the default preference. It seems there is no
stable method to link to the subsections on the preference page
for gadgets. So in all cases does the link just point to the
gadgets pref page.

These changes should only be visible when reference previews
are no longer marked as a beta feature.

Bug: T265709
Change-Id: I7b8ab91331092ada04b230315373548673b9272c
2021-02-25 10:21:16 +00:00
jenkins-bot 229e521fcb Merge "Finalize ReferencePreviewsPopups event platform migration" 2021-02-25 09:09:01 +00:00
Translation updater bot 22ed5e2e1b Localisation updates from https://translatewiki.net.
Change-Id: I4f2f1f2ba204bfad97efc2eb1f2dabf7b6e4962a
2021-02-25 08:39:13 +01:00
Adam Wight 8a857103f7 Finalize ReferencePreviewsPopups event platform migration
Bug: T275009
Change-Id: Ia8d54ea90b4e5fa8ad52a5c809948c90577c908d
2021-02-24 19:48:51 +00:00
Translation updater bot 97d064f363 Localisation updates from https://translatewiki.net.
Change-Id: Iae6fdfef8019d91b0177376f3ea27116c3da8fbc
2021-02-23 08:49:11 +01:00
Thiemo Kreuz 513899d808 Much more relaxed reference type detection
* When there are multiple <cite> elements, the first that contains a
  known class is used. We assume the earlier one must be the relevant
  one.
* When there are multiple known classes in e.g. <cite class="web news">,
  the last one is used. This follows how CSS works.
* There is extra validation if the corresponding message exists, just
  to be sure. This is cheap.

Bug: T274979
Change-Id: Iee3481ea16af96b40faf978e254718e5a48917f3
2021-02-22 11:55:03 +01:00
Translation updater bot 94ed9fedb2 Localisation updates from https://translatewiki.net.
Change-Id: I100eb341d790d439fcde02eef97b383af872a13e
2021-02-22 08:53:23 +01:00
Translation updater bot 663963fdd3 Localisation updates from https://translatewiki.net.
Change-Id: I8887235e1a853d073865b7343ce59f6a9e02e656
2021-02-19 08:32:35 +01:00
Translation updater bot fc58c3b924 Localisation updates from https://translatewiki.net.
Change-Id: I6ca5d022cecf9c3dea3ccf54e0d05df674f00a4b
2021-02-18 08:43:38 +01:00
jenkins-bot 3fd74a2502 Merge "Add cogwheel to disable ReferencePreviews" 2021-02-17 08:19:29 +00:00
Translation updater bot b3215eec78 Localisation updates from https://translatewiki.net.
Change-Id: I20df74f3f92230b0fff370b2bbc6427d3519a574
2021-02-17 08:43:19 +01:00
Svantje Lilienthal 1962372a44 Add cogwheel to disable ReferencePreviews
I added the common styling for the setting icon to the popup.less
and removed the now empty pagePreview.less.

Bug: T234205
Change-Id: I2a82831bc71a4208c4b66c18e2a4613127c43e1f
2021-02-16 15:39:43 +01:00
jenkins-bot 8c575f9cef Merge "Add new reference type "note" without an icon" 2021-02-16 11:29:02 +00:00
Translation updater bot 9ceb0befe8 Localisation updates from https://translatewiki.net.
Change-Id: Icb9eddd48434940e7d9c41ef98392853f7b0440e
2021-02-15 10:06:10 +01:00
Thiemo Kreuz ef4b032513 Add new reference type "note" without an icon
Bug: T274343
Change-Id: Ib9f3fe98baf1d194e686b007a9c535f2b49ac19d
2021-02-11 10:15:36 +01:00
Translation updater bot 2aa2cd6841 Localisation updates from https://translatewiki.net.
Change-Id: Idffa237f6db34907df521897e9f996c4d8a71a47
2021-02-11 08:39:55 +01:00
Translation updater bot 2964abb369 Localisation updates from https://translatewiki.net.
Change-Id: I783faf0030b58c0b7f4474befc5ef006e7dfd8ea
2021-02-10 08:38:58 +01:00
Translation updater bot 7e69ea70ee Localisation updates from https://translatewiki.net.
Change-Id: Id8e4dbb5788d5b9a467cdf44178b43c8c47ac308
2021-02-08 08:43:47 +01:00
Translation updater bot c2ce779aa1 Localisation updates from https://translatewiki.net.
Change-Id: I8c767bb3d4740cf432d6b8c7202db96a42d8d909
2021-02-04 08:43:29 +01:00
Translation updater bot 66118a57b0 Localisation updates from https://translatewiki.net.
Change-Id: I6f8b511d17938f8183d520aefe3d7393352a6062
2021-02-03 08:39:46 +01:00
Translation updater bot b050d4abc0 Localisation updates from https://translatewiki.net.
Change-Id: Ie0d48210923def9108ad90744948ab9fd49d40fd
2021-02-01 08:48:30 +01:00
Translation updater bot 90200caf5a Localisation updates from https://translatewiki.net.
Change-Id: Icd47c66e78e0e9e4f21a51adbfeafb7dd55da5fd
2021-01-29 08:38:30 +01:00
Translation updater bot 22e7bb2cf2 Localisation updates from https://translatewiki.net.
Change-Id: Iac236dc399848fd6d95f3daf0560d60e8ba5ca86
2021-01-27 08:35:13 +01:00
Noam Rosenthal 83c528c7e1 Fix bluriness on low-DPR screens
Request a larger thumbnail to ensure
the thumbnail is served scaled rather
than scaled by the browser.

Bug: T272169
Change-Id: Ibf80f24c949e14c8289b8b0a4e7369dd10ead449
2021-01-26 09:49:50 -08:00
Translation updater bot 8e4160cfe9 Localisation updates from https://translatewiki.net.
Change-Id: I0c8c5cceeee906d6675766ff9f30d3eda33da1ad
2021-01-21 08:32:36 +01:00
jenkins-bot 6c3af4aac2 Merge "Add missing TextExtracts parameter sectionformat=plain" 2021-01-19 16:50:23 +00:00
Translation updater bot c0609e10d9 Localisation updates from https://translatewiki.net.
Change-Id: If30fec6a46464c0a3c667d4a31d9deb0df0afdfc
2021-01-19 08:19:53 +01:00
Translation updater bot 204884b66b Localisation updates from https://translatewiki.net.
Change-Id: I72b252ac675ea4ae4dc78928af263b2ebcd34a8d
2021-01-18 08:39:23 +01:00
Translation updater bot 0c7f5048ed Localisation updates from https://translatewiki.net.
Change-Id: I55009629ce588313929ae2a5ffa907bacfccb800
2021-01-12 08:38:14 +01:00
Thiemo Kreuz 8fbcf6f962 Add missing TextExtracts parameter sectionformat=plain
It turns out the TextExtracts extension is build in a way so
that the parameter plaintext=1 alone is not enough. It does
not really mean "please return plain text" but "please don't
return HTML". It can still return one of three formats:
* Wikitext.
* An intermediate parser format where headlines are not
  `== this ==` but `��2��this`.
* Actual flat plain text.

The default is wikitext. That's why we see `== wikitext
syntax ==` in certain edge-case situations. Forcing it to
"plain" fixes this.

Bug: T271439
Change-Id: I3035fb3df99680af8bbd10c4513aed730013c344
2021-01-08 09:17:35 +01:00
Noam Rosenthal 9d1d5c5fc2 Make CSS.supports more resilient
Following this comment:
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Popups/+/647002/5/src/ui/renderer.js#163

Making sure CSS.supports is a function
Before calling it for graceful degradation

Bug: T269336
Change-Id: Iee4050ae14e28667eb8014c223eb925018df7bd3
2021-01-06 15:43:54 -08:00
jenkins-bot 54a2663f9c Merge "Fix storybook IMG assets" 2021-01-06 17:17:47 +00:00
jdlrobson 1679eea477 Fix settings dialog display
Follow up to 23b6332a5b

Bug: T270650
Change-Id: Ic128e84eed69e4fdc7252bb6b315bd3f953eaf73
2021-01-05 12:20:06 -08:00
jdlrobson 9adf023eee Fix storybook IMG assets
When we changed the thumbnail size we changed the URIs to images
but didn't update the local storybook assets.

Bug: T266797
Change-Id: Iea4de1524a2f60cc759d59338882fe236e409bd2
2021-01-05 19:50:40 +00:00
Noam Rosenthal 7b0937c5a8 Use CSS clip-path instead of SVG when supported.
This reduces a lot of churn in creating the SVG
element and related helpers.

When IE11 is dropped, the SVG code-path can also be dropped.

Bug: T269336
Change-Id: I7f91192dedc2a78f1c7c84179cff1687593177c0
2021-01-05 19:26:24 +00:00