Commit Graph

164 Commits

Author SHA1 Message Date
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
Fomafix
fda55e2ab1 Integrate ext.uls.nojs into ext.uls.pt
The CSS hiding for non-JavaScript clients is only necessary when the buttons
get added.

Change-Id: I6e43e39d29c093a19f3e8355d657f162f9a62736
2016-09-20 12:22:51 +00:00
Fomafix
8778051f8f Remove unused variable loginUri
The variable loginUri was added in 422371f6 but never used.

Change-Id: I85aaa6aa524dbe0a02129696f1bff46fb410fbe5
2016-08-30 12:18:45 +02:00
Niklas Laxström
4cd1def0f3 Switch default ULS geoip provider
Current provider is going away. Switching to another free provider.
Implemented caching with a cookie for speed and to avoid generating
unnecessary load on the service.

Bug: T143542
Change-Id: I191d69a6fb8abe9556f475dfef1368dc9f96b846
2016-08-24 15:55:00 +00:00
eranroz
abaddfaccd Earlier evaluation of compactlinks
* Prospectively load ext.uls.init
* Prospectively check if readyState is interactive
Bug: T136463
Change-Id: Ib36ef6a2b9955189acfbe06bd6b498a66014cf06
2016-08-19 11:10:27 +00:00
jdlrobson
9e0dcbde35 Enable UniversalLanguageSelector modules for mobile
Enable several of the ULS modules so they can be used in a mobile context,
in particular by the Translate Extension

Changes:
* Create a ext.uls.common module that can be loaded safely on mobile
* Only add the ext.uls.init entry point module on desktop (ensured by
the use of targets). On mobile it has no impact other than to increase
the amount of bytes shipped to users.
* Note various modules have not been enabled for mobile usage.

Bug: T102922
Change-Id: If2808886f0bfa153f5918e3c7536e88641028da9
2016-08-17 06:43:46 +00:00
Niklas Laxström
b3ba423354 LanguageNameIndexer: Generate PHP file instead of serialized file.
Serialized format is no longer in style for data. PHP files can
take advantage of AutoLoader and caching so they can even be faster
than serialized files. As side bonus we can have readable diffs
for updates.

Only downside is that the file generation takes about ten lines of
ugly string manipulation.

Change-Id: If09704d1172daa13c72a308814534cac1fe9899f
2016-08-08 07:55:42 +00:00
Amire80
c3ada477a3 Add Niharika to authors
Niharika was the developer of the Compact Language Links feature.

Change-Id: I725ebf7fe6e2e739048dc22ac8ad46c48eb36c0c
2016-07-25 14:33:01 +03:00
Santhosh Thottingal
9327417702 Add license files for upstream jquery-* libs
Updated the update scripts too

Change-Id: Ia5f509cdc3ab91cd30c81d91da999993d13c68d1
2016-06-03 17:35:19 +05:30
jenkins-bot
ffe449122a Merge "Update jquery.uls to ab3cd92" 2016-05-26 12:30:59 +00:00
Santhosh Thottingal
f3b984e4e1 Update jquery.uls to ab3cd92
Important changes:

* Remove region filter module
* Remove jquery.uls.compact.css
* Remove unused methods from jquery.uls.data.utils module
* Localisation updates

Change-Id: If87bd21e19780fa5d90cedb4235854816c4adfba
2016-05-26 13:39:23 +02:00
jenkins-bot
2c511cd34b Merge "Remove jquery.uls.compact resource loader module" 2016-05-25 03:22:11 +00:00
Niklas Laxström
5dc797617d Remove ext.uls.buttons
All users of this module have migrated to mediawiki.ui or equivalent.

Change-Id: I5579c012807d31fceb51b7ce0e687a128c791d72
2016-05-24 10:18:28 +02:00
Niklas Laxström
fd636d1f5f Remove jquery.uls.compact resource loader module
All known users of this module (CX) have stopped using it.

Change-Id: I0827b37a92e56f40433a197b275a0d0dd44cefe2
2016-05-24 08:35:07 +02:00
jenkins-bot
384b109362 Merge "Update jquery.uls and adapt styling" 2016-05-23 11:09:01 +00:00
Niklas Laxström
4ff7d5adf8 Add tooltip to the "more languages" action to provide better context
Bug: T135224
Change-Id: I3c5d909ff334182e25b48fd3917260087ee276ef
2016-05-19 08:56:04 +00:00
Niklas Laxström
a19e8c0dba Update jquery.uls and adapt styling
jquery.uls.compact module is kept for now as some other
extensions depend on it. But it does not do anything
anymore.

There are some styles which should be in jquery.uls
upstream, but given the current state that is easiest
done in a follow-up later.

The main change is that language selection is now
compact by default: no heading etc.

Includes style changes for the dialogs, and especially
for the new position of the callout caret.

Bug: T85519
Change-Id: Iade8005439b4f58ab241752f69a5365d8bb88d2c
2016-05-18 11:40:58 +02:00
Santhosh Thottingal
cbb46f7451 Compact language links: Delay loading of jquery.uls module
Load jquery.uls only when the trigger is clicked.
Reduces the initial footprint by 63.9 KB (uncompressed)

Bug: T135210
Change-Id: I972cb6ea1794485917ea530f7abe68bdddc2014f
2016-05-17 14:55:51 +05:30
Santhosh Thottingal
d778cc88a4 Add jquery.uls.data as depedendency to ext.uls.init
ext.uls.init has references to jquery.uls.data

Bug: T135210
Change-Id: Ib6ff791ff79b09af60494a1f61016d7982eb1fae
2016-05-17 11:02:19 +05:30
Santhosh Thottingal
02da4454e2 Add config to enable compact language links for anonymous users
By default, the value is false.

Change-Id: I16dd24182c6e2b8e5e63ebfc0ea305a3511a9e1d
2016-05-16 11:20:56 +00:00
Santhosh Thottingal
35e7d72e35 Add config to enable compact links for new accounts
By default the value is false.

Change-Id: I30e9c3d929158d9ebe90edfcb10c90712ad294f9
2016-05-16 15:07:20 +05:30
Santhosh Thottingal
f1995bc603 Introduce a preference to disable compact language links
Bug: T133030
Change-Id: If9ec0b8c75c59c62991f0d4bfa99f6d4c9324c30
2016-05-13 14:51:21 +02:00
Santhosh Thottingal
aa4e4b417d Introduce a config variable to enable Compact language links by default
Configuration: ULSCompactLanguageLinksBetaFeature
Default value: True

Bug: T134145
Change-Id: I8d4e97653daf7fcee9175c6d7cefb5c5abb22305
2016-05-09 08:40:53 +00:00
jenkins-bot
b871779a41 Merge "Remove wgULSCompactLinks configuration variable" 2016-05-09 06:33:19 +00:00
jenkins-bot
897d4f7f72 Merge "Refactor font repo compiler so it can be reused" 2016-05-02 04:37:53 +00:00
Santhosh Thottingal
695ea37918 Remove wgULSCompactLinks configuration variable
This was used to expose Compact language links as beta feature.
Now a days, we want it as beta feature unconditionally and this
configuration does not make sense. So removing.

Bug: T134145
Change-Id: I40d5c07064b5f407ec37837b0835e0698f3a5256
2016-05-02 04:11:13 +00:00
Niklas Laxström
c99a30bf80 Simplify code by using Object.keys
Guaranteed by es5-shim.

Change-Id: Ifd698dc03fd8e755e95ec6c4856ec3683cc3305d
2016-04-22 12:49:15 +02:00
Niklas Laxström
85f7ebdd4b Delay compact language links language selector creation until click
No point constructing the selector when it is used.

Task: T122341
Change-Id: I928f9041a95e2c48625dba6e11550ac6bbdcb7fd
2016-04-22 10:19:21 +00:00
Santhosh Thottingal
cac3e709de Compact links: Add png background image for trigger
Converted the css to less file too.

Change-Id: I2f01c170336b0d19f0dbac10ebd9a3eac769d104
2016-04-19 14:23:04 +02:00
Niklas Laxström
651f8bc1c3 Refactor font repo compiler so it can be reused
Includes changes to the generated repository file
because the script had not been run for last update.

Change-Id: I6b5d1ce980c6e5b42e36c0044729536b6b0ae4dc
2016-04-14 10:12:20 +02:00
Santhosh Thottingal
a29db92746 Remove the years old cookie to localstorage migration code
Change-Id: Icf82e040b7e3f015cb4cbb9b9c7ed4dee240f017
2016-04-12 06:59:12 +00:00
Santhosh Thottingal
64eab95b94 Remove browser checks and use MediaWiki browser policy
We had a browser check to blacklist all browsers older than IE 8
IE <= 7

But that is no longer required since JS support is not there for such
browsers as per https://www.mediawiki.org/wiki/Compatibility#Modern
We can support all modern browsers listed there and we don't need
additional blacklisting now. From 1.27 onwards, there is no JS loaded
for IE 8 too. So we can just use MW browser support policy.

In this commit, the code to do brower checks removed and simplified
the initialization code. Still I am not happy with the interface module,
that need further refactoring.

Change-Id: I655826c55fb2c7c5c88f16368110142d64a96eec
2016-04-12 12:12:35 +05:30
Santhosh Thottingal
a3c63f1efc Update ULS settings UI style to mediawiki.ui style
The ext.uls.buttons style can be removed but Translate extension use that.
Once it is separated we can remove it from ULS.

Testplan:
Use ULS settings and notice the style difference of buttons, checkboxes
and radio buttons. No functionality should be affected and UI should not
be broken in any ways.

This was once attempted in Id186ece6513f154e0388bc4170c21bdabb59038a
but we had to revert because of incompleteness

Bug: T52599
Bug: T127020
Change-Id: Ibbb2068b5036537f298fad6c49169a5b986304d5
2016-04-07 12:06:29 +00:00