Commit Graph

3796 Commits

Author SHA1 Message Date
Amir Sarabadani
b50ff9275d Fix jquery deprecation
Applying PR#52 (https://github.com/wikimedia/jquery.webfonts/pull/52)

https://api.jquery.com/jQuery.trim/

Bug: T280944
Change-Id: I7cf706b905a27079a06737b252805e199939d8df
2021-07-10 00:30:33 +02:00
Translation updater bot
491972d90a Localisation updates from https://translatewiki.net.
Change-Id: I8168270aa52912672a9f695226685694cd118b22
2021-07-09 08:07:16 +02:00
Translation updater bot
46ec59a2ee Localisation updates from https://translatewiki.net.
Change-Id: I1207375664da2ecb08271a6543466e50405236f7
2021-07-05 08:07:26 +02:00
Translation updater bot
412ed2f4d1 Localisation updates from https://translatewiki.net.
Change-Id: Ie54a7bdff0563a4f0a37f4c6c261e52616b86c02
2021-06-30 08:26:27 +02:00
Translation updater bot
1775434d31 Localisation updates from https://translatewiki.net.
Change-Id: Iff39db5f14955aabe37fc290d601facee6fbc09d
2021-06-24 08:27:26 +02:00
Niklas Laxström
18b1df166d Remove IRC
Change-Id: If1c3e178feffc1e5a0b2125e7f919853fdacbbfa
2021-06-23 10:18:20 +03:00
Translation updater bot
5e3590864f Localisation updates from https://translatewiki.net.
Change-Id: I968fb736f801b6ed04ef4eda80575773e9bfc2fa
2021-06-22 08:10:04 +02:00
Sam Smith
3b9134f8ac launchULS: Add context to interface.language.change hook
Now that the interface.language.change hook is fired when the user
switches language using the Compact Language Switcher, we should provide
additional context to the UniversalLanguageSelector instrument.

Bug: T280770
Change-Id: I6c4ddf9738e527ac42581c9fb4924ed1d12748b4
2021-06-21 21:25:31 +00:00
Translation updater bot
8d4e548481 Localisation updates from https://translatewiki.net.
Change-Id: I673ab541d500df59b991ff2bcde4b915f9b0a416
2021-06-16 08:19:58 +02:00
Translation updater bot
112845b061 Localisation updates from https://translatewiki.net.
Change-Id: Ic239adda79d7b5aba889f2efdbd4eb5cf5fa51c8
2021-06-15 08:33:45 +02:00
jdlrobson
09a2b33bd6 Restore compact languages button user preference
The compact languages button user preference will be applied to
any compact language button provided by the skin, this allows users
to opt out of the feature as before.

This will be used immediately in Vector in
I436554d9d51470d277d59c2c71e08124735e12fd

Bug: T282149
Change-Id: I726c61d4c6895a28b999781752535e0ddc961744
2021-06-14 15:24:53 +00:00
Translation updater bot
a463ea4c2b Localisation updates from https://translatewiki.net.
Change-Id: I19286f47b4581e0dfd8640d55d50ed72bf627714
2021-06-14 08:38:38 +02:00
Sam Smith
bc14f8fa40 Fire language change hook
As of Id345e933, we fire the language change hook when the user switches
language by clicking on a link in the languages list. In order to
compare the user switching language in the scenario above with the user
switching language via the CLS and/or Vector's language switcher, ensure
that we fire language change hook in all treatments.

Bug: T280770
Change-Id: I4a74254612557c287b16f4f086077a2637de9a2e
2021-06-10 11:11:37 +00:00
jdlrobson
2c46226f83 Use SkinTemplateNavigationUniversal for ULS button
As part of the desktop refresh, we are moving towards a universal
hook for adding menu items. This allows more control over placement
without breaking backwards compatibility.

In modern skins, the personal URLs bar is split into
user-menu and notifications options which are combined for legacy
skins.

Depends-On: If4805e5186756056afcd31d21919e907a7782ce8
Bug: T282196
Change-Id: I79fa85e67d9c0064dd4dc9437517264d5fc04140
2021-06-07 20:40:14 +00:00
Niklas Laxström
0c45465786 Simplify extension.json with ResourceFileModulePaths
Change-Id: I4f00d86456132ed7a852cba0e9ce3e73a7d42193
2021-06-03 15:58:14 +03:00
Sam Smith
49924e9ec5 Pass context to compact_language_links.open hook
Following on from I6fa966c2, fire the mw.uls.compact_language_links.open
hook with the $trigger parameter as context for clients to be able to
able to distinguish which treatment is visible to the user.

Supporting changes:

- Note that the hook is unstable next to its callsite

Bug: T280770
Change-Id: Ie4bbfea4dc5e36401df587550f466aeae5c8fdcc
2021-06-01 18:11:30 +00:00
Abijeet
5baf437b3c Remove MW 1.34 backward compatible code
Move hooks and scripts to extensions.json

Bug: T282783
Change-Id: Id63d17d04789bb36fff35e0512e7878dc8bfe12c
2021-06-01 08:17:13 +00:00
jdlrobson
1786fce2c6 Default state of ULSCompactLanguageLinksBetaFeature should be false
extension.json configuration should reflect recommended production
configuration whenever possible. This particular configuration flag
is only ever true on Russian Wikivoyage or Wikisource, so is more
often false than true.

Having this default would have saved me ten minutes trying to work
out how to make the preference available, so I am keen to save someone
else that time in future.

Bug: T282149
Change-Id: Ieef58631c7ef5c42ffc05f13d0ed8a4f02c48de1
2021-06-01 07:45:37 +00:00
Translation updater bot
64b3fb0334 Localisation updates from https://translatewiki.net.
Change-Id: If6fc42fa907e8ae67724ba59ea4dbe8694fd3398
2021-06-01 08:36:46 +02:00
Translation updater bot
894b82c6ae Localisation updates from https://translatewiki.net.
Change-Id: I85c90fbaba8423b7433c7ea6ab997eaaa7c487be
2021-05-31 08:33:18 +02:00
Volker E
8354e280b6 build: Update SVGO to latest v2.3.0 and re-optimize SVGs
SVGO v2.x changed configuration to JS, amending configuration.
Adding new 'minify-svg' npm script.
Also re-optimize SVGs.

Bug: T278656
Change-Id: I88ebed650be0d20b71bca6f15f3aa70b6b5eb42a
2021-05-27 11:53:05 -07:00
Translation updater bot
4afb27e85d Localisation updates from https://translatewiki.net.
Change-Id: Id13900f1106f70d03b90b7a5f3596d07f8380032
2021-05-27 14:07:40 +02:00
Translation updater bot
19d4737e7c Localisation updates from https://translatewiki.net.
Change-Id: I4989d214333daaf0f42468f298b70215c3233a79
2021-05-27 12:06:28 +02:00
Translation updater bot
2bdfb22172 Localisation updates from https://translatewiki.net.
Change-Id: I359110ad52b26cd73735bdc9f2f032a805a69b9f
2021-05-26 09:05:55 +02:00
Amir Aharoni
7c6a6b528b Update jquery.uls and jquery.ime from upstream
jquery.uls:
* Make "ha" the primary code for Hausa (should address Bug T279269).
* Localisation updates: ms-arab, ce, fur.
* Minor whitespace fixes for eslint.
Updating to
9b879ca89b

jquery.ime:
* Minor whitespace and escaping fixes for eslint.
Updating to
1fd57c64b9

Bug: T279269
Change-Id: I46aeb0a8397ebd9dc8a5d68a9e92368d8156ae2d
2021-05-24 13:18:48 +00:00
Translation updater bot
53c076a736 Localisation updates from https://translatewiki.net.
Change-Id: Id943d40872c4e40263f8088cd6a2d6e6cb2304b6
2021-05-24 09:55:47 +02:00
Kunal Mehta
282a40e313 build: Use HTTPS for all dependencies
Change-Id: If21f0798c662c0de4282a2455446031e69fd5e41
2021-05-21 05:37:34 +00:00
Timo Tijhof
977e6c68c2 ext.uls.interface: remove some needless uses of jQuery
* $(node).prop(foo) -> node.foo

* For objects only expected to represent a single element,
  use native querySelector() and its natural null return
  fallback, instead of `$(), $.length, $()` etc.

* Fix a few minor non-voting eslint warnings that were in the CI
  output about line length and unknown type "bool".

* Remove presumed outdated comment about Vector splitting,
  per T234907.

* Rename ulsPosition to configPosition to be more clearly
  different from ulsPopupPosition.

* Remove various 'uls' prefixes of local variables,
  since this is ULS code in the ULS repository.

Change-Id: I1c617bf48283f47dc948550111c515faf173d1eb
2021-05-20 18:57:09 +00:00
Santhosh Thottingal
7b2338cef5 Replace BabelStoneTibetan with its variant with suitable type metrics
Due to the nature of the script, Tiben usually has high ascent and descent
values. Use a variant of BabelStoneTibetan to have lesser ascent, descent
values for modern, frequently used Tibetan

Bug: T283122
Change-Id: I902af894b0e4d6f375981f13548be49405fb3602
2021-05-19 14:35:33 +05:30
Translation updater bot
8241c90871 Localisation updates from https://translatewiki.net.
Change-Id: I0aecfedffe40392681fd83225707c59b8a8b4707
2021-05-18 08:48:03 +02:00
Santhosh Thottingal
96ec65ac8e Replace Jomolhari with BabelStone for Tibetan
Jomolhari is inactive upstream for years and BabelStone is an active
fork with improvement for better script support.

Bug: T197596
Change-Id: I5c3c1ce5ad2a80c78e93304d4023342a66382942
2021-05-17 13:39:09 +00:00
Translation updater bot
bde97ffe42 Localisation updates from https://translatewiki.net.
Change-Id: Ia51036755902de898b42380fbd59ed8802cd142c
2021-05-17 08:44:10 +02:00
libraryupgrader
a47ee3c476 build: Updating npm dependencies
* grunt: 1.3.0 → 1.4.0
* hosted-git-info: 3.0.8 → 2.8.9
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* postcss: 7.0.35 → 8.2.15
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)

Change-Id: I51d1b77003ed2a2c303cdd87e79ccc9be1a074da
2021-05-14 10:22:05 +00:00
Translation updater bot
11354ec013 Localisation updates from https://translatewiki.net.
Change-Id: Iabac05e1f67eb86bb1e8e79cbb8180bf42309848
2021-05-14 08:45:51 +02:00
Translation updater bot
ea009d92bf Localisation updates from https://translatewiki.net.
Change-Id: I889e74d570e1245b23c283c6a75b0129b6fb38a7
2021-05-12 09:23:37 +02:00
Sam Smith
8e85f0d611 Fire hook when compact language links are opened
Following on from Icc64044d, we fire the
mw.uls.compact_language_links.open hook whenever that treatment is
opened (and not only the first time that the triggering element is
clicked).

Bug: T281928
Change-Id: I6fa966c22c738ca12bcbeb0225c03f3f8394ecee
2021-05-11 12:48:10 +01:00
Translation updater bot
d4217b487b Localisation updates from https://translatewiki.net.
Change-Id: I37d1d023ed5267ba49554d83c43ba9d7de836751
2021-05-11 09:08:22 +02:00
Sam Smith
c914a7d0ab Fire hook when user clicks language button
This allows us to correctly instrument (via the
UniversalLanguageSelector instrument) this action so interaction rates
between treatments can be compared.

Bug: T273232
Bug: T273928
Change-Id: Icc64044d51c567482d4f286637366cefb7beeb3e
2021-05-10 20:46:37 +00:00
jdlrobson
5278a672fe Restore suggested languages to compact languages button
The filterForCommonLanguagesForUser method checks if commonInterlanguageList
is null, but it can never be null unless it is first initialized that
way.

Bug: T282037
Change-Id: I70c3a60349693473509d9b329764dc5138930506
2021-05-10 07:14:04 +00:00
Translation updater bot
aba6ce4d48 Localisation updates from https://translatewiki.net.
Change-Id: I2a3d5c17370ca0ac872e705f47a93ce699ea38f6
2021-05-10 08:54:15 +02:00
libraryupgrader
b556ff5878 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

npm:
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)
* hosted-git-info: 3.0.7 → 3.0.8
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)

Change-Id: If4b6b21986aaa05e3d33fcca6e35374a2eae1830
2021-05-07 15:52:15 +00:00
Translation updater bot
d254eedeb2 Localisation updates from https://translatewiki.net.
Change-Id: Ice989267aa30e4e864fdddcb5f800a9d55a209b3
2021-05-07 08:43:51 +02:00
Translation updater bot
c8d062e29a Localisation updates from https://translatewiki.net.
Change-Id: I6c7f64e30ca0b045778be8be35cf6a2c20e134d3
2021-05-06 08:55:16 +02:00
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