Commit Graph

3431 Commits

Author SHA1 Message Date
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
Translation updater bot
c3110dac43 Localisation updates from https://translatewiki.net.
Change-Id: I4a0d055bee7de729095425996fb7081ba2d37b1a
2019-12-18 09:26:55 +01:00
Translation updater bot
b3377b689d Localisation updates from https://translatewiki.net.
Change-Id: I7b5acd9d83d7c2ac9cbfe9391a2ebc5f830a045a
2019-12-17 10:09:24 +01:00
Fomafix
61ebecff91 Use document.body instead of 'body' as jQuery selector
Change-Id: Ia551b3050ed546de1f9db44dbd332a5b6c108a9f
2019-12-16 15:51:09 +00:00
Translation updater bot
6d97927ad2 Localisation updates from https://translatewiki.net.
Change-Id: I5a45e86093797dce097ba7ec52fd5a11693ff79b
2019-12-16 12:15:48 +01:00
Fomafix
6a5b9e3164 Consistently use setTimeout, clearTimeout and location without window
Change-Id: Ie83313b3f2a7f9bc939eb19d7a82bc980f12b0b8
2019-12-16 10:19:35 +00:00
zoranzoki21
ef741394c4 Convert UniversalLanguageSelector extension.json to manifest_version 2
Bug: T239433
Change-Id: Id2e0af8bab2cb834c1ffaa0abe692e0c3d58c14d
2019-12-02 20:43:29 +00:00
Translation updater bot
f8c6802348 Localisation updates from https://translatewiki.net.
Change-Id: Ib0d8fd385f9a50e64f691f41357c504765efcdb5
2019-12-02 09:24:26 +01:00
Amir Aharoni
8f87957a91 Update jquery.uls from upstream
* Rename ais to szy
* Add shy-latn
* Localization updates

Updating to
783ee39251

Change-Id: I23f43a7204a18c5a3b4a77f7ca1e8dbccc8071ab
2019-11-26 22:20:37 +01:00
Niklas Laxström
81e7f9a888 Update language name search index with CLDR 36 data
Change-Id: I2a9ff49eb64917a4e11938e654b8d4d387f9a7c8
2019-11-26 10:58:19 +00:00
Translation updater bot
6e0f6c23c0 Localisation updates from https://translatewiki.net.
Change-Id: I12fa6d55f71a07d2d5364cb5355972eeaf7e9c20
2019-11-25 09:11:14 +01:00
Translation updater bot
0c27891cf1 Localisation updates from https://translatewiki.net.
Change-Id: I45346d4146d0bd856f8dc1ac95d9126577967d90
2019-11-22 09:15:46 +01:00
Amir Aharoni
95912d438c Update jquery.uls from upstream
* Update linters

Updating to
d53beca719

Change-Id: Ia7886a13fc17e27344280449d0377e0fa5d0d9f5
2019-11-21 11:33:28 +02:00
Volker E
f6e5d24941 Put overhauled icon on baseline and unify code with Vector's
Putting icon on link label baseline as good as possible cross-browser
and unify code with Vector skin's code. With one improvement,
putting icon in `:before` selector in order to be able to specifically
change icon independent from link, which opens up `opacity` or state
changes.
Also cleaning up CSS by
- reducing specificity
- changing to `stylelint-disable-line` only on specific selectors
- removing initial value `transparent`

Bug: T207075
Change-Id: Ib5d446434263441eb85aa2e96a0e4dbde1034c1c
Depends-on: I92acb9851a3c0acdbc40a4a4528a91c7332c9293
2019-11-13 23:02:23 +00:00
Amir Aharoni
5425ac76aa Update jquery.uls from upstream
* Add languages: Bajau (bdr), Cakma (ccp), Jeju (jje)
* Add Aragonese as a language of Spain
* Localization updates for bg, fa, fit, sd, tt-cyrl
* Rename code ais to szy

Updating to
c4f0fdab15

Change-Id: I2972dacee47c7a89fc9109c44c1cc7d268a3bde2
2019-11-12 16:10:08 +00:00
Ed Sanders
b105c2cadc build: Update linters
Change-Id: Ib83952a64224ab550f64975285e60713225b23b7
2019-11-12 14:45:01 +00:00
Translation updater bot
df3df8feb3 Localisation updates from https://translatewiki.net.
Change-Id: Ibf8ba90d131b9a24f3470b42f3af70b093959962
2019-11-12 09:33:01 +01:00
Translation updater bot
1b7b1c012a Localisation updates from https://translatewiki.net.
Change-Id: Ie4da92ad0e8e1754df7bb7c88bc4705cf886c852
2019-11-11 15:34:34 +01:00
Translation updater bot
6f0a84bb7c Localisation updates from https://translatewiki.net.
Change-Id: Id32faa7f0cda95f0fc1ec114d14ad0b20164b9f6
2019-11-08 09:49:06 +01:00
Translation updater bot
ea8d12ee98 Localisation updates from https://translatewiki.net.
Change-Id: I02c97f583ae5f79cbc4ca36e8e8904ff669bd3a1
2019-11-07 09:45:36 +01:00
Translation updater bot
04d14beb52 Localisation updates from https://translatewiki.net.
Change-Id: I36e79a6f718ffdfb1568fc8673cd10f2136cb257
2019-11-05 09:47:01 +01:00
Translation updater bot
085ffd78f9 Localisation updates from https://translatewiki.net.
Change-Id: Ie9ec2b6bb8de3c71dc850ef853840d6143f2a483
2019-11-04 10:18:00 +01:00
Umherirrender
af5ed767f4 build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Bug: T235049
Change-Id: I76701f507f709642bba63aa72909434d4787bb0a
2019-11-02 12:39:26 +01:00
Fomafix
e7ab5faf2f Use type hints for TypeError exception
This change allows to replace the Assert::parameterType by a type hint
in Ie215179b4631fd9071b257772c5cb193547cb7d7.

Change-Id: I399a92d3fac0e0849fe3a403c703fe7d32f51257
2019-10-31 19:12:09 +00:00
Kartik Mistry
2c0be6be46 Update version before MLEB release
Change-Id: I80f13f3164cb4b100e747cfc2ea40f94ba3b9ac1
2019-10-31 13:25:12 +05:30
Translation updater bot
8e173ee2c5 Localisation updates from https://translatewiki.net.
Change-Id: Ic32d5f5bfc8ccc13f0a954c2c040806c01210d3d
2019-10-24 10:48:26 +02:00
Translation updater bot
ee2cec86fc Localisation updates from https://translatewiki.net.
Change-Id: I9650b6b2ce4d308a190cdf4469db678b9ad945d3
2019-10-23 09:53:56 +02:00
Translation updater bot
f139ad913a Localisation updates from https://translatewiki.net.
Change-Id: I4f86ca9bde3fa6b445ebcb4723d954d24703109a
2019-10-22 09:15:24 +02:00
Translation updater bot
980f8957a6 Localisation updates from https://translatewiki.net.
Change-Id: I2c3da1b665bb0e40e5498015e7a0ad710233b470
2019-10-21 10:01:09 +02:00
Translation updater bot
c7c81e4923 Localisation updates from https://translatewiki.net.
Change-Id: I876ec943175bbd4a613900523bfcf5a329b034dc
2019-10-16 20:42:51 +02:00
Translation updater bot
cc6c4e4fcb Localisation updates from https://translatewiki.net.
Change-Id: I75812c47787535726854fb36a282ba82ffd146e6
2019-10-16 10:41:32 +02:00
James D. Forrester
9647474e5e build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: I87cca3ebf32c87ef1cf163e3c7ca3f8337e54c8d
2019-10-11 12:35:39 -07:00
Translation updater bot
d243d22d46 Localisation updates from https://translatewiki.net.
Change-Id: Ia491757d30f85a2b0a7297c12c3aa39e266a87bb
2019-10-10 09:33:51 +02:00
Translation updater bot
b27b2e13bf Localisation updates from https://translatewiki.net.
Change-Id: I3731436158ba2a0862567a84b1012c4cf1514b59
2019-10-08 09:34:41 +02:00
Timo Tijhof
372ab5301e ext.uls: remove redundant -webkit gradient/svg reference
To match how MediaWiki core expands the .background-image-svg() mixin
function. According to Codesearch, this is the only repo with a match
for `-webkit-linear-gradient.*url\(`.

Bug: T121730
Change-Id: Ide4fc6eef81de76b4b0043cd88ecdf8ed2e3e736
2019-10-06 16:38:21 +00:00
Amir Sarabadani
f1e9eedb96 Clean up most of b/c for phpunit4
We don't support phpunit4 anymore:
https://w.wiki/9UT

Change-Id: Id7ad0e139f454becfac87bedca75b271250d387c
2019-10-05 19:44:54 +02:00
Timo Tijhof
21100ebb78 Remove @embed where it needlesslay delays the page load
>>! Performance Inspector
> Source: ext.uls.common
> Used selectors: 0.00% (0 of 10)
> Used embeds: 0.00% (0 of 1)
> ----
>   .uls-icon-back {
>     background-image: .., url("data:image/svg+xml..

It seems the entire module isn't used, but that can be fixed
separately. The icon is used by ext.uls.inputsettings and
ext.uls.displaysettings as part of a click-triggered dialog,
which means it can never appear on a page directly.

Bug: T121730
Change-Id: I36831beeb764e6893c331b20b90102a5ceb0d21a
2019-09-27 16:19:34 +00:00
Translation updater bot
3267de88cb Localisation updates from https://translatewiki.net.
Change-Id: Ib37beed27487f063dfe9bfabf1746ac9578f2584
2019-09-26 09:15:28 +02:00
Translation updater bot
dd91e06753 Localisation updates from https://translatewiki.net.
Change-Id: Ie3456a48b0f8b7d37923cb833dd1c04911d28935
2019-09-24 09:59:29 +02:00
Ed Sanders
dae53b628c build: Update linters
Change-Id: Ib513d9fe879fb0c848cdfefaaaa753cc7279e242
2019-09-17 14:55:46 +01:00
Translation updater bot
512b597a9d Localisation updates from https://translatewiki.net.
Change-Id: I09802b322bd56b30b64140ef88be2ee068c91963
2019-09-16 09:57:52 +02:00