Commit Graph

3152 Commits

Author SHA1 Message Date
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
Kunal Mehta
7eb5b5def6 Add @covers tag
And remove unnecessary require_once, since that file is already in the
autoloader.

Change-Id: Id66d79a116043186b4d1bad73d04a62c4142524f
2018-01-24 22:30:22 -08:00
Translation updater bot
27de8ebc15 Localisation updates from https://translatewiki.net.
Change-Id: Ieebf4e298798f30a5807c54709d9ed6726b15d1e
2018-01-20 14:43:16 +01:00
Translation updater bot
dee1689624 Localisation updates from https://translatewiki.net.
Change-Id: Id560330c3447968a5c544cc031915b6d81d55be3
2018-01-18 22:50:02 +01:00
Vagrant Default User
91a54767b6 Add aliases for Georgian, Armenian, Spanish, and Japanese
Also make it possible to add multiple aliases for a language.

Bug: T178996
Change-Id: I00bb4a158caed0c1ba15d41e294281a001c917b1
2018-01-18 14:45:26 +02:00
Translation updater bot
08079b9bb8 Localisation updates from https://translatewiki.net.
Change-Id: Ia8ab1f41aa0f06f80fd67328844a788ae04417f8
2018-01-10 22:24:20 +01:00
Translation updater bot
a3a7afd1dc Localisation updates from https://translatewiki.net.
Change-Id: I5c5de431ab69c8dac70349c542a4e4ac6973f873
2018-01-09 22:29:55 +01:00
Jayprakash12345
57571f2f7b Removed deprecated position statements from resource loader module
Bug: T184257
Change-Id: Ia18c993f723be55c45a813a3cda8804b99c7b1d8
2018-01-05 14:21:19 +00:00
Translation updater bot
07fcf6dad6 Localisation updates from https://translatewiki.net.
Change-Id: I59e3edc55049123651f35b56a05c831bef817fda
2018-01-05 09:23:27 +01:00
jenkins-bot
56edef8aed Merge "Prevent page scroll to top while clicking on language settings icon" 2018-01-05 06:59:13 +00:00
Santhosh Thottingal
f536b3969d Prevent page scroll to top while clicking on language settings icon
If the language settings window is not visible, all calculations
will go wrong and page will scroll to 0 position.

So call scrollIntoView only when the element is visible.

The $.fn.scrollIntoView defined in jquery.uls core may be unnecessary
now since it is available natively on DOM elements.

Bug: T178188
Change-Id: I461fa9eb7c51cd277bebd3a04cfcc0eed9793c4e
2018-01-04 10:17:03 +05:30
libraryupgrader
4489bf100a build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
Change-Id: I3274ab97132397038477244d9c32e1af81552787
2017-12-30 03:14:16 +00:00
Translation updater bot
c2a3467de6 Localisation updates from https://translatewiki.net.
Change-Id: Ie0fc174c0cff9141685fa0418214da4f69b661ae
2017-12-28 10:00:11 +01:00
Translation updater bot
d8e810d6d3 Localisation updates from https://translatewiki.net.
Change-Id: I70975f4a5454e6b3a5c35d368e7d488ac4e7d828
2017-12-23 22:27:13 +01:00
Translation updater bot
275c87e331 Localisation updates from https://translatewiki.net.
Change-Id: I6370ea33ef559afba9f0dc889b1b73a046b7e4e2
2017-12-22 22:23:16 +01:00
Kartik Mistry
0eb9c20fa0 Update jquery.uls to 2601f8e
Changes:
* Localisation updates.
* Update language data:
  ** Make Spanish available under the Oceania region
  ** Add the Kumyk language

Change-Id: I53a27dcd3a9ef57a4a7b7b989df6c2bb556c0d2c
2017-12-20 12:37:07 +05:30
jenkins-bot
825193e10e Merge "README: Update entry point" 2017-12-19 17:09:54 +00:00
Kartik Mistry
5e6897e518 README: Update entry point
ULS is now using wfLoadExtensions entry point.

Change-Id: I102e5b09bc44e41210b5398de2335b3a5ac0ba28
2017-12-19 20:16:48 +05:30
Santhosh Thottingal
030bc49ad2 Update rangy lib to 1.3.0
Change-Id: I9ad4758e9f4ecde84bdb2afc2ba9bf5492141495
2017-12-19 10:13:37 +05:30
Translation updater bot
7606288c4a Localisation updates from https://translatewiki.net.
Change-Id: Ie8d5463faa54b1fcdd0acdd2e772159f89723b5a
2017-12-18 23:07:18 +01:00
libraryupgrader
36364f244d build: Updating mediawiki/minus-x to 0.2.1
Change-Id: I9546a2ce232be3556e5d0d13c725d8ebb5e4ec8a
2017-12-11 09:43:05 +00:00
Translation updater bot
c61316753a Localisation updates from https://translatewiki.net.
Change-Id: Idc0f41c7912b1822db3250ac567d9dd52c2acb5e
2017-12-07 23:08:00 +01:00
jenkins-bot
edd4a5b2a1 Merge "Update jquery.uls from upstream" 2017-12-06 06:26:23 +00:00
Translation updater bot
b69892566e Localisation updates from https://translatewiki.net.
Change-Id: Ic96fee9d8a727597726314937fd018334aaf0402
2017-12-05 22:38:29 +01:00
Kartik Mistry
a8cb31a937 Update jquery.uls from upstream
* Localisation updates only.

Change-Id: I77d7f5aa907f4498ddcf5f890a826e51fcee3d76
2017-12-05 16:48:09 +05:30
Translation updater bot
8f0c7a2c9c Localisation updates from https://translatewiki.net.
Change-Id: Ie599a80c11324d827cabd946df75309a5850400b
2017-12-05 09:42:03 +01:00
Kartik Mistry
d969c2a804 Remove non-default Saab font for Punjabi
* Not updated from upstream; last release is buggy as per upstream.
* Punjabi language has good font support in all modern operating
  systems.

Bug: T180422
Change-Id: I323953b4c6293df89034f05e0c2e13a96b42dc34
2017-12-05 06:19:13 +00:00
Translation updater bot
5a02a32f52 Localisation updates from https://translatewiki.net.
Change-Id: I67189031218f5b5eec93d0a08b5eabd8c1ab8156
2017-12-03 23:12:51 +01:00
Volker E
e3ad0f3be5 Move “Language settings” dialog headline up
Moving “Language settings” dialog headline up to put on a
virtual line with ToggleButton and apply `#000` to it as
dialog titles elsewhere.

Bug: T175295
Change-Id: Id2d7a7b90996ec7be96e8bafd7bbe78eb8f0e1c9
2017-12-01 05:03:43 +00:00
jenkins-bot
16b7411fc7 Merge "Update jquery.uls to 98fff1b" 2017-12-01 04:47:44 +00:00
jenkins-bot
603cfea7d0 Merge "Improve ULS language search api" 2017-12-01 04:47:30 +00:00
Santhosh Thottingal
3bf7361262 LanguageNameSearch: Optimize levenshteinDistance
1. Do string comparison for equality early in the method so that we can
   do early return if it passes.
2. Move the zero length check for string up for early return. This may
   not have any significant change in performance though.

Change-Id: I86bdd612a4a31c5ebfac6bcd7687b829acc69cda
2017-11-30 16:38:41 +05:30
Ed Sanders
447c09d462 build: Update linters
Change-Id: I45540db95711b461ded3630894bd1f149c24ff19
2017-11-29 15:02:47 +00:00
Niklas Laxström
c2f0e297f5 Update jquery.uls to 98fff1b
* Translation updates
* Change for SVG background image styles
* Use searchAPI always when provided

Change-Id: I5a90d76d5acc1939cc7b670df43c4ea3347dfcb3
2017-11-29 14:11:17 +01:00
Volker E
72cf0a7f23 BetaFeatures SVGs: Merge logo and title path
In the process of updating BetaFeatures logo it got
identified that the logo is better marked up as one
`<path>` element.
Follows up I57f2f4890e980992db2c25506bbdc330530d67b1

Bug: T180427
Change-Id: I3bd8eb032943e00c93975db2911a9f7d26c0bcb2
2017-11-28 16:06:05 -08:00
Volker E
300d69b92d Unify BetaFeatures SVG screenshot markup
Unifying BetaFeatures SVG screenshot markup by:
- changing `id`s for better readability,
- sorting attributes,
- using full pixel values where applicable and
- generalizing attributes on `g` where applicable

Also fixing a visual glitch in the RTL version.
Follows up Idace90e945a2bd5efa869ee717224274fd94e91a.

Bug: T180427
Change-Id: I57f2f4890e980992db2c25506bbdc330530d67b1
2017-11-27 19:40:49 -08:00
Niklas Laxström
e87dd20cdd Improve ULS language search api
* Store prefixes and infixes separately in the data
* First match language code, then prefixes, then infixes
* Try to use suggestion either in user language or autonym first
* use formatversion=2 to avoid escaping Unicode

Using Language::fetchLanguageName might can have a small
performance impact. On the other hand there is now check
to skip languages we already found, avoiding some fuzzy
matching.

This is in a preparation for a change in jquery.uls to use
the search API more, while trying to reduce the amount of
weird autocompletion suggestions we show to the user.

Bug: T73891
Change-Id: Id94c5352d9a591969bf90144d1d2d5e758d08301
2017-11-27 14:57:42 +01:00
Kartik Mistry
ca45dc7404 Update eslint and stylelint and fixes
Change-Id: I02e615e0efa95b673702f1ce8c957a37397ced13
2017-11-25 08:34:04 +05:30
Niklas Laxström
a353c5ab65 Perform search on every word of language name
See e.g. T132021. This favours coverage over quality.

Change-Id: I3fc8fb1702802bc002c3d7e2941563840914f325
2017-11-23 09:14:10 +00:00
Prateek Saxena
a9dc4a0f1a betafeatures icons: Correct contrast between light blue and gray
Change-Id: Idace90e945a2bd5efa869ee717224274fd94e91a
2017-11-23 11:41:33 +05:30
Prateek Saxena
963ce22b9f Update colors betafeatures icon
Updated light gray (Base80) and light blue (Accent90).

Old: https://phabricator.wikimedia.org/F10912040
New: https://phabricator.wikimedia.org/F10912039

Bug: T180427
Change-Id: I88d74a0b7447a9a3effb0bb56f3666991558f1fd
2017-11-21 11:23:55 +05:30
Translation updater bot
4bebe4de8b Localisation updates from https://translatewiki.net.
Change-Id: Iabd10029fcfd61acac78aa26330824986054f817
2017-11-17 23:01:45 +01:00
Translation updater bot
9ccf594a8d Localisation updates from https://translatewiki.net.
Change-Id: I3d333b92e57439872356035f6c2adaa1d92ebd79
2017-11-15 22:42:04 +01:00
Santhosh Thottingal
dc84413373 Remove Madan font for ne
* Unknown upstream
* Not updated for years
* ne has better support in operating systems
* Non-default font for ne

Bug: T180422

Change-Id: Ife0b81e4db3bc069752d89c53f4690ddcfad7ef3
2017-11-14 15:49:35 +01:00
Santhosh Thottingal
d5f0666025 Remove non-default Gubby font for Kannada and Tulu
Bug: T180422
Change-Id: I78af0a3889e48625ebb38b1b212cb8b454a5639c
2017-11-14 15:23:09 +01:00
Santhosh Thottingal
07087dbb06 Remove ttf format from repo and thereby from fontface css
TTF files are not removed, the entries for them from the repo
is removed. Generated CSS will also skip ttf.

TTF format is not required for any browser now a days.
https://caniuse.com/#feat=woff

Change-Id: I018e74f6a50e63f55adeca480c03124092fba015
2017-11-14 09:23:55 +05:30
Santhosh Thottingal
146426ffe7 Remove fonts for Odia(or) from fontrepo
Remove non-default Utkal font - Its upstream is unknown now.

Change-Id: Iefa9eeaf953d87d4a5c8766fa575d61f9bd96d2b
2017-11-13 15:31:27 +05:30
Santhosh Thottingal
c0bbd9efc1 Remove Tamil fonts from fontrepo
* These fonts are with no upstream now and little known among
  Tamil users.
* Tamil is very well supported in all operating systems
  now a days.
* Also reduce the metadata size for fontrepo

Change-Id: I4e7afb6476a4714f8d87bd2a048309b732883b2f
2017-11-13 15:26:59 +05:30
Santhosh Thottingal
28c0ba6bca Remove fonts for Malayalam from font repo
* I maintain these fonts in upstream and there we several releases
  since these fonts were added.
* Malayalam has better support in operating systems compared to 2012
  when these fonts were added.
* Reduce font metadata size for wikipedia pages when webfonts are
  enabled.

Change-Id: Ie5b54cc866b1c67849b094a9701b2c80d876b55f
2017-11-13 09:16:58 +00:00
Santhosh Thottingal
6bddc79773 Remove Lohit family of fonts from fontrepo
* The languages covered by these fonts are now available in all
operating systems.
* These fonts are not updated for years in our repo
* Saves the amount of font repo data we deliver for *every wikipedia
  page* when webfonts is enabled

Change-Id: Ia0f1b6acc4cf8b7a354671bea47b58425ab8c08e
2017-11-13 09:16:22 +00:00