Commit Graph

2517 Commits

Author SHA1 Message Date
Translation updater bot
c52dd0ea24 Localisation updates from https://translatewiki.net.
Change-Id: I298bcd21d39c4dce52c13d2d304df907b838dd76
2016-08-25 22:40:30 +02:00
jenkins-bot
3f1990c737 Merge "Use getDefinitionSummary() in ResourceLoaderULSJsonMessageModule" 2016-08-25 15:03:35 +00:00
jenkins-bot
fbdc51d4d3 Merge "Simplify ResourceLoaderULSModule with content-based versioning" 2016-08-25 15:03:09 +00:00
jenkins-bot
58b31d7078 Merge "ext.uls.compactlinks: consistently normalize language codes" 2016-08-25 09:50:25 +00:00
Niklas Laxström
2144019c50 ext.uls.compactlinks: consistently normalize language codes
Create a function for this purpose and use it everywhere where
language code is read from an attribute.

Bug: T143867
Change-Id: I01b6f04dd9185a9f4ab565e96ca5a6a34e4ea14a
2016-08-25 08:22:17 +00: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
Translation updater bot
f53806a965 Localisation updates from https://translatewiki.net.
Change-Id: I399d9d5273270f069a26054e01f6a33173df9b62
2016-08-24 10:37:52 +02:00
Timo Tijhof
2ab168f113 Use getDefinitionSummary() in ResourceLoaderULSJsonMessageModule
* Fix inaccurate class comment that was copied from an unrelated
  module in MediaWiki core.

* Remove use of deprecated getModifiedTime(). While this implementation was
  straight forward, it is more reliable and deterministic to use a content hash
  because timestamps are not tracked by Git. This currently causes needless
  cache invalidation for all users at Wikimedia every week because git-clone
  starts with fresh timestamps on disk.

  I'm not using enableModuleContentVersion() right now because calling
  getScript() reads all files into memory which is more expensive than
  simply hashing the files. Especially because safeFileHash() is backed
  by an APC cache via FileContentsHasher.

  This matches the implementation in core ResourceLoaderFileModule.

Change-Id: If9aaefa6a3cf047c6c36e1cdd0f350412d59c849
2016-08-23 21:49:26 +00:00
Timo Tijhof
f06ac3efca Simplify ResourceLoaderULSModule with content-based versioning
* Remove manual tracking of when a hash is first seen.
  ResourceLoader is no longer time-based, rather it is content based.
  Except where a timestamp is actually wanted as key, a hash is all
  we need. The default implementation of simply calling getScript()
  and hashing its output suffices, and isn't a performance problem
  in this case.

* Also simplify getScript() by passing an object to 'mw.config.set'.
  Instead of multiple calls for each key/value. This is a no-op
  now because there is only one key.

* Fix inaccurate class comment that was copied from an unrelated
  module in MediaWiki core.

Change-Id: I9bb82cadd9caa7e584e20dd49ce30b64218326c4
2016-08-23 14:49:16 -07:00
jenkins-bot
694f3719a8 Merge "Do not load schema.UniversalLanguageSelector explicitly" 2016-08-23 04:44:10 +00:00
jenkins-bot
25514c4f88 Merge "Apply toLowerCase when reading featured articles" 2016-08-22 05:09:43 +00:00
Translation updater bot
26d9b554de Localisation updates from https://translatewiki.net.
Change-Id: I9fd7d3b35cdd703ae6bcec315d42e0a657e3feea
2016-08-21 22:55:43 +02:00
Amire80
0d1d9a4b6d Apply toLowerCase when reading featured articles
Consistently with getInterlanguageList(). Without this 'nds-NL'
will be handled incorrectly when the article in it is featured.

Bug: T143527
Change-Id: Ie7fe5a270cb3030899b6034512351d5d66d7be06
2016-08-21 22:47:27 +03:00
Translation updater bot
4b533b4749 Localisation updates from https://translatewiki.net.
Change-Id: Iee34436f230227ef374a96b10bcc4ba0d735bea3
2016-08-20 22:42:53 +02: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
Niklas Laxström
aaa1219d48 Do not load schema.UniversalLanguageSelector explicitly
Because ext.uls.eventlogger has it as a dependency.
Found while checking T70955

Change-Id: I68a69d12bbf58f8d347fc05e19d0edbf817fb49f
2016-08-18 14:46:48 +02:00
Translation updater bot
c8002af92c Localisation updates from https://translatewiki.net.
Change-Id: I0893f19334a3b79818e1c0453bb82df4c8dbc366
2016-08-17 22:42:22 +02: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
jdlrobson
798874ffa0 Remove jquery.tipsy from UniversalLanguageSelector
This doesn't appear to be justified due to the one use case. This
will now be done via OOjs UI and given jquery.tipsy is deprecated
it is better to replace it (T117720).

Bug: T119417
Bug: T102922
Change-Id: I60cce248884308bf0728d153f6137a8d25e01300
2016-08-17 06:13:09 +00:00
jenkins-bot
78adcc5e20 Merge "LanguageSettings: Simplify positioning code" 2016-08-16 11:49:44 +00:00
jenkins-bot
c4e5dcc2fd Merge "DisplaySettings: disallow focus on tabgroup buttons" 2016-08-16 10:48:09 +00:00
jenkins-bot
f44d97230b Merge "LanguageSettings: Do not render modules twice on initialization" 2016-08-16 10:03:00 +00:00
Niklas Laxström
ab8193faac Update jquery.ime to 10ae4c0
* New Khmer imes
* Updates to Urdu ime (T138399)

Bug: T138399
Change-Id: I2ead15d6678787f705103329c59e679240580f87
2016-08-16 10:32:24 +02:00
Niklas Laxström
c46bf0fa94 Update jquery.uls to d873fbc
Localisation updates

Change-Id: I92b9b7c0533c0d5ee22c1ad9dceb0debe6264139
2016-08-16 10:27:52 +02:00
Niklas Laxström
05e0b8c53e LanguageSettings: Simplify positioning code
* Remove scrolling from positioning code
* Make sure that any calculated default positions also apply to
* modules by updating this.top and this.left.

Bug: T143074
Change-Id: Iffc49674abcca8a8c4a600569a05db1314fae3f6
2016-08-16 06:28:43 +00:00
Translation updater bot
78ea824b5d Localisation updates from https://translatewiki.net.
Change-Id: Ifb4b6998661a82e95145ca6f557ccb452989255a
2016-08-15 23:02:56 +02:00
Niklas Laxström
d24472e962 Fix some comment typos
Change-Id: I338891147cb6aa8e6d88119eb61ea718edb93747
2016-08-15 09:55:02 +00:00
Niklas Laxström
5e7e8fe48e LanguageSettings: Do not render modules twice on initialization
Change-Id: I25d939ffcabde394bb7a496ee8bc5df9a87c2573
2016-08-15 09:48:00 +00:00
Niklas Laxström
f6da60cfab DisplaySettings: disallow focus on tabgroup buttons
Focus state looks bad in this context.

Change-Id: I3bc1cd63123711ded0652910ef4fa62f19c3bd12
2016-08-15 09:47:51 +00:00
Translation updater bot
fc30a5d542 Localisation updates from https://translatewiki.net.
Change-Id: I7854a99f34bc965e2c58cf78099350ea5b3f94bc
2016-08-13 22:32:54 +02:00
Translation updater bot
ae2c0f9f88 Localisation updates from https://translatewiki.net.
Change-Id: I52520015b0fbf28bf5b8c421a7089e09690e52bf
2016-08-12 23:16:41 +02:00
Niklas Laxström
c00fc12bb6 List of input methods should display only one item per line
Change-Id: Id45fe55fd40ffc99d1712424ecf651573a62e58e
2016-08-12 08:53:53 +02:00
Translation updater bot
a047516e2c Localisation updates from https://translatewiki.net.
Change-Id: Ifb8419099dec7113eba50985b817d75f74e5124e
2016-08-10 22:40:14 +02:00
Niklas Laxström
4dc4b7b81b Update compact language links beta feature info and talk links
Bug: T142559
Change-Id: Ia4bcc62911beb52bf7b4d0788a97c35bbd776b0d
2016-08-10 14:40:01 +02:00
Translation updater bot
2476794190 Localisation updates from https://translatewiki.net.
Change-Id: I0d6fa77d71a1dd302211930710cfba511d9d0842
2016-08-09 22:33:35 +02:00
jenkins-bot
18ea003604 Merge "LanguageNameSearch: do not mix different scripts in same buckets" 2016-08-09 04:02:41 +00:00
Niklas Laxström
fd8d524e85 Update jquery.uls to c644044
Localisation updates.

Change-Id: I0814906bf93eca5f649f6d8d5315099e9670d6f4
2016-08-08 17:17:10 +02:00
Niklas Laxström
55b68c329d LanguageNameSearch: do not mix different scripts in same buckets
To keep the average and maximum bucket size low, I made codepoints
< 4000 more granular and code points >= 4000 less granular. This
could be tweaked further for sure to reach more even sized buckets.

Bucket stats before:
 - 773 buckets
 - smallest has 1 entries
 - largest has 1804 entries
 - median size is 66 entries
 - average size is 45.394566623545 entries

Bucket stats after:
 - 698 buckets
 - smallest has 1 entries
 - largest has 1792 entries
 - median size is 16 entries
 - average size is 50.272206303725 entries

Change-Id: Id62d93658117564b05294c2fe36ca7c182784859
2016-08-08 16:21:52 +02:00
Niklas Laxström
f73f9a8b5d LanguageNameIndexer: print bucket stats
Change-Id: If50b65b1bbda010f0dbde7d344edcb5bdcd382df
2016-08-08 13:38:53 +00:00
Niklas Laxström
bc7ee1ed19 LanguageNameIndexer: sort buckets
Change-Id: Ib33bc432d5f61de2fbb6e83f3566baebb184c441
2016-08-08 13:18:30 +00:00
Nikerabbit
760fe1ad39 Merge "LanguageNameIndexer: Remove directionality chars that cannot be typed" 2016-08-08 13:18:08 +00:00
jenkins-bot
f8c94b2cb4 Merge "Add languages in which there is a featured article" 2016-08-08 12:47:08 +00:00
Niklas Laxström
42f4f9650b LanguageNameIndexer: Remove directionality chars that cannot be typed
Change-Id: I8e5b9f300a3307a90054e4e759279f91594a2fa3
2016-08-08 10:56:39 +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
jenkins-bot
8bb0c2f683 Merge "LanguageNameIndexer/Search: use unicode aware lowercasing" 2016-08-08 07:06:57 +00:00
Niklas Laxström
9daeacf1c5 LanguageNameIndexer/Search: use unicode aware lowercasing
With this MEÄNKELI with typos=1 finds results.

Updated test case for lowercased result. Renamed variables in test
file for clarity. Updated the default value for MW_INSTALL_PATH to
work with the default layout.

Change-Id: Id93c84d308705f55b4d2378fc8c7b7f243e1b53f
2016-08-08 08:43:15 +02:00
jenkins-bot
40f695b6b5 Merge "LanguageNameIndexer: Simplify code" 2016-08-08 05:08:43 +00:00
Translation updater bot
73bd0655b5 Localisation updates from https://translatewiki.net.
Change-Id: I2c3b59977a2f8801f5b91862cb1b2f127248fd5f
2016-08-07 22:42:44 +02:00
Translation updater bot
ed51b1282a Localisation updates from https://translatewiki.net.
Change-Id: I8ee7a10007f4a1df8e0b6266290b18d785a224e8
2016-08-05 22:34:55 +02:00
James D. Forrester
a7078fe878 build: Fix stylelint devDependencies
Change-Id: I98c1bee541a5c35c0252835e6092de976518ba0e
2016-08-05 10:56:11 -07:00