Commit Graph

3515 Commits

Author SHA1 Message Date
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
Niklas Laxström
4fc7bc9200 Handle corrupted values in input preferences
Bug: T246370
Change-Id: I13c730a6d584ad2f73807e11d5ceadfcb16a6040
2021-01-19 08:45:05 +00:00
Translation updater bot
207c5e6a9e Localisation updates from https://translatewiki.net.
Change-Id: Ieeb7d713fb5d4df4df6001f491ffded0411df6f3
2021-01-19 08:20:21 +01:00
Amir Aharoni
ba7f400b0e Update jquery.uls from upstream
* Localisation updates.
* Update language-data, adding gld and guw.

Updating to
5ccc75a8cf

Change-Id: Iae1f2a866d927ad390d11c6443bc8576d15f34df
2021-01-18 16:53:11 +00:00
Translation updater bot
b8ee0a7788 Localisation updates from https://translatewiki.net.
Change-Id: I13861d121eb71584c3764d7b0160d5313507c299
2021-01-18 08:40:16 +01:00
Amir Aharoni
7559bc51d1 Update jquery.ime from upstream
Add Nias tilde keyboard.

Updating to
4fe35290e1

Change-Id: Id91e2040c226330fad247fa9a595da5ffa1e54b9
2021-01-15 16:14:58 +02:00
Translation updater bot
e086cf7f92 Localisation updates from https://translatewiki.net.
Change-Id: Ie7478b3d66f238f19f48159083f537ff206445aa
2021-01-14 08:51:41 +01:00
Ottomata
93c48e4667 Finalize migration of UniversalLanguageSelector to event platform
Bug: T267352

Change-Id: Ic961eba1587e4f5c61c8a92d74501abeb45f6699
2021-01-12 08:57:59 -05:00
Translation updater bot
81a72f9377 Localisation updates from https://translatewiki.net.
Change-Id: I448b3c5b78edd7937e0f3a3fe4937c1064fd5c17
2021-01-11 08:35:36 +01:00
Translation updater bot
cc0a81000f Localisation updates from https://translatewiki.net.
Change-Id: I708c71fdee65174deb959133e0160bbb6be467a9
2021-01-08 08:56:37 +01:00
Translation updater bot
6266ffcb6f Localisation updates from https://translatewiki.net.
Change-Id: I499fcbb28df98508c6a5d9324a57c9e5eba9e2a7
2021-01-06 08:29:26 +01:00
Translation updater bot
90a80d4f2d Localisation updates from https://translatewiki.net.
Change-Id: I5252550b443b13c6f9bab7ce55a752073d617294
2021-01-04 08:45:05 +01:00