Commit Graph

2399 Commits

Author SHA1 Message Date
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
Željko Filipin
f5b55a473e Cleanup Cucumber tags in Selenium tests
Removing no longer used @clean and @login tags.

Bug: T127423
Change-Id: Id6f1abfae63b35b7e01dc9d58450a52a35d7c9df
2016-02-19 14:56:10 +01:00
Siebrand Mazeland
6a2b2e0bba Update test files
- Updated versions and order of checkers.
- Some consistency updates in Gruntfile.js.
- Updates to make jscs pass.

Change-Id: I7ed93596ff383dc713bd17af2da0472be934d59d
2016-02-18 18:51:37 +00:00
Translation updater bot
faa5c06bda Localisation updates from https://translatewiki.net.
Change-Id: I5839e04f7121b1b85478ad3174699636befbfd9f
2016-02-17 22:51:59 +01:00
Fomafix
cd58ac2f18 Use mw.Api.plugin.options to set user options
This requires MediaWiki version 1.25+.

Change-Id: I3a76b0b4ec403b3acdc29e64b0c750a3b57e252a
2016-02-15 14:13:13 +00:00
Fomafix
c329f1473d Use spaces inside of brackets in JavaScript
* For consistency
* For MediaWiki coding conventions

Change-Id: I625a8ce0119b1490073f048e1b8ad4e90762d6e2
2016-02-15 13:31:45 +00:00
Fomafix
63bc85649a Ensure module 'jquery.tipsy' is loaded before using
Move the showTipsy calls into the callback.

Move the declaration of the functions hideTipsy and showTipsy before the
new call position.

Also change the order of the declaration of the functions hideTipsy and
showTipsy to avoid a forward reference in showTipsy. Spotted by JSLint.

Bug: T118507
Change-Id: I338a78cde249405459be14948b78cf59d715145a
2016-02-15 13:03:52 +00:00
jenkins-bot
6171eaba10 Merge "Update Amiri fonts" 2016-02-13 20:29:03 +00:00
jenkins-bot
62465df4fa Merge "Use .prop() instead of .attr()/.removeAttr() to set boolean attributes" 2016-02-12 15:14:12 +00:00
Translation updater bot
ad1e19691b Localisation updates from https://translatewiki.net.
Change-Id: I00d749a1a2e04aecf15bf6c4fd0a0a08f2c3eea2
2016-02-08 22:17:13 +01:00
Fomafix
bd44ae4888 Use .prop() instead of .attr()/.removeAttr() to set boolean attributes
Change-Id: I4988316b202c19f851f2c05e3d07acc8c5ea38cf
2016-02-08 18:38:15 +00:00
Ed Sanders
ce3f9e5358 Disable ULS on VE focusable nodes
The user isn't supposed to type when a focusable node
is selected, and the overlay renders in the top left
corner of the screen.

Change-Id: I52a7947175b4be235f77eaf0e02cebd542f8e500
2016-02-07 19:56:18 +00:00
Translation updater bot
1146936e5b Localisation updates from https://translatewiki.net.
Change-Id: I67998d1f29f0c6ee81cc56587a764fdf142075ff
2016-02-03 23:09:20 +01:00
Translation updater bot
801caa52f2 Localisation updates from https://translatewiki.net.
Change-Id: I9bf90d7325749e359365f8cf247cfe7298c573ce
2016-01-31 21:42:09 +01:00
Translation updater bot
91b020d6b0 Localisation updates from https://translatewiki.net.
Change-Id: I8e50eb2af43b04e191a6611cf28a949d8519eafd
2016-01-30 22:50:14 +01:00
Translation updater bot
d40ee44530 Localisation updates from https://translatewiki.net.
Change-Id: I4485d00b34bb9eed18ed3a14a33d00867ab5ca7c
2016-01-29 22:43:35 +01:00
Kartik Mistry
4e8b09c5d3 Update jquery.ime to 4389f93
Changes:
* Register as-rodali IME

Change-Id: I2509a2505ec4f6b22c75a0a8ce81e44b219a2b37
2016-01-29 21:01:19 +05:30
Kartik Mistry
6e28dd3485 Update version before MLEB release
Change-Id: I5d87945a163c79df7f4a31b3e69def69aa57e8d9
2016-01-29 10:45:29 +05:30
Translation updater bot
4a43b4e791 Localisation updates from https://translatewiki.net.
Change-Id: I4a0893031827f7d24247200bffcc9ad3423d7344
2016-01-28 21:10:48 +01:00
Niklas Laxström
d718bd7e6f Require extension registration (and thus MediaWiki 1.25)
Resources.php was already out of sync and broken due to some recent commits.

Change-Id: I7a6b66b9fb1f1f61d15c40bc6fd175378e2dd6c5
2016-01-27 10:51:03 +01:00
Ed Sanders
b745fe4f6c Use background-image-svg mixin for SVG/PNG fallbacks
Change-Id: I00266b088b16fa749f3ee59d9ce4890ed025c887
2016-01-25 18:35:39 +00:00
Florian
00349ab0eb Register ext.uls.eventlogger conditionally
The ext.uls.eventlogger module is now registered depending on
the configuration variable $wgULSEventLogging. This will prevent
the Structuretest Resourcetest to fail, if EventLogging isn't
installed on the test system (like on my jenkins environment :P).

Change-Id: I1e2545492ec04fb043638765ac42f09da89813e9
2016-01-25 14:53:32 +00:00