Commit Graph

3321 Commits

Author SHA1 Message Date
Translation updater bot
6df455704c Localisation updates from https://translatewiki.net.
Change-Id: Ia845998691598907b4e82ecad28900836e64603d
2020-03-11 08:30:15 +01:00
Kartik Mistry
379fafb400 Update jquery.uls from upstream
Change-Id: I92fea922a6f8cabe4c4f6c74e87f393f0ec7f719
2020-03-09 11:57:14 +05:30
David Kamholz
44ea2ceeb3 added Pustaka Bali and Vimala fonts for Balinese
Bug: T247142
Change-Id: Ie77a72ca532272662dd2c3f7f4d5a3ea2236f067
2020-03-09 05:47:15 +00:00
libraryupgrader
3eddb6b712 build: Updating acorn to 7.1.1
* https://npmjs.com/advisories/1488

Change-Id: I1e0f98d12d3fc4427ad9469194dfa27e755e2d52
2020-03-08 15:13:20 +00:00
Reedy
da1c81d691 Run compile-font-repo.php
Running it on a repo without any changes, results in ext.uls.webfonts.repository.js changes

Change-Id: I28353a1da384eb6e3386d8697e80a2b33daaf455
2020-03-07 08:05:45 +00:00
Reedy
8b4e263ed7 Fix webfonts typo
Change-Id: I3cc3264f347454a0c15981653163226c13a2a007
2020-03-07 00:07:22 +00:00
Translation updater bot
4bdc8b2a6e Localisation updates from https://translatewiki.net.
Change-Id: Id4899c12c13f08614e5ded33068b02078d20c20d
2020-03-05 08:40:09 +01:00
Translation updater bot
29e88806b7 Localisation updates from https://translatewiki.net.
Change-Id: I7530b94ef1e60eb8abea7b6177c86848d881d1df
2020-03-04 08:54:14 +01:00
Niklas Laxström
61f1a9863a Simplify ext.uls.preferences module
Related to T246370

Change-Id: Iedef79c75ef0ab9c1baff5a0e6f1953c3c56ac91
2020-03-03 11:38:23 +00:00
Translation updater bot
31f23edd14 Localisation updates from https://translatewiki.net.
Change-Id: Ib290553bf1d284a31fd7f90bc99404a1e444616d
2020-03-03 08:15:25 +01:00
Translation updater bot
93628379b9 Localisation updates from https://translatewiki.net.
Change-Id: Id5fe076af7f56e5862875603df47808046e29a37
2020-03-02 09:11:55 +01:00
libraryupgrader
1fbf5f97bc build: Updating npm dependencies
* grunt-stylelint: 0.13.0 → 0.14.0
* stylelint-config-wikimedia: 0.8.0 → 0.9.0

Change-Id: Ic26989566157dd688077800fcb5302d2a24efe62
2020-02-21 04:11:01 +00:00
Translation updater bot
263db3d365 Localisation updates from https://translatewiki.net.
Change-Id: Ie426e0e07e0a458f1c269d488f21b11c014d0cec
2020-02-20 09:28:01 +01:00
Translation updater bot
33ec81ed19 Localisation updates from https://translatewiki.net.
Change-Id: Iaa294944958378821a3ec0c043c4c422ced82bb1
2020-02-18 08:25:45 +01:00
Translation updater bot
b30a54cacd Localisation updates from https://translatewiki.net.
Change-Id: I6f66420d1b721cce94325fd2e6732e439d268e14
2020-02-17 08:47:59 +01:00
Amir Aharoni
ed42b4a6c3 Update jquery.uls from upstream
* Localization updates for af, ksw, nqo, ti

Updating to
186c342617

Change-Id: I32b987d87a6568d87ec012c6f49cc82509a532bc
2020-02-13 13:47:44 +02:00
Translation updater bot
a8613c716e Localisation updates from https://translatewiki.net.
Change-Id: I684c37c9969f5e82872e92b22682dd42d8b56ec2
2020-02-10 08:36:13 +01:00
Translation updater bot
dd0e8657fd Localisation updates from https://translatewiki.net.
Change-Id: I088c42abe70404f36796fa8acb4ef972946de745
2020-02-06 08:20:12 +01:00
libraryupgrader
c3e4ac27c0 build: Updating composer dependencies
* jakub-onderka/php-console-highlighter: 0.3.2 → 0.4.0
* mediawiki/minus-x: 0.3.2 → 1.0.0
* mediawiki/mediawiki-phan-config: 0.9.0 → 0.9.1

Change-Id: I1675c0646922afb2931634eb84a7ec4eb2220b5b
2020-01-30 08:25:32 +00:00
Translation updater bot
17d3bd74f3 Localisation updates from https://translatewiki.net.
Change-Id: Id040c8edadd9d886f55ceb7f4bdb8cd5ec42487f
2020-01-28 08:26:46 +01:00
Fomafix
9fabb9a4ff Simplify variable assignment.
This makes the code shorter and the message is generated only in the
else path.

Change-Id: I1367280b6c154fe77b8a2cfbcdb6333aecefab53
2020-01-23 14:40:25 +01:00
Thiemo Kreuz
a5ae7cb556 Streamline a few pieces of JavaScript code
The main goal here is to reduce complexity. For example, the method to
remove a parameter from the current URL is never used with another
parameter. The complexity is not needed.

This is inspired by the changes I have seen in Icaf086f.

Change-Id: If22c25e84f50ac380320cd581690835ddb70f01d
2020-01-23 09:29:12 +00:00
Abijeet
459d55c5d3 Remove setlang URL parameter on dialog close
Add two new options for ext.uls.dialog - afterOpen and afterClose.
These are callback function which will be triggered after the dialog
opens or closes.

Using the afterClose callback in ext.uls.setlang to remove the
setlang parameter from the URL if the dialog is closed without
pressing any button. This might happen if the user closes the dialog
by pressing Esc, or by clicking on the overlay.

Also see: Ie3215d12d9c77f15597495e21610707b272eeee9

In addition, renamed all occurrence of setlang to setLang.

Bug: T63115
Change-Id: Icaf086f947b1d91bf7ad5b36f126da0be1fc7747
2020-01-23 09:27:15 +00:00
Kartik Mistry
1375f0c56c Update version before MLEB release
Change-Id: I02e948abf9263f6fcbac0f59f345e4a80358be4e
2020-01-23 11:09:32 +05:30
Translation updater bot
4de92c400b Localisation updates from https://translatewiki.net.
Change-Id: Ieec1c0433c5b6572e8f87b570b920a51c925a182
2020-01-21 08:17:14 +01:00
Fomafix
80b8d411aa Use document.documentElement instead of 'html' as jQuery selector
Change-Id: I1b3bb53a31125333d14d1659fdadd2a81140ae50
2020-01-20 14:52:13 +00:00
Fomafix
0a605f40ab Use PHP syntax features from PHP 7.1
* void return type (https://wiki.php.net/rfc/void_return_type)
* Nullable type (https://wiki.php.net/rfc/nullable_types)

The parent change ensures that PHP 7.1+ is required.

This change reverts commit 8eb162020f.

Change-Id: Ifb8fc52f4b161ea89fef2c84e51e4c8f2b648a49
2020-01-20 13:49:55 +00:00
James D. Forrester
a0dab26fb1 build: Explicitly require PHP 7.1+, per MLEB baseline
Change-Id: I602d302f3e32af1d0ab3586d3fcbea31ecf50e1c
2020-01-20 13:49:54 +00:00
Translation updater bot
b7aec09dd3 Localisation updates from https://translatewiki.net.
Change-Id: I302c0832ec0a7faef50504561a07c2d8b6fcb56b
2020-01-20 08:50:57 +01:00
libraryupgrader
546643a82d build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate

Change-Id: Id07ab99e34e0de415585ff8ddf9b15fb413acef9
2020-01-15 10:09:41 +00:00
Abijeet
5ad4f74ea9 Add support for keyboard events for the setlang dialog
Support has been added for:

* Esc: Closes the dialog
* Tab: Ensures that tabbing keeps focus on the focusable elements
  in the dialog. If no overlay is not present, the focus is
  allowed to flow normally.

This should not happen but if NO focusable elements are found and
overlay is displayed, focus is locked on the overlay.

Also add description and other license information for uls.dialog
& uls.setlang files.

Bug: T63115
Change-Id: Ie3215d12d9c77f15597495e21610707b272eeee9
2020-01-14 15:14:37 +00:00
Translation updater bot
ec55f8c158 Localisation updates from https://translatewiki.net.
Change-Id: I1a341dd2e6cf0d858348f23c8b373be627a3a6af
2020-01-13 09:12:22 +01:00
Translation updater bot
11ac040c2c Localisation updates from https://translatewiki.net.
Change-Id: I93afeceaf7b63f8a88abb5f9e9e7a30dedc01b0a
2020-01-10 08:34:51 +01:00
libraryupgrader
a19a9791f3 build: Updating npm dependencies
* stylelint-config-wikimedia: 0.7.0 → 0.8.0
* grunt-stylelint: 0.12.0 → 0.13.0

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: Ib1790ffb8818752c89e8cd075a62c2dc5cbf0daf
2020-01-10 06:06:36 +00:00
Translation updater bot
1c294f8981 Localisation updates from https://translatewiki.net.
Change-Id: I23bd07228b36f7fadd169d0aef2dcb9b64eec217
2020-01-06 08:51:04 +01:00
Santhosh Thottingal
6f1ccbd3b7 Update jquery.ime library
Changes:
1. build: Update eslint
2. telugu jna gunintham fixes

Updating to 6d591016d2

Change-Id: I092ae22f51bb18ef5dd23f8b1552ca7ced17face
2020-01-06 07:02:34 +00:00
Santhosh Thottingal
f39d684103 Update jquery.uls from upstream
* Localization updates
* Update language data
* Remove IE6/7 support

Updating to
9a0e73bc68

Change-Id: I18ae8fe756ba21b06e6292651889309924fa9ee8
2020-01-06 11:54:04 +05:30
Translation updater bot
f925d5caa2 Localisation updates from https://translatewiki.net.
Change-Id: I6fdf21d18e9029786630011f6c6b1f0ee4f2530c
2020-01-02 09:00:13 +01:00
Translation updater bot
5cda92a1a7 Localisation updates from https://translatewiki.net.
Change-Id: Iba27c1ab99ecbd88a05d42e0e92751807b0c7fd3
2019-12-29 20:42:31 +01:00
Translation updater bot
2523d17a32 Localisation updates from https://translatewiki.net.
Change-Id: I077c5dd709a9fd1a242e50da7d3c801f0b4c9283
2019-12-26 16:22:19 +01:00
Translation updater bot
a1e9105d60 Localisation updates from https://translatewiki.net.
Change-Id: Ifdc930b7e496562c216f79c2af7b94dedab5eab0
2019-12-24 10:03:44 +01:00
Fomafix
8652470ec4 Use position:fixed instead of position:absolute
This prevents a wrong position of the dialog when there is a different
scroll position like on an URL with fragment, for example
Special:Version?setlang=de#Installed_software

Change-Id: Ic10c6b13461a259d87fd43a718acdd1421193b6c
2019-12-23 13:50:28 +00:00
Translation updater bot
9e389c7490 Localisation updates from https://translatewiki.net.
Change-Id: I5a698fc667485e26849450878b2490274b771d02
2019-12-22 17:41:57 +01:00
libraryupgrader
1aa27c8640 build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I9c9736c1399422d2668d5a18712cb9b023149ef8
2019-12-22 09:08:52 +00:00
Fomafix
5fda459531 Remove URL parameter setlang from history when language is unchanged
This change allows to use the ULS language changer without getting a
dialog for restoring the old language.

This change requires that the module is also loaded in this case.

Change-Id: Ie5169e986d0362034ede122b0bc29ce7a4aa481e
2019-12-19 20:32:25 +01:00
Fomafix
d31fddd8e7 Use history.replaceState instead of history.pushState
This removes the URL with the URL parameter setlang from the history.
A click on history back doesn't show the URL parameter setlang anymore.

Change-Id: I0ea8c4508bedd9758a1cebbe8ecb2a7113bf8538
2019-12-19 20:11:19 +01:00
Fomafix
5b41346e76 Use a cookie which can changed by JavaScript for setlang
Before this change the cookie set by setlang can't changed with
JavaScript UI anymore.

Change-Id: Iad5fac0ee7de59813370849f22b685073e4cc535
2019-12-19 18:22:32 +01:00
Fomafix
8eb162020f Remove type hints which are not supported by PHP 7.0
ULS currently supports MediaWiki 1.32+ which supports PHP 7.0+.

This change can reverted when the minimum required MediaWiki version is
1.34+.

Change-Id: I8115c4ae74c8aa91899899b1fb304ccbf1066ad8
2019-12-19 17:36:32 +01:00
Abijeet
ff02e63a45 Update setlang to display confirmation dialog to change language
setlang will now display a dialog to confirm with the user that
they would like to change their interface language. The preferred
language will only be updated if the user confirms.

The dialog will be displayed if the setlang parameter is present in
the query string and,

* A user is logged in, and their preferred language is not the same
  as the one passed via setlang.
* For an anonymous user if the wgULSAnonCanChangeLanguage is true,
  and the current interface language is not the same as the one
  passed via setlang.

Bug: T63115
Change-Id: I882297d99a594fd82fd0aec3b4664e8bfd1eac3a
2019-12-19 14:54:34 +00:00
libraryupgrader
88b2f8ee2f build: Updating mediawiki/minus-x to 0.3.2
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Ifcd79b5966f44baae1f50144730c04d09d47f000
2019-12-18 14:43:59 +00:00