Commit graph

82 commits

Author SHA1 Message Date
jenkins-bot 804d18d428 Merge "Remove $controls / $tabs / $buttons interfaces" 2024-12-09 13:07:13 +00:00
Ed Sanders 1d20fd47a3 Remove $controls / $tabs / $buttons interfaces
Bug: T380034
Change-Id: I041ae16f5916a51697aabd1a31d6f7fbc051b8e4
2024-12-04 12:48:57 +00:00
Translation updater bot 84c9adedd6
Localisation updates from https://translatewiki.net.
Change-Id: If9143d47957eff28d98f492182282d4d20de5ea2
2024-11-29 08:31:59 +01:00
Translation updater bot eb64f076bc Localisation updates from https://translatewiki.net.
Change-Id: Iee4f79a1639b018afb1916bd80cdbd97821d1643
2024-02-29 08:36:51 +01:00
Ed Sanders 5e73c18eb1 Follow-up Ib536b51: Remove wikieditor-toolbar-tool-link-int-invalid, unused
Change-Id: Iab5491e098b15268e3017f931d49a0d7dd69d818
2023-11-03 13:36:40 -04:00
Ed Sanders c3b77c004b Follow-up Ib66025d: Remove unused message keys
Change-Id: If92c408f94473d1a138e77105ef4946edb393f40
2023-11-03 13:25:30 -04:00
Ed Sanders 0fe46f50c0 Delete messages from real-time preview beta feture/onboarding
These were orphaned in I8d05e143858.

Change-Id: I602d2e83d5886a832ba20a59f9a8a48b073ead3f
2023-11-02 18:41:24 +00:00
Translation updater bot 92b3ac326e Localisation updates from https://translatewiki.net.
Change-Id: Ic37d9fe7e9da81f9c459e8e5087a1f813f3f3947
2023-08-22 09:02:14 +02:00
Translation updater bot b5763390a1 Localisation updates from https://translatewiki.net.
Change-Id: I3664dcd589e7b86039618f70d57aedd34a147a5c
2023-07-07 09:11:42 +02:00
Jon Harald Søby 499c71114a Stop using autoMsg and use mw.messages directly instead
WikiEditor has a clever functionality where you can enter a message
key directly by using [key]Msg syntax in the object definition. While
that may have been a clever approach, it led to tons of messages
in this extension having to be marked as RawHtmlMessages because
they could potentially be parsed as HTML. Thus I am replacing all
of these instances with using mw.message explicitly instead, with
the necessary method attached.

The autoMsg (and its cloned autoSafeMsg) functions have had FIXME
comments attached since 2018 saying that these methods are
unnecessarily complex and should be replaced with using mw.messages
directly.

This solves a lot of problems for translators in Translatewiki, and
hopefully makes the code more straightforward and easier to understand
for those reading it down the line.

I would like to remove the autoMsg and autoSafeMsg functions
altogether, but their functionality is still in use in a few
extensions (and potentially on-wiki code), so we would have to
clean up that first.

Bug: T154891
Bug: T294760
Change-Id: I2835341867df85552579ea6927cd39a6f889fa6b
2023-07-06 10:39:24 +02:00
Jon Harald Søby 5c18abff00 Move reference-specific settings to the Cite extension
These config settings were specific to the Cite extension,
and are misleading on wikis that don't have that extension
installed. Move the functionality to the Cite extension
instead.

Bug: T339973
Depends-On: Ib3fdc897dd3330f69c5832003d4c3cb1e6dba2f3
Change-Id: Ib619706ddfca724990e1db2d51f12a2eb05f6a72
2023-06-22 14:07:29 +02:00
Translation updater bot 17ac59bfda Localisation updates from https://translatewiki.net.
Change-Id: Iec733b7bd761300bf844eeca6993ffca94b82bcf
2023-06-19 11:08:25 +02:00
Translation updater bot 1b7feacb07 Localisation updates from https://translatewiki.net.
Change-Id: Iddf6afc2050027b1e293ff130825bda31fe7a094
2023-04-17 09:16:01 +02:00
Translation updater bot 1038ab99f6 Localisation updates from https://translatewiki.net.
Change-Id: I51ca6cd3cbc09b7192295ff8dbde33a175c52bec
2022-06-16 09:25:47 +02:00
Sam Wilson 4ff946aea4 Realtime Preview onboarding popup
Add a pulsating blue dot to the Realtime Preview toolbar button
that displays an onboarding popup when clicked and disappears
forever when dismissed.

Bug: T294589
Change-Id: I7f4dd0858349b0e7c4f4bedea5c7a62a51c6fa3a
2022-06-01 14:11:49 +08:00
Thiemo Kreuz 7573a7dbad Remove all unused "loading" code, messages and animations
The CSS was already unused when the extension was created in 2010.
A comment that still mentioned the CSS class was removed via
I0798864 in 2022.

The message is unused since I9fb7e66, that was in 2021.

Change-Id: I25cd31efc4ee61ff3f857c280b5cd18c3ae4bd00
2022-04-21 15:29:15 +02:00
Sam Wilson 4c760f8634 Realtime Preview: display manual-reload bar when previews are slow
After three slow preview requests, switch to showing a bar at the
top of the preview area that contains a manual 'reload' button.

The manual bar will be hidden when an error message is show, but
re-shown again after the error is dismissed. Closing and
re-opening the preview pane doesn't reset the manual mode.

Bug: T304568
Change-Id: Ia72bd1ceab68fdaed5de53137bd8ac5961db4714
2022-04-20 13:01:14 +08:00
Sam Wilson 94d4912103 Realtime Preview: add hover button for reloading
Add a 'reload' button to the right-side preview pane (that shows
on hover, and stays in the same place when the preview is
scrolled), and also an accesskey to trigger the preview. If the
preview is not open when the accesskey is pressed, it'll be
opened.

Bug: T303532
Change-Id: Ifa77ad7cf6d2ed6a8b955f9a324986d1c6f9a993
2022-04-14 08:08:58 +08:00
Translation updater bot 7341a30e1a Localisation updates from https://translatewiki.net.
Change-Id: Ieb2e00cc8420089eaa511699f0f9785072c1a73e
2022-04-08 08:28:39 +02:00
MusikAnimal b8bdd64ee5 Realtime Preview: add as a Beta Feature
For MW installations where BetaFeatures is not available, Realtime
Preview is enabled solely with the $wgWikiEditorRealtimePreview
configuration setting.

Bug: T304596
Change-Id: I880022883bf526a2aef237f4a75e790b0f9bd4e5
2022-04-06 13:45:44 -04:00
Sam Wilson 6175e2c519 Add nicer realtime preview error messages
Add a new ErrorLayout to display error messages along with an
image.

Bug: T303383
Change-Id: I1ec27a212b5ab67d3e805c0d7756432850de89ea
2022-03-24 14:56:19 +08:00
Sam Wilson 411be83bc3 Add toggle button and two-pane layout for realtime preview
* Toolbar button to toggle a two-pane layout on and off.
* Resizable bar for the width of the two panes.
* Resizable bar for the edit box height, even when realtime preview is off.
* Only enabled when $wgWikiEditorRealtimePreview = true.
* Fires JS hooks when enabled, resized, and disabled.

Bug: T293347
Change-Id: Id09d44519249c0b7f5c33d48d524b7c92a5a9106
2022-03-13 07:28:01 +08:00
Sam Wilson 2aa9e1d298 Remove unused messages and commented-out code
It looks like `wikieditor-loading` was already commented out in 2010:
9d278e8dee%5E!/#F114
and I couldn't find any usage of `wikieditor-toolbar-loading`.

Change-Id: I07988643ca502dcbd7c3208fb803a84003947d5e
2022-03-02 02:40:05 +00:00
Translation updater bot 05eabda0f7 Localisation updates from https://translatewiki.net.
Change-Id: I4ab02239aec3dd1ee6dd4149aa79e22f2e5629a8
2022-02-08 08:29:11 +01:00
Ed Sanders b4f144057e Tag WikiEditor edits with a hidden tag
Bug: T249038
Change-Id: Ia4267bc430ba0f12cce496ebf6f8c1773ae355a6
2021-12-07 23:30:27 +00:00
Sam Wilson 79a0d3040e Disable link-insert button if target is empty
Set the opening state of the insertion button (in the insert-link
dialog) to disabled, and also disable it whenever the target field
is empty. This makes it unneccessary to show an alert when trying
to insert a blank target so that code is removed.

Bug: T293167
Change-Id: I3541f438fad9b7e0bf23ead2f2e164e84565d254
2021-11-26 12:45:48 +08:00
Translation updater bot 2e99579930 Localisation updates from https://translatewiki.net.
Change-Id: I5b068748310886e4fae1044170b77542ef6ec290
2021-11-17 08:31:11 +01:00
Translation updater bot 819297f7d8 Localisation updates from https://translatewiki.net.
Change-Id: I192be2b12cdf34d6a6f243ec048d25d63f54affe
2021-11-02 08:07:44 +01:00
Translation updater bot d7ad7dbec0 Localisation updates from https://translatewiki.net.
Change-Id: I0a5cc18d2f9cea7df5589a1ab6833ab928dd85f1
2021-03-01 08:54:12 +01:00
Translation updater bot 2aca3fbac9 Localisation updates from https://translatewiki.net.
Change-Id: I5ad70a3b23a2e072f4dda33b37eabff7a9f7938d
2021-01-25 08:55:15 +01:00
Ammar Abdulhamid ab287ade14 Allow specifying alt-text in File dialog
* Also add expandable help message to explain the alt text field

Bug: T260006
Change-Id: If16ff742d7a8dee4917884e73e9c95bf76350773
2021-01-22 21:37:17 +01:00
Translation updater bot 3206a13f5f Localisation updates from https://translatewiki.net.
Change-Id: I50a0d86574ba7e1857a35e4158730aa3db80d0aa
2020-11-02 08:54:21 +01:00
Translation updater bot f0926862aa Localisation updates from https://translatewiki.net.
Change-Id: I778ee3493acd7311672550f3c0c06529d8e700e8
2020-08-17 08:45:07 +02:00
jenkins-bot 38cc6f1f3f Merge "Add caption when inserting table" 2020-06-17 11:55:00 +00:00
Translation updater bot 299b0bc39a Localisation updates from https://translatewiki.net.
Change-Id: I91eb4067f4f054770a8d43407fba6b35d23937ce
2020-06-16 08:36:00 +02:00
pcoombe a822d1c197 Add caption when inserting table
Data tables should always include a caption for accessibility reasons.
So add a placeholder caption when using the "insert table" button.

Bug: T252350
Change-Id: I6773e2274007946de516ae34e841f66ad20ebc0c
2020-05-11 11:09:23 +01:00
Translation updater bot 399e7ef303 Localisation updates from https://translatewiki.net.
Change-Id: I18d2a6a58ca1bc94e53ccadb17680fbacbf22b82
2020-04-07 08:53:03 +02:00
Translation updater bot a644d7d4ba Localisation updates from https://translatewiki.net.
Change-Id: Icdc12f5152d4e76ba6a989ddda8f3d043582e8b6
2019-10-21 10:01:17 +02:00
Translation updater bot 774d3422f3 Localisation updates from https://translatewiki.net.
Change-Id: I47fb3443efb355d00a7d6146174cb201b9daeedd
2019-07-12 08:45:06 +02:00
Translation updater bot f7b26e9d65 Localisation updates from https://translatewiki.net.
Change-Id: I4430aad74b1c28cc3df66019507d0632038ba27d
2019-05-20 22:31:35 +02:00
Derk-Jan Hartman f501cdc9c6 Search: Add option to search whole words
Bug: T24478
Change-Id: Idb47ac392b0f8b1425053c6916db8f25c11c9762
2019-05-15 22:03:54 +02:00
Translation updater bot eb71e7c026 Localisation updates from https://translatewiki.net.
Change-Id: I021981afc29ddb971e289fd170482b2465415fc0
2018-11-08 22:18:18 +01:00
Translation updater bot 2715bb64a7 Localisation updates from https://translatewiki.net.
Change-Id: I26e5719493381e4bc531e8f513d1f26b09c26c25
2018-11-07 22:22:38 +01:00
James D. Forrester 169d38fa75 Re-label preference now that the 2006 wikitext editor doesn't exist
Add the secondary label in a 'help' note to make it easier to identify
the different editors.

Bug: T32795
Change-Id: I6d17359166f58811ba99893ce4a4500a87deb827
2018-10-25 14:33:31 -07:00
Translation updater bot 985e37e272 Localisation updates from https://translatewiki.net.
Change-Id: I420b8f686fb55555721236c1056b40363a3e4cfc
2018-02-13 22:25:56 +01:00
Translation updater bot fac2641067 Localisation updates from https://translatewiki.net.
Change-Id: Idc290091893ab529935991be48ec326a7e47d99f
2018-01-14 22:17:19 +01:00
James D. Forrester be36244c70 Radically simplify this extension now there's only one config option
On or off. Pick your apples.

Change-Id: I7677f0b597c33f236192aea1aaa347a36216fbb7
2018-01-02 21:25:16 +00:00
James D. Forrester 77cea2697c Drop the never-finished "Labs" publish and preview features
These features were ideas in the Usability Initiative but were never
finished to the level that they would be deployed on Wikimedia wikis
and have been marked as "going to be removed" for years. Now is time
to act on that promise.

Change-Id: Ia1eb91d2dfb1979518d97badc1477146b4606f7c
2018-01-02 21:00:44 +00:00
Translation updater bot 12a1732d9d Localisation updates from https://translatewiki.net.
Change-Id: Iad295b3ef5bc997b7f619053a750ffea92221d01
2017-12-10 22:33:31 +01:00
Translation updater bot 8fb7db4a91 Localisation updates from https://translatewiki.net.
Change-Id: Ie00bf00ee13bba080e3b2e71908126760726b825
2017-06-25 23:22:53 +02:00