Commit Graph

2324 Commits

Author SHA1 Message Date
Niklas Laxström
021ceadc85 Add some global fallbacks to compact language links
Bug: T135366
Change-Id: I75cc58f79cb818d8330120d996d67c6b183c0843
2016-05-20 14:51:47 +02:00
Translation updater bot
1e3b85b1ca Localisation updates from https://translatewiki.net.
Change-Id: I19ad36bc101cae6ec95baa2c7c8593a65d4e2100
2016-05-19 23:12:31 +02: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
Translation updater bot
e2cf4e5255 Localisation updates from https://translatewiki.net.
Change-Id: Ia5799b05cde89e62d7d4dd3e4793c065014805ab
2016-05-18 22:14:32 +02:00
jenkins-bot
16ddbf0208 Merge "Update jquery.ime to d563f903c9e" 2016-05-18 11:39:12 +00:00
jenkins-bot
cbac4d18f6 Merge "Compact language links: Delay loading of jquery.uls module" 2016-05-18 06:01:49 +00:00
jenkins-bot
e54912d2cc Merge "Avoid references to jquery.uls RL module from ext.uls.init" 2016-05-18 05:51:10 +00:00
Santhosh Thottingal
9dc42d7d31 Update jquery.ime to d563f903c9e
* Remove the undocumented Control+Enter shortcult for toggle

Bug: T106700
Bug: T134664
Change-Id: I1d62d751515016b3d028ecf6ae78a65eb1728391
2016-05-18 05:34:21 +00:00
Translation updater bot
fed1b51006 Localisation updates from https://translatewiki.net.
Change-Id: Ic449924f7d97e5a096b1aa97de31d6db283d0f18
2016-05-17 22:25:13 +02:00
jenkins-bot
d6af3112ff Merge "First attempt at font test page generation" 2016-05-17 11:34:00 +00: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
a5034fa95f Avoid references to jquery.uls RL module from ext.uls.init
Checks to see if language is supported can be also done using
jquery.uls.data

Bug: T135210
Change-Id: Ib6b0d31b33be10b38aba713c3c4ba5370a27a8f4
2016-05-17 11:50:15 +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
Translation updater bot
609860947b Localisation updates from https://translatewiki.net.
Change-Id: I132245689a4f01d39d452bf739945295df1eade4
2016-05-16 22:45:53 +02:00
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
jenkins-bot
7a82c2fcba Merge "Introduce a preference to disable compact language links" 2016-05-16 04:34:08 +00:00
Translation updater bot
c429895372 Localisation updates from https://translatewiki.net.
Change-Id: I7aa502be9517b2e834437c10af052da8bdc9c8c8
2016-05-15 22:32:40 +02:00
Santhosh Thottingal
f1995bc603 Introduce a preference to disable compact language links
Bug: T133030
Change-Id: If9ec0b8c75c59c62991f0d4bfa99f6d4c9324c30
2016-05-13 14:51:21 +02:00
jenkins-bot
49bf8000e3 Merge "Add WOFF2 version of fonts" 2016-05-11 05:56:10 +00:00
Santhosh Thottingal
a2cfd0287f Add WOFF2 version of fonts
Modern browsers will use woff2, which has smaller size than woff

Updated the README in the font repository explaining how different
file formats are produced.

Bug: T128291
Change-Id: I81c5380fdbf0ff76142b67cf8fce9db20e8164fa
2016-05-11 10:31:01 +05:30
Niklas Laxström
594ebe5fff Fixes for 6b8c33e
Update PHP version in composer.json and define "fix" in a way that
is common in our repos.

Change-Id: I47d8e2289cf1246cd4980d8c87c1820b5bc7b091
2016-05-10 07:34:28 +02:00
Niklas Laxström
71133ffdfc First attempt at font test page generation
Does not include all variants and not all languages have example content.

Change-Id: If5b759f2ed6e8e487f73ea7a88be5cc6b741b356
2016-05-10 07:33:47 +02:00
Kunal Mehta
6b8c33e763 build: Updating mediawiki/mediawiki-codesniffer to 0.7.1
Also added "composer fix" command.

Change-Id: I6f3f29f03abb607fbca9cec6f140875f2a3468a0
2016-05-09 18:30:34 -07:00
Translation updater bot
6089ea868d Localisation updates from https://translatewiki.net.
Change-Id: If9862dd224a6ace36dadf2ef29ee1827ea8834e5
2016-05-09 22:15:50 +02:00
Niklas Laxström
146949ce43 Fix fail in 1bc3f3b
Assignment got lost, so caching did not work.

Change-Id: If7f6df5b6c6d6156894803670263f34f2850a29a
2016-05-09 20:12:46 +02:00
jenkins-bot
70be53a283 Merge "Compact links: Avoid duplicate call of filterByCommonLanguages" 2016-05-09 11:27:01 +00:00
Santhosh Thottingal
1bc3f3b065 Compact links: Avoid duplicate call of filterByCommonLanguages
It re-triggers mw.uls.getFrequentLanguageList(),
getPreviousLanguages() and localstorage read.

In this patch the result was saved and reused.

Bug: T122341
Change-Id: I14839eb611cd3e995e8d8ab729ee3f714840f9ad
2016-05-09 14:31:34 +05:30
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
Translation updater bot
836444fccb Localisation updates from https://translatewiki.net.
Change-Id: I1891f20cc285ec6eaff28b876ba012ad851accc9
2016-05-07 10:58:50 +02:00
jenkins-bot
2580a281b6 Merge "Update upstream update scripts" 2016-05-04 12:16:06 +00:00
jenkins-bot
3a77119ed3 Merge "Update jquery.uls to 5ceba61" 2016-05-04 12:11:06 +00:00
Niklas Laxström
1a378e3cca Update upstream update scripts
* Allow to run any directory
* Leaving stuff on /tmp was not nice
* Git pull was run on wrong directory

Change-Id: Ia7f82de55c9bd446c29afc0684660ed00b6585bf
2016-05-04 14:01:08 +02:00
Nikerabbit
b490829957 Merge "Compact links: Simply use the widget pattern instead of plugin" 2016-05-03 08:32:14 +00:00
Niklas Laxström
89e30a3ccb Merge "Update jquery.i18n to 8267e1dbef" 2016-05-03 08:31:40 +00:00
Niklas Laxström
02f87ff4ec Update jquery.uls to 5ceba61
New search icon + image compression

Bug: T132424
Change-Id: Ibf32682e46978484ec3967ec71385b523e38c076
2016-05-03 10:29:23 +02:00
jenkins-bot
7d56590918 Merge "Add width and height attributes to svg for correct rendering in IE 10" 2016-05-03 08:11:28 +00:00
Niklas Laxström
07b764a11f Update jquery.i18n to 8267e1dbef
Whitespace changes only

Change-Id: I150b69b5015440215573f2f40e7ac56bacea6c90
2016-05-03 08:06:03 +00:00
Santhosh Thottingal
4150d24e67 Compact links: Simply use the widget pattern instead of plugin
We don't need plugin pattern here since it is not meant for a use
in multiple contexts. Code simplified.

Change-Id: Iee86069aaa82f5a9ab3a856c19360e9ea89211ad
2016-05-03 08:53:58 +05:30
Niklas Laxström
aba4540cef Update jquery.uls from upstream to 19e67015
Changes:
* Add kbp

Change-Id: Iacc845c1b186f5a5f93cb5b071c0d628c3212ce3
2016-05-02 06:34:47 +00:00
Santhosh Thottingal
0022983fae Add width and height attributes to svg for correct rendering in IE 10
If this values are missing from svg, the image is rendered very small.

Bug: T131842
Change-Id: I5ba750e577d09dd6e5119e287c3a34a85ec750f6
2016-05-02 11:08:00 +05:30
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
jenkins-bot
babaee831f Merge "Ensure ext.uls.mediawiki is loaded before use" 2016-04-27 05:17:37 +00:00
jenkins-bot
4e4a63fc65 Merge "Simplify code by using Object.keys" 2016-04-27 05:15:55 +00:00
Translation updater bot
297c63d59a Localisation updates from https://translatewiki.net.
Change-Id: I713c2a95f9205a4f1ad98dc8396707349d25952d
2016-04-26 22:32:54 +02:00
Translation updater bot
e7fe5409e2 Localisation updates from https://translatewiki.net.
Change-Id: I3d135b68532ae8e409343608cc14731bac52148a
2016-04-24 22:37:44 +02:00
Niklas Laxström
d2bb6e9010 Ensure ext.uls.mediawiki is loaded before use
Earlier patch loaded it too late, but it was loaded
anyway by something else.

Change-Id: Ib4cf6cd7339a5313961c84cd7904fc2ffc66a157
2016-04-22 10:56:48 +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