Commit Graph

2620 Commits

Author SHA1 Message Date
Santhosh Thottingal
62d05ed78d Update compact language links icon
Changed the background-size of the icon from 17px to 18px

Bug: T131912
Change-Id: I46977bcfac216b48648ee186ec0fda13f8262a0d
2016-04-19 15:44:14 +05:30
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
Ed Sanders
3cfb0d67e5 Update linting tools, config, and fix subsequent failures
Change-Id: I41e080915441367b3a2ab2de7d7a096872a2f2e8
2016-04-13 17:13:06 +01:00
jenkins-bot
4c5263e3f0 Merge "Fix language undo tooltip not showing" 2016-04-12 11:28:26 +00:00
Santhosh Thottingal
7d90ecef1d Use localstorage instead of cookie for previous language autonym
Change-Id: I1025a8bbb9fad0cfd326547a09c982925a55e55d
2016-04-12 09:40:50 +02:00
jenkins-bot
4ff9e44529 Merge "Remove the years old cookie to localstorage migration code" 2016-04-12 07:11:18 +00:00
jenkins-bot
c73a968840 Merge "Remove browser checks and use MediaWiki browser policy" 2016-04-12 07:06:50 +00:00
Santhosh Thottingal
a29db92746 Remove the years old cookie to localstorage migration code
Change-Id: Icf82e040b7e3f015cb4cbb9b9c7ed4dee240f017
2016-04-12 06:59:12 +00:00
jenkins-bot
5076753448 Merge "Update jquery.ime to 7572e2" 2016-04-12 06:43:19 +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
28044a6f14 Update jquery.ime to 7572e2
Documentation, code clean ups and build updates

Change-Id: I7ce3d75345b76f2a7693b6143e013b6a8202e093
2016-04-12 11:52:46 +05:30
Niklas Laxström
c0fe2d1a54 Fix language undo tooltip not showing
Test plan:
* Remove localstorage and cookies for a site
* Go the the site
* Change language and observe the undo tooltip

Change-Id: Ibecb5ea1cd537b2f019e7a9aa67ffac1a4e0923d
2016-04-12 08:22:27 +02:00
Santhosh Thottingal
d964a10c83 Add .jsbeautifyrc
Change-Id: Ic9090fea5f0f96bd8461e3e4466d95cfb4e75e8a
2016-04-12 04:42:02 +00:00
jenkins-bot
0bf38c715f Merge "Update jquery.uls from upstream to 40e67f5" 2016-04-11 14:18:53 +00:00
Santhosh Thottingal
3e58259ca7 Clean up ULS localstorage preference saving system
These changes affect anonymous users:
* Old code to restore preferences from jStorage removed
* No cookie used anymore

Bug: T100639
Change-Id: I3cfec447703d9c67cd2310ec4acc5692ad76be8e
2016-04-11 14:45:39 +02:00
Niklas Laxström
7ac7b6dde4 Update jquery.uls from upstream to 40e67f5
* 20d5e4 Some cleanup to the language filter
* bf0c55 Remove unwanted script related code in search method

And l10n updates.

Change-Id: Iad1bcf4dca611e2004d9fdec776dce14a5f669b2
2016-04-11 14:34:19 +02:00
Translation updater bot
6733a951c1 Localisation updates from https://translatewiki.net.
Change-Id: I0aa78485039205199185da6758424228ca21b6ad
2016-04-10 20:09:58 +02:00
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
jenkins-bot
ce6f8734a9 Merge "Correct the position the arrow of selector and add shadow" 2016-04-06 12:16:28 +00:00
Santhosh Thottingal
4f4e0a2427 Update jquery.uls to 7b3cd3d885
* Fix: search using API does not respect the passed language list
* Remove the reference to map block

Change-Id: Id777102a7c8e0575599b27c64839faf170dde003
2016-04-06 15:41:38 +05:30
jenkins-bot
8397cbd9d2 Merge "Resolve language code redirects before using them in ULS" 2016-04-06 09:09:32 +00:00
Federico Leva
6ffd42c07a Resolve language code redirects before using them in ULS
Interlanguage lists can contain language codes that are redirects
in language data of ULS.
For example, sr is a redirect to sr-cyrl.

So, if sr is passes as one of the language to ULS, its region, script
grouping is failing and the end result will be missing them in the ULS
language list. This should be properly fixed in jquery.uls library.
Tracked at https://github.com/wikimedia/jquery.uls/issues/207

In this patch we are following a simple approach of passing the language
codes to ULS as redirect resolved.

Bug: T100002
Bug: T131005
Bug: T126909
Bug: T123834
Change-Id: I8b89edb60b4d2c6f2b25c8589569f748c5523722
2016-04-06 10:42:43 +02:00
jenkins-bot
653ced8193 Merge "Update version before MLEB release" 2016-04-06 07:58:22 +00:00
Santhosh Thottingal
d5f6930cb4 Correct the position the arrow of selector and add shadow
The pointer arrow of the ULS was not aligned with the 'x more' trigger
and it missed shadow. This commit fixes it.

Notably, we replace the old arrow with a box rotated 45 degree so that
we can apply the shadow very easily.

Bug: T130633
Change-Id: I4d36f3ee9fcfea932e10208518a03e7b246a7abe
2016-04-06 09:43:39 +02:00
Kartik Mistry
4dfbcdc1f1 Update version before MLEB release
Change-Id: I17115957cf975bda2d2f7c5716d2941d84710616
2016-04-06 13:07:04 +05:30
jenkins-bot
d013ae5ebf Merge "Update jquery.uls to bd78c24" 2016-04-06 06:53:09 +00:00
Santhosh Thottingal
d728d8c8a7 Remove logging the language selection method
Removed the code to log whether map(removed long time back), search,
common languages used for selecting the language.

This logs were introduced to measure and adapt UI effectiveness.
No longer needed now.

Change-Id: I83bdd250cb6474da4fbf22aed2011071b9f9eba4
2016-04-06 09:59:12 +05:30
Santhosh Thottingal
74de11e73d Update jquery.uls to bd78c24
* Add left and right padding for search header of compact ULS
* Support language codes that are redirects
* Localisation updates

Change-Id: I52215676f20b2ce87178a73d071a209f0e4e323c
2016-04-06 09:42:09 +05:30
Santhosh Thottingal
c3ea89d9d9 Compact links: Add margin to the bottom of n more button
Bug: T130633
Change-Id: I51e68c67d307c9baf331a407e173223e3bff6def
2016-04-05 06:14:05 +00:00
jenkins-bot
f19155789a Merge "Call static Language::fetchLanguageName() statically" 2016-04-01 12:49:19 +00:00
Siebrand Mazeland
7565fdcf43 Call static Language::fetchLanguageName() statically
Change-Id: I3203ec8c601bc869b5c1b153fb745620ff9c03f6
2016-04-01 12:55:34 +02:00
Translation updater bot
34a48d35fd Localisation updates from https://translatewiki.net.
Change-Id: Ib269bb5cf97c50805505000d977c1bdbf5560a93
2016-03-30 22:42:58 +02:00
Niklas Laxström
c76a7d579d Revert wrong image update in I7f0ef09941
Change-Id: I12636762036d34c33d02a9c9472700aa1a4c3f7d
2016-03-30 10:44:08 +02:00
Ori Livneh
1f4827670a Compress PNGs with zopflipng
Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.

This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:

  git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
    parallel zopflipng -m -y {} {} \;

Files which zopflipng was not able to compress more efficiently were left unmodified.

Bug: T127608
Change-Id: I7f0ef09941cffb964acb3c67ef755e8538904084
2016-03-30 11:02:22 +03:00
Fomafix
6dab908f30 Remove since MW 1.25 deprecated functions
In class ApiBase the methods
* getParamDescription()
* getDescription()
* getExamples()
are deprecated since MediaWiki 1.25.

This change requires MediaWiki 1.25+.

Change-Id: Ice6b310b8dea3a223f45317aa803a743b5daa680
2016-03-30 07:07:21 +00:00
James D. Forrester
ce31c64f84 jQuery.IME: Bump to master (b6102fb)
New changes:
9316542 Remove trailing whitespace and superfluous newlines
1db02ed Improve language and method selection API
22ce72a Merge pull request #434 from divec/api
965c94e Update README and example
b6102fb Remove the unused showSelector property of defaultInputMethod

Change-Id: Icc78795fe1ece63b29ea3863ba1902519c818841
2016-03-25 11:24:43 -07:00
Niklas Laxström
9ea6f8d6ba Add a warning about T130390
Change-Id: I872d1dc0ec8d0827c3f56aeb1474f4596e08532d
2016-03-24 11:14:17 +01:00
Translation updater bot
7f30d9e31a Localisation updates from https://translatewiki.net.
Change-Id: I45f46c5dc3e4ef08ffdb27001085a6220fdc0cf1
2016-03-21 23:36:45 +01:00
Translation updater bot
ed3fe32e29 Localisation updates from https://translatewiki.net.
Change-Id: I82c81359fd2beb4999dc683b4e4e769c3dfc82e1
2016-03-20 22:43:28 +01:00
Siebrand Mazeland
f8487a54eb Use single quotes where possible
Change-Id: I8c0098e4840d7eff16cf5818f2247b134946d77b
2016-03-07 07:13:10 +00:00
Siebrand Mazeland
626d4e81d7 Fix case mismatch in method call
Change-Id: Ie002b925afaae7c88b587570659ffde3c579574d
2016-03-07 07:13:02 +00:00
Siebrand Mazeland
0e83adfef7 Perform cheaper check first
Change-Id: I4f82eb6a4ebf04ce5a41562b56ce3ee3794b018d
2016-03-07 08:11:57 +01:00
Translation updater bot
d5fc9bd429 Localisation updates from https://translatewiki.net.
Change-Id: I987dfdfac15db4d7ef5fb0e928759d774cd78c97
2016-03-06 22:17:53 +01:00
Siebrand Mazeland
f03d5659fd Move assignment of $dir outside of loop
Change-Id: I24009db72d0afbb47532eb2c00329e488461066f
2016-03-05 16:25:23 +01:00
Siebrand Mazeland
53fd91f3c0 Update newlines
Change-Id: I147338b76d3c9b1a34de51978dbfdebd17026bc8
2016-03-05 16:23:39 +01:00
Siebrand Mazeland
12abc7daca Pass-by-reference is not needed
https://secure.php.net/manual/en/language.oop5.references.php

Change-Id: I6730b8e4326abf304f102fe5c50041342e3a70a1
2016-03-05 16:14:28 +01:00
Siebrand Mazeland
49b4cc0028 Declare functions with access modifiers
Change-Id: I047d3dc6642de07130a43ad4c2fd4a8106450aac
2016-03-05 16:10:52 +01:00
Translation updater bot
ed712417b0 Localisation updates from https://translatewiki.net.
Change-Id: I6224be10fa3c28e17d2e2668782c469722451fb7
2016-03-02 23:40:29 +01:00
Translation updater bot
08e125f040 Localisation updates from https://translatewiki.net.
Change-Id: I93b1fe2616ae965795f9ae3a7fe7d4e016b6677e
2016-03-01 22:04:06 +01:00
Kartik Mistry
2de3f70e71 Update jquery.webfonts to f0dae72
Changes:
* Fix undefined.toLowerCase is not a function in jquery.webfonts.js

Change-Id: Id5c6f02a8537b897de7dc7542c10bc620817ea39
2016-02-26 16:08:49 +05:30