Commit Graph

3626 Commits

Author SHA1 Message Date
libraryupgrader
e2ab4bb1c3 build: Updating dependencies
composer:
* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.19.0
  The following rules are failing and were disabled:
  * compat/compat

Additional changes:
* Added the "composer phan" command to conveniently run phan.
* eslint: Renamed `wikimedia/client` profile to `client-es5` (T277085).

Change-Id: Ib31cbcd8c615d2e6abf9ee30f0f4d7b7baa54e2e
2021-04-07 11:10:07 +00:00
Translation updater bot
76a8b29e74 Localisation updates from https://translatewiki.net.
Change-Id: I2a979f5fcd805e54d605da26995f29537c78da55
2021-04-07 08:52:49 +02:00
Translation updater bot
5163fc82e5 Localisation updates from https://translatewiki.net.
Change-Id: Ic648df1abc5e362ce12d12606008559c7c8fce51
2021-04-06 12:03:32 +02:00
ZabeMath
cb4c7a13b6 Avoid using User::getBoolOption()
User::getBoolOption() is deprecated and should be replaced with UserOptionsLookup::getBoolOption()

Bug: T277600
Change-Id: I119f9ed8a2f81af2a7f3ac6743e4af239f7ca61d
2021-04-02 02:22:13 +00:00
Amir Aharoni
c0d85510c0 Update jquery.ime and jquery.uls from upstream
ime:
* Add keyboards for Basaa and Kom
** e2548891a9

uls:
* Update language-data: add bas, bkm, bzj
** 4495850b9c

Change-Id: If0c6a6eca32319082fad954103b35c89164ab251
2021-03-31 15:47:39 +03:00
Translation updater bot
24d1f5fc86 Localisation updates from https://translatewiki.net.
Change-Id: I6aa3123143dfc8fa316456a9cd8c625754300fdc
2021-03-30 08:34:08 +02:00
Translation updater bot
e1ed1ee2e1 Localisation updates from https://translatewiki.net.
Change-Id: I0708e1a10fdf998bfc0e633955ae9c4ead62a759
2021-03-29 08:37:24 +02:00
Niklas Laxström
3af22f60d4 Fix ULS dialog positioning in some cases
In development environment, ev.currentTarget is the button.
In Beta Cluster, however, once ext.uls.mediawiki is loaded,
it is now the document (the event has bubbled up). I do not
know what causes the difference, but we can use the target.

Bug: T276255
Change-Id: Ie4c425510293a6f2ce81e4bf4a353f2c8d86d412
2021-03-24 10:32:08 +01:00
Translation updater bot
db4e86284d Localisation updates from https://translatewiki.net.
Change-Id: Ie6343462091a3fb5c30b663a2551451963d82319
2021-03-23 08:25:43 +01:00
Niklas Laxström
e8747a022d Avoid content language selector dialog resize shortly after opening
Small dialogs were resizing after loading when display and input
setting buttons were added to it. Now delay showing the dialog until
they are loaded.

Bug: T276248
Change-Id: I7033903737afedbd4be908c84d07656c468ce801
2021-03-22 18:21:16 +00:00
Niklas Laxström
8c835588f2 Fix positioning of input/display settings for new language selector
Unrelated behavior change: ULS language selection dialog is hidden while
display or input settings is open.

Also simplified dead code in addDisplaySettings.

Bug: T276248
Change-Id: Ia91a2b83e7ad4072016649230e2376b0793cbbff
2021-03-22 12:11:39 +00:00
Niklas Laxström
ffc9c20fdb Update jquery.uls to 5c7ff63
* Support for onPosition callback

Change-Id: Ia877ce3dfcd1aa382b12470c378a65b36cc9abd5
2021-03-22 13:10:51 +01:00
Translation updater bot
e5a2c48058 Localisation updates from https://translatewiki.net.
Change-Id: I58ae73a259251748da1accf783564ba4a6d77d66
2021-03-22 08:38:18 +01:00
Niklas Laxström
6ac655fa9f Update jquery.uls to 835947c
* Remove explicit widths from dialogs
* Updated search icon

Change-Id: I8be38f4854b1f7f9181e974fbb10247d89f64153
2021-03-18 10:03:53 +00:00
Niklas Laxström
0a692b227a Increase z-index for undo tooltip
When interface language selector is at the top, the undo tooltip
may appear under new Vector search box and other user tool links.

Change-Id: I36ac01511e590896afb0382c17ae90d01ba57314
2021-03-18 09:29:59 +00:00
Niklas Laxström
d3a3ac082b ULS: Avoid JS error for undo tooltip with new language button
Change-Id: Ib571152ff14754e186a3e7dd9e1c08bc22239032
2021-03-18 08:43:06 +00:00
Niklas Laxström
03547c68e3 Improve positioning for content language selector on narrow screens
Reported in
https://github.com/wikimedia/jquery.uls/pull/383#pullrequestreview-613761459

Instead of checking the left edge of the trigger, check the midpoint.
This is more reliable and does not cause the dialog to incorrectly
swap sides in narrow screens in LTR direction,

This patch does not touch the compact language links variant.

Bug: T276248
Change-Id: Ic734abb7b350852f8c5c10ced8456bf146df62d8
2021-03-17 10:29:18 +01:00
Niklas Laxström
dd8842517e Change ULS content language selector positioning
New Vector introduced a new content language selector trigger. This
code was hardcoding a behavior that works for compact language links
but is not so appropriate for other uses in the skin, which are out
of our control.

This patch aims to be a minimal change to allow other kinds of
behavior without changing the amount of tech debt. This changes
the default ULS dialog behavior to match the requirements shown
in the task. Compact language links specific behavior is retained but
only enabled for the compact language links trigger. The behavior
is chosen depending on the value of isUsingStandaloneLanguageButton().

For future changes, I propose that mw-interlanguage-selector class will
not have any styles attached to it. Whoever creates the trigger would
be in charge of styling it. Ideally that code would also define the
positioning and other behavior, but it is less clear how that can be
abstracted in a nice and decoupled way.

Bug: T276248
Change-Id: I52da6c2f5a1f25d64f322a3c8f6105da3b244b66
2021-03-16 22:36:18 +00:00
Niklas Laxström
95b1137a57 ext.uls.interface: clarify code
Changes to comments, naming and code to increase clarity of the code
and explain better what it does and why. No change in behavior.

Change-Id: I998fcfd620c2ee737618c3ab8f41fb6dfdd2c99a
2021-03-16 22:36:16 +00:00
Niklas Laxström
099f1f37c8 Add mw.uls.setLanguage
Translate's pagetranslation.uls module needs to override the action
that happens after language code is set. Currently it uses setlang
url parameter, which (no longer) works with Special:MyLanguage.

After this patch, it can use mw.uls.setLanguage and does not need
to reimplement it's functionality.

Turned mw.uls.changeLanguage into simple utility that calls
location.reload when the promise is resolved.

Change-Id: I9a648b146188dd252c239085bbe276165dc5f393
2021-03-16 10:16:06 +00:00
Translation updater bot
fc179cef11 Localisation updates from https://translatewiki.net.
Change-Id: I8a39b42fc5308af702ad04ed3b460b8cb0265e30
2021-03-16 08:34:02 +01:00
Translation updater bot
f3bae9fd93 Localisation updates from https://translatewiki.net.
Change-Id: I5e16cfd87918d39d7855e54c6f277c6860071e79
2021-03-15 08:41:42 +01:00
Translation updater bot
f31b0c9e0c Localisation updates from https://translatewiki.net.
Change-Id: I37e344e17fa5cb91ee93f27a72445e6649d90d51
2021-03-11 08:39:07 +01:00
Amir Aharoni
0b92c6732f Update jquery.uls from upstream
* Add nan-hani
* Update autonym for guc, cjy, cdo

Updating to
3153ae0fc2

Bug: T180771
Bug: T276745
Change-Id: I47cc29e6c8764eb7ade9da361fcb57f5b54bc44f
2021-03-08 15:20:46 +02:00
Translation updater bot
04a0e231e8 Localisation updates from https://translatewiki.net.
Change-Id: I29fd72b00917d1b3f541b19ee51d0aec7d6e0a1d
2021-03-08 08:47:29 +01:00
Translation updater bot
f5c9c2b09f Localisation updates from https://translatewiki.net.
Change-Id: I60ccf678d0963244ef418b5e651d1fe0a158f2f0
2021-03-05 08:57:00 +01:00
Sam Smith
852d72e66d Remove UniversalLanguageSelector instrument
Per T275894, Readers Web intend to increase the scope of the
UniversalLanguageSelector instrument to help them understand how
users are interacting with the Languages list in sidebar.

In order to keep the UniversalLanguageSelector extension focussed and
not overly Wikimedia-specific, it was agreed that the instrument would
be migrated to the WikimediaEvents extension, where other such
instruments are located.

Therefore, remove all code related to the UniversalLanguageSelector
instrument.

Bug: T275894
Depends-On: I2acee8ba8dc59c497dc6ba42cd5bd88dfd985c8b
Change-Id: I72b1d0ff35488521b3499e9606efee26baff8c00
2021-03-04 13:58:19 +00:00
Translation updater bot
0b16bddaff Localisation updates from https://translatewiki.net.
Change-Id: I3c8acd75e28d3dc9813e29657e343d6e30094e70
2021-03-04 08:39:36 +01:00
Amir Aharoni
1414007810 Update jquery.ime and jquery.uls from upstream
jquery.ime:
* Add Nuer keyboard

Updating to
2c27ec2da3

jquery.uls
* Localization updates: de-formal, kcg, nap, pt-br, sl
* language-data updates:
** Add languages nus, rhg, rmc
** Add variants pap-aw, tly-cyrl
** Update Talysh (tly) autonym (see I552e07967 for details)
** Add Rohingya Hanifi script

Updating to
1bed61638b

Change-Id: I4412ccf4e1ce01718d55490a5d938e981da25a40
2021-03-01 12:39:51 +02:00
Translation updater bot
bb815d5d0d Localisation updates from https://translatewiki.net.
Change-Id: I50100ea9093bff0645c954d1cd3491b7c1c9ad4c
2021-03-01 08:53:54 +01:00
Umherirrender
af6402a0be build: Updating mediawiki/mediawiki-codesniffer to 35.0.0
Change-Id: If06ebde661499310d608a4fd724a9526145ad7bb
2021-02-27 00:34:53 +01:00
Translation updater bot
d9003e1f5a Localisation updates from https://translatewiki.net.
Change-Id: I811bcdd24b9fa20c2d80d2f65061c60237290b97
2021-02-26 08:58:01 +01:00
Translation updater bot
b6ba86bc1d Localisation updates from https://translatewiki.net.
Change-Id: I346b22fa514d19e4f38451bc753698758d7d56bd
2021-02-25 08:39:35 +01:00
jdlrobson
96656c5f41 Allow access to display and input settings in new vector
Light refactor of existing code into reusable method to support
this.

Use Extension attributes to allow skins to provide ULS
additional configuration.

Bug: T274396
Change-Id: I7dcd49f05fae83fbc0c15768bee8ca93eab17bcc
2021-02-22 11:02:10 +00:00
Translation updater bot
5ec30a6f63 Localisation updates from https://translatewiki.net.
Change-Id: I91e8e18dc2ee8420c9d4eec29cc9dc7400b67ce7
2021-02-22 08:54:06 +01:00
Translation updater bot
811ca9d221 Localisation updates from https://translatewiki.net.
Change-Id: Icea4fc2fafd9090326452c165f4c52a313d60c11
2021-02-18 08:44:05 +01:00
Translation updater bot
e73ef64385 Localisation updates from https://translatewiki.net.
Change-Id: I6ee552b905b32154165c45dc90c03f35de2be91b
2021-02-15 10:06:45 +01:00
Niklas Laxström
2172c8c1b2 CompactLinks: Update performance summary
Change-Id: I310fea3dbdd8cd232a0204ffd17e3a02c6723c8a
2021-02-11 08:00:48 +00:00
Niklas Laxström
8b6d8f6898 Remove CompactInterlanguageList.prototype.getInterlanguageList
Unused since e3569d32a7

Change-Id: I2a0f74972b8f566d6462fa261231dbafe9a66665
2021-02-11 07:51:26 +00:00
Translation updater bot
be97646116 Localisation updates from https://translatewiki.net.
Change-Id: Ie12dd9e67158fa83231cb0b2689e7299c4a1efa0
2021-02-11 07:45:09 +00:00
Niklas Laxström
b385d58aca Remove CompactInterlanguageList.prototype.getCommonLanguages
Unused since fcfa36ac77.

Change-Id: Ifae139d989fb6cb21fc3e19006306ed597d058e6
2021-02-10 14:39:25 +01:00
jdlrobson
64aeedfb17 Modern Vector should be compatible with ULS
Without the following changes the language button shows the
wrong label and opens a dialog with zero languages.

* Don't apply heading change to modern Vector
* Look for the element .mw-portlet-lang as well as #p-lang

Bug: T273232
Bug: T273928
Change-Id: Ic201b1983a17cc37fd1ff7c507aab656ea25f370
2021-02-09 18:07:11 +00:00
Translation updater bot
525c0551cc Localisation updates from https://translatewiki.net.
Change-Id: Ib49334008a53d2b5afdd2e5c189d675d4d793dad
2021-02-08 08:46:01 +01:00
Translation updater bot
7dab663fc8 Localisation updates from https://translatewiki.net.
Change-Id: Iddadba7fb41d624c35f3d44eb698bf7017b18cdf
2021-02-01 08:49:03 +01:00
Translation updater bot
0053bff10d Localisation updates from https://translatewiki.net.
Change-Id: I72bee242287ad75e3d23279198e4f658ee6135e2
2021-01-29 08:39:01 +01:00
Translation updater bot
bc828d7e81 Localisation updates from https://translatewiki.net.
Change-Id: Ide4d9732b3a269a0f59f1be62f7fedc94ea0fa8d
2021-01-28 08:37:23 +01:00
Translation updater bot
9b5da5f891 Localisation updates from https://translatewiki.net.
Change-Id: I8637d54bc52ccd2ed083cf04a24541b0eb892422
2021-01-25 08:55:05 +01:00
Kartik Mistry
a04f1af26f Update version before MLEB release
Bug: T271398
Change-Id: I42f5e7051bcd295d4a5e925e66f4545e7e2c1657
2021-01-21 10:20:12 +00:00
Nikerabbit
3ac9853220 Simplify ext.uls.preferences module
This is updated version of 61f1a9863a
which was reverted due to compatability issues which are no longer
present.

Change-Id: I05333ddc288171b6d867dce8a1d3efc1e1450e0a
2021-01-21 08:08:15 +00:00
Translation updater bot
e5f69435a5 Localisation updates from https://translatewiki.net.
Change-Id: Ib5337f881b272bcc339207b27bdc2bb33a43201e
2021-01-20 08:27:35 +01:00