Commit Graph

96 Commits

Author SHA1 Message Date
Niklas Laxström
61f1a9863a Simplify ext.uls.preferences module
Related to T246370

Change-Id: Iedef79c75ef0ab9c1baff5a0e6f1953c3c56ac91
2020-03-03 11:38:23 +00:00
Kartik Mistry
1375f0c56c Update version before MLEB release
Change-Id: I02e948abf9263f6fcbac0f59f345e4a80358be4e
2020-01-23 11:09:32 +05:30
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
zoranzoki21
ef741394c4 Convert UniversalLanguageSelector extension.json to manifest_version 2
Bug: T239433
Change-Id: Id2e0af8bab2cb834c1ffaa0abe692e0c3d58c14d
2019-12-02 20:43:29 +00:00
Kartik Mistry
2c0be6be46 Update version before MLEB release
Change-Id: I80f13f3164cb4b100e747cfc2ea40f94ba3b9ac1
2019-10-31 13:25:12 +05:30
Kartik Mistry
0f4b9f34b6 Update version before MLEB release
Bug: T227078
Change-Id: I95d986837e0605e00707312199a638256ef56129
2019-07-22 18:15:14 +05:30
Fomafix
71aefc8d4b Drop support for MediaWiki 1.31 and earlier
MediaWiki 1.33 is released. The next version MLEB 2019.07 will be
compatible with MediaWiki 1.32 and 1.33.

Change-Id: I9487706125fe84d02cb8d3fec0a10e1f10006e64
2019-07-08 22:51:08 +02:00
Kartik Mistry
17df646831 Update version before MLEB release
Bug: T221573
Change-Id: I38eb389c5100b7bcc5d128e3f02933c30da972a2
2019-04-24 12:50:32 +05:30
Timo Tijhof
6928b7ec8d Merge ext.uls.eventlogger into ext.uls.common
This could've been done longer ago (by defining ext.uls.common
in Hooks.php), but didn't notice it before.

The ext.uls.eventlogger was (if configured) loaded on all page
loads. Same as ext.uls.init (but without config condition).

ext.uls.ext is an empty shim around ext.uls.common, which is thus
also loaded on all pages. Merge this into there given has no
reason for being its own module. They are always loaded together.

Change-Id: Icdda6f27470a1d56a37275164c06541514a488a0
2019-04-17 10:52:04 +00:00
Ed Sanders
aec4604b76 Disable ULS in VE readOnly mode
Bug: T217740
Change-Id: I217cf957f853bf0ed701f997f36bdbcc58f4a23d
2019-04-12 22:03:34 +01:00
Reedy
f8e9ed1299 Move some more php files under includes
Change-Id: I55d536e05c50a90f0805a6dc4252cc003ee0c7bb
2019-03-02 20:11:49 +00:00
Kartik Mistry
a79c1f5038 MLEB: Update version
Change-Id: I2a7814532bdb8c94ae6cf0c05228b67de38f45d1
2019-01-17 15:58:46 +00:00
Kartik Mistry
e61b40ca9c MLEB: Update version before MLEB release
Also, fix some old copyright year.

Bug: T206609
Change-Id: I2f5a04c01657b6a6853bba2458ea54ab210d1fae
2018-10-29 09:17:08 +00:00
Fomafix
fd9e39afb2 Sort ResourceModules in extension.json alphabetically
Change-Id: Ifb96dd97247592154191318531a535ce4c532dbd
2018-10-10 13:44:52 +00:00
Bartosz Dziewoński
f0ad6be4ab Avoid reflow (FOUC) due to ULS link on Special:Preferences
Rather than building the link in JS, which is delayed until the JS
code loads, we build it in PHP and hide it from no-JS users with CSS.

Change-Id: If0c3a4dc137d8bf6cf24957dd063bd0a39791d2e
2018-09-09 10:52:17 +00:00
Niklas Laxström
1857627c2f Drop support for discontinued freegeoip.net
There is a new service called ipstack, but their free option does
not support https, so by default there will not be any geoip service.

Bug: T199106
Change-Id: I9f4e59d736b50760f50c6214e2d191e72406d0d9
2018-09-07 19:45:21 +00:00
Niklas Laxström
51d86ad5bb Move now static ext.uls.compactlinks to extension.json
Change-Id: Ie074918ca58de4c62a6ba44caa48d429e561bb6b
2018-09-06 05:43:53 +00:00
Kunal Mehta
8ee09f0ba1 Allow $wgULSLanguageDetection to work if $wgULSAnonCanChangeLanguage is false
$wgULSAnonCanChangeLanguage is documented as just affecting setting of
language for anonymous users via cookies and &setlang=. But currently it also
affects the fallback to Accept-Language if $wgULSLanguageDetection is enabled.

With this, $wgULSAnonCanChangeLanguage will now only control whether cookies
and &setlang= can be used for anonymous users, and keeps
$wgULSLanguageDetection independent.

Bug: T203179
Change-Id: I6c664ad11dc18b66190dc0644352b91adf87c9e5
2018-09-06 02:28:30 +00:00
Fomafix
931982d728 Fix module loading on MediaWiki 1.31 and earlier
368fe37a1a is broken when used on MediaWiki 1.31 and earlier because
it tries to add

  $modules['ext.uls.displaysettings']['dependencies'][]

although $modules['ext.uls.displaysettings'] does not exist.

The whole module definition must moved from extension.json to
UniversalLanguageSelector.hooks.php.

Change-Id: Ie8f7f084c965e6dee33fef03448004d5d8805f2c
2018-09-04 07:04:49 +00:00
Fomafix
368fe37a1a Remove dependencies on deprecated modules 'mediawiki.api.*'
In core, modules 'mediawiki.api.*' got merged into 'mediawiki.api'
and deprecated in I0afdc8ab50bc1354bb5099bf39923c07eab0b665 included
in MediaWiki 1.32.

This change does not increase the version requirement in extension.json
to "MediaWiki": ">= 1.32.0" because it adds the removed dependencies
for earlier versions of MediaWiki in a hook.

Bug: T196802
Bug: T200168
Change-Id: I27dd62fae7a470549dd533f16c145cb023b16181
2018-09-02 20:02:19 +00:00
petarpetkovic
3f93207d04 Use 1.30 as minimum required version
Change-Id: I1a77c933efbcc4cfedd84ee361fc8b1c175fd38f
2018-08-31 14:35:24 +00:00
Niklas Laxström
fa9cea4627 Support UI language change when global preferences are present
Notable changes:
* First query global preferences to detect if global language setting
  is in use. If there is no global language setting, or if GlobalPreferences
  extension is not installed, it will fall back to changing the language
  as usual. If global language setting is found, it will add an override
  instead.
* If a local override is added, the undo tooltip is different and links to
  the global preferences page. The task design shows mw.notify style popup
  located on a bottom right corner (LTR). I deviate from the design and
  re-use the old undo tooltip with a different message instead, for
  consistency. The message is chosen depending on whether local storage
  value `uls-gp` is set to '1' (set in mw.uls.changeLanguage).
* I removed one use of deprecated mediawiki.api.options module. One other
  use still remains.
* I changed tooltip text generation from html acrobatics to use
  mw.message.parseDom. Because of that I also had to move the click handler
  to avoid buildup of click handlers.
* In message documentation fixed acronym -> autonym.

Bug: T198206
Change-Id: Ie2ed792e222be919522bd1cdea98042515a0619d
2018-08-30 22:40:17 +00:00
Kartik Mistry
5d490d16a1 Update version before MLEB release
Change-Id: Ie88c87d640f86760465208953428cc878f3e3e9d
2018-07-05 11:39:45 +05:30
Kunal Mehta
07cf9bbedf Register EventLogging schemas in extension.json
Change-Id: I60012747daa927264474e7a4867ad0f9124d793c
2018-06-23 00:02:07 +02:00
Niklas Laxström
99f5945704 Add Kartik Mistry to CREDITS and sync with extension.json
Change-Id: I38c00b9e4c18d2b0684c00984961811ccfd7334b
2018-04-12 08:15:18 +00:00
Kartik Mistry
06abea211f Update version before MLEB release
Change-Id: I575ca5e72b063f912514e290757a5eba7a860e16
2018-04-10 12:40:15 +05:30
Jayprakash12345
1ad692dcee Remove deprecated dieUsage method
Bug: T189222
Change-Id: I231f938d6813a8e588991e8f3a2645a0c320aeaa
2018-03-09 03:43:54 +00:00
jenkins-bot
3bb9a27230 Merge "Update copyright year and license shortname" 2018-01-30 15:02:00 +00:00
Kartik Mistry
de17e58d65 Update copyright year and license shortname
Also update version before MLEB release.

Change-Id: I857f1de4bca3d267ada206dbd30b0bd604b7c733
2018-01-30 17:56:38 +05:30
jenkins-bot
aed8d0bec2 Merge "Update jquery.uls to d122f37" 2018-01-30 11:45:06 +00:00
Santhosh Thottingal
fd7b9ec652 Update jquery.uls to d122f37
* Do not group search results by region
* Replace ULS trigger icon with monochromatic one
* Custom no-results message support
* Upgrade jquery in the example to 3.2.1
* Use .siblings to locate the suggestions, clear elements for efficiency
* Removing assigned ids to elements that are not guaranteed to be unique
* Use eslint and stylelint, fix all errors

Update the language icon in ext.uls.pt module with new monochromatic one
Also use custom style for monobook skin.

Bug: T182539
Bug: T175769
Change-Id: I7341064cd0de367d933048c4800f951568747d11
2018-01-30 15:10:01 +05:30
Jayprakash12345
57571f2f7b Removed deprecated position statements from resource loader module
Bug: T184257
Change-Id: Ia18c993f723be55c45a813a3cda8804b99c7b1d8
2018-01-05 14:21:19 +00:00
Santhosh Thottingal
4f3461a9aa Remove autonym font and its usage
I no longer maintain the Autonym font.
Also remove the tofu detection.

Bug: T135464
Bug: T135465
Change-Id: I103aab40ea5f5fc403a7ee5b23d1b634cc9c6ee1
2017-11-13 08:03:12 +00:00
Kartik Mistry
0782947299 Update version before MLEB release
Bug: T176708
Change-Id: Idedbd23ebe8eabd36d2df94247f6cd21766c067b
2017-10-30 17:14:46 +05:30
Fomafix
7c9e64a48a Remove support for MediaWiki version 1.26
Change-Id: I9ad5e87fa335b2b94840c3b3da4e921a41c71d9c
2017-09-24 21:53:26 +02:00
Amire80
0c5b4d3072 Split API messages from ULS
It's not a lot of messages, but this is a very common and basic extension,
and it's often one of the first to be translated, so it's good to make its
translation easier.

To be committed together with the corresponding
translatewiki configuration change:
I33ca817b457abc5504917745c2730ec223e263e0

Change-Id: I13ea351553319583051778cfb6c55f843b5f86e5
2017-09-20 14:28:06 +00:00
Volker E
31a8422a0c Follow core base font-size in Vector
Following core base font-size of `0.875em` in Vector to align with
other elements on the page.

Bug: T175295
Change-Id: Id9c8652820641d6fa1c6b1dd06247967ba649f25
2017-09-07 18:48:01 -07:00
Volker E
fd0bb2600b Replace outdated colors with WikimediaUI palette ones
Replacing all colors with current WikimediaUI palette ones.
Also:
- changing two files over to LESS in order to
 - make use of central gradient mixin instead of one with
   unnecessary vendor extensions and
 - concatenating selectors in one occurrence.

Bug: T174237
Change-Id: I5d302f29b079f6abdba5abf3b58d6ba254e1a4ac
2017-09-06 13:04:00 -07:00
Kartik Mistry
3bb241b08d Version update before MLEB 2017.07 release
Change-Id: I11d486f59ff270d24f9defba42ff7fa3c81f09e3
2017-07-25 12:50:11 +05:30
Fomafix
33668c9145 Add missing dependency on module 'mediawiki.user'
Change-Id: Ia4f2a742e0313dc14839a3eed91fca230e2c407f
2017-06-13 18:10:13 +02:00
Isarra
1d395d4966 Determine callout directionality based on position as opposed to language
For interlanguage toggle, interlanguage position is no longer assumed to be a
left sidebar, and is determined on the fly in order to appear correctly
regardless of where it is, and not go off the side of the page. This works
across most skins, and regardless of language directionality.

Does not necessarily resolve issues with interlanguage links appearing in the
middle of the page (header/footer), or the callout just plain not fitting for
other reasons (mobile devices).

bug: T161586
Change-Id: Icd55498a945e12c0ff79ba891c094d60ce791115
2017-05-19 04:55:24 +00:00
James D. Forrester
1d9fec680b extension.json: Remove no-op dependency on deprecated es5-shim module
Preserve dependency for MediaWiki 1.27 and 1.28.

Bug: T162590
Change-Id: Ia77b8914e3b036b6d7d7bf886ba0e47be9aba0ed
2017-05-05 21:16:42 +00:00
Kartik Mistry
9a49722a0c Update version before MLEB release
Bug: T162231
Change-Id: If3cc2eb57f0a2b73e9ddddc0a743282510286d06
2017-04-27 12:15:01 +05:30
jenkins-bot
bb3a516ed8 Merge "Update version before MLEB release" 2017-01-25 13:39:29 +00:00
Kartik Mistry
0931892cfd Update version before MLEB release
Change-Id: Ib79b4d32227c57eecb247995f2f02395efd6da8d
2017-01-24 10:34:16 +05:30
Fomafix
3ec9a325a4 Use module 'mediawiki.storage' from core to access localStorage
This change requires MediaWiki version 1.26 and removes support for lower
versions.

Bug: T153635
Change-Id: Ia74e16cb08e8cb1f15196a98329e2994b0283edb
2017-01-20 17:19:46 +01:00
Timo Tijhof
69138fa694 Remove use of deprecated "json" module
Depends-On: I8280faf1cbcd876ead2dafae4347b7d46e3e2acb
Change-Id: I02242885ef98ad4fb008dac623518b4d4f4b922e
2016-11-22 14:44:26 -08:00
Fomafix
337e0aef8c Move interface styles to ext.uls.interface.css
This change avoids loading of not needed styles for non-JavaScript client.

Change-Id: Ieaca5098181d1e922b940ed339fcee7bad8741b4
2016-11-08 16:46:00 +01:00
Kartik Mistry
b2600646f3 Update version before MLEB release
Change-Id: Ib7d41869e5baeebe6c56ef13cf94520cb9088a23
2016-10-25 18:37:30 +05:30
Niklas Laxström
b0a1430705 ext.uls.compactlinks: add explicit dependency to mediawiki.jqueryMsg
This should fix the unparsed plural syntax shown in the sidebar
in the Wikipedias (only in production).

Bug: T148117
Change-Id: Idcbecd606e11d23a341421224b3f21fe03bf509e
2016-10-14 07:54:07 +02:00