Commit Graph

3879 Commits

Author SHA1 Message Date
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
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