Commit Graph

3553 Commits

Author SHA1 Message Date
Translation updater bot
c48bc78b2d Localisation updates from https://translatewiki.net.
Change-Id: Ibefcc63ff32ed9b805b777ca408f2cf41a1efc7a
2021-05-04 08:53:24 +02:00
Niklas Laxström
469fecea14 Update language name search database
Change-Id: I54fc6292b0d2d31941ca12585f635389018b476c
2021-05-04 04:56:20 +00:00
Translation updater bot
b64c2c1344 Localisation updates from https://translatewiki.net.
Change-Id: I3f1b74fb4a30752b079317a63cca71855c558df1
2021-05-03 08:38:25 +02:00
Translation updater bot
fb38af6c97 Localisation updates from https://translatewiki.net.
Change-Id: Ie59f232c4d95047e7d5df0cde7d9fd5751197f6c
2021-04-28 16:43:22 +02:00
Amir Aharoni
152cfbed67 Update jquery.uls from upstream
* Split ciw to ciw and ojb
* Localisation updates

Updating to
4c124f2d71

Bug: T280461
Change-Id: I443fa47605e09f2c9f5d5a7d302bddf046801962
2021-04-28 06:42:20 +00:00
Kartik Mistry
2e05b501bb Update version before MLEB release
Bug: T279280
Change-Id: Ida8597db98c3bef3dd97a11ceda0c9b08087d3d0
2021-04-27 17:01:31 +05:30
Translation updater bot
a62f926cad Localisation updates from https://translatewiki.net.
Change-Id: I00a13e26581e7c17d76fd9a8fc3ae023b1b8a1a4
2021-04-27 08:39:07 +02:00
jdlrobson
ec8edeb8ec Use ev.currentTarget not ev.target
In modern Vector, the ULS trigger button has a child node which is
a span. When clicks are received on the span, they will result
in positioning relating to the span rather than the button.

The ev.currentTarget should be read outside the asynchronous function
to avoid bubbling.

Bug: T276248
Change-Id: I6e138c88e29b335b8e0bc22cf0aa07c289a5eb74
2021-04-26 16:59:47 +00:00
Translation updater bot
c496e9bfdf Localisation updates from https://translatewiki.net.
Change-Id: Ie3cfd9bf8daa4787dee0186f14c88d193d03e118
2021-04-26 07:16:59 +00:00
Translation updater bot
798db0e776 Localisation updates from https://translatewiki.net.
Change-Id: Idb59aea18d2d769045c5611e5dc10e7f34cad652
2021-04-26 08:58:16 +02:00
Translation updater bot
c87c9e0741 Localisation updates from https://translatewiki.net.
Change-Id: I01e9b79b639d1260dcf8e7acddec1c2b3edc0186
2021-04-23 08:37:34 +02:00
Translation updater bot
86f7544a51 Localisation updates from https://translatewiki.net.
Change-Id: Ie682bccabbf9908f95c85fa398252142620f8e96
2021-04-22 09:32:27 +02:00
Inductiveload
a2a218cce1 Update Junicode to 1.002
Bug: T173573
Change-Id: I0d8d650ea63e5391a405926ff769981a4c094403
2021-04-21 13:47:21 +00:00
Niklas Laxström
c79e0292aa LanguageNameIndexer: Small cleanups
Change-Id: I24509b35c403dcdae94f921ccc9b82c2e9c78aa7
2021-04-21 11:48:16 +00:00
Niklas Laxström
2a044e1e0a Small cleanups and typo fixes
Change-Id: I4faeb4673fd5e903d2931d6071262a893d4009f5
2021-04-21 11:48:15 +00:00
Niklas Laxström
929e707c49 Simplify undo tooltip positioning
OOUI is smart enough to handle this automatically:
https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.PopupWidget-cfg-position
https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.PopupWidget-cfg-autoFlip

Change-Id: Ib8e4ea0e900b3ea0904b34d82c874227462e342e
2021-04-21 11:48:13 +00:00
Niklas Laxström
97dffe3a9b Quick fix for LanguageNameIndexer
A better fix would be to use JSON directly from language-data.

Bug: T279971
Change-Id: Iaaf936c4ba46069df2a4855056e613d62f8d7118
2021-04-21 11:00:47 +00:00
Timo Tijhof
1f64589ae7 build: Remove redundant eslint globs from Gruntfile.js
These ignores are already in package.json. Placing these here was
making `npm test` wait 10-20 seconds doing nothing waiting for Grunt
to synchronously recursively glob and expand an array of every file
in the current working directory (incl node_modules, and vendor) and
then once more for node_modules and vendor, and then to filter one
out from the other. And all before eslint even starts.

Instead, give '.' to eslint as we do in some other repos already,
and let it iterate on its own, skipping sub directories as it goes
based on package.json/eslintIgnore.

This follows-up 445087e5f, which did this once before,
and be400fe75 which unintentionally brought the Gruntfile part
back while leading the other part behind.

Change-Id: If637f2a696326778f25ea208224f5ac101f8c64a
2021-04-20 07:08:17 +00:00
Translation updater bot
82bf65b17c Localisation updates from https://translatewiki.net.
Change-Id: I09add979e3911bee1c5a11871981ffbbc184dd8e
2021-04-19 08:51:56 +02:00
Timo Tijhof
a6e0c10c54 ext.uls.interface: remove unused "ulsPopup remove" code
The ulsPopup variable is local to the showUndoTooltip() function.
If it is called multiple times, then a previous assignment of an
OO.ui.PopupWidget object would not be found here in subsequent calls.

This check can only ever be false since it is the first statement in
the function (after variable and function declarations, which don't
do anything other than call `$()`).

Change-Id: I7020c103428d01b5e48c65be695471401f588fc4
2021-04-15 07:01:13 +00:00
Translation updater bot
09facbe9e5 Localisation updates from https://translatewiki.net.
Change-Id: I0548b124c65e2fba749297621b00791c5e880253
2021-04-15 08:44:20 +02:00
libraryupgrader
0e9dbf344c build: Updating eslint-config-wikimedia to 0.20.0
Change-Id: Icadd4a33d781eb2795e1c3bbfa9e088339d88527
2021-04-15 02:16:50 +00:00
Niklas Laxström
50b345c83d Avoid JavaScript errors for tipsy if no entry point on the page
Bug: T278313
Change-Id: I48011eec9f7d876b914550012cc76e2209fc783c
2021-04-14 23:41:54 +00:00
Amir Aharoni
51ec3bc0e6 Update jquery.ime and jquery.uls from upstream
jquery.ime:
* Update characters for the Basaa keyboard.
* add ~1 rule to the Palochka layout and make it
  available for the Dargwa language
Updating to
51418055cd

jquery.uls:
language-data: Add the Dargwa (Dargin) language (dar)
Updating to
67e4d46f6a

Change-Id: I6fe23100a5a4b2ad0507353d6a7cd4c5520867c0
2021-04-14 12:58:04 +00:00
Translation updater bot
a002e3647e Localisation updates from https://translatewiki.net.
Change-Id: If41efbd261a51420d13963bc7a8f3342477fe56a
2021-04-12 08:39:12 +02:00
Translation updater bot
18fcec8345 Localisation updates from https://translatewiki.net.
Change-Id: I2abda51681b8ea70d0b1efb6d2d3fcfb745e3a6f
2021-04-09 08:59:32 +02:00
Translation updater bot
6a4841220a Localisation updates from https://translatewiki.net.
Change-Id: I021a3107fd5f01e6d2c2ba5d1116fbe4febf2a2f
2021-04-08 08:41:15 +02:00
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