Commit graph

2011 commits

Author SHA1 Message Date
Translation updater bot 895a3bc1e1 Localisation updates from https://translatewiki.net.
Change-Id: Idd9ca852e457e2e121682c6662ef9b4db45339d9
2016-10-11 22:48:47 +02:00
Brad Jorsch 629f11d0dd Fix pure-Lua ustring and empty patterns
An empty pattern isn't "safe" since it could match in between the
bytes of a UTF-8 character.

Also, it turns out there's a bug in PHP <5.6.9 preg_replace() that we
need to work around too.

Change-Id: I282e5909e4663461d60c5386693db182de2fd44c
2016-10-05 14:32:27 -04:00
jenkins-bot c48bda0698 Merge "Add handling for PCRE errors in ustringGsub" 2016-10-05 18:15:10 +00:00
Translation updater bot c922051e4c Localisation updates from https://translatewiki.net.
Change-Id: I0e883b5c5f60d6a1f2a67cffbd9e7084514af10b
2016-10-02 10:41:24 +02:00
Translation updater bot 902e636f4d Localisation updates from https://translatewiki.net.
Change-Id: I28689acec3ecab0ef7a26f0e19686fc857dba522
2016-09-28 22:26:56 +02:00
Brad Jorsch 7d676c3bd2 Specify license and add COPYING file
Bug: T123943
Bug: T128586
Change-Id: I5cb16829bb8a4debe4b0e6ca7d891a0c98591f9a
2016-09-16 01:38:15 +00:00
jenkins-bot 32b91bb6f7 Merge "Use ParserOutput::addTrackingCategory()" 2016-09-14 19:47:05 +00:00
Kunal Mehta 44ccde4861 Use ParserOutput::addTrackingCategory()
Change-Id: I2989df0e689df69a0c9cf2ec6001a568fe4f635d
2016-09-14 12:34:21 -07:00
jenkins-bot cd32961367 Merge "Improve validation of ScribuntoContent" 2016-09-14 19:27:29 +00:00
Kunal Mehta 48748a6046 Improve validation of ScribuntoContent
Implement Content::prepareSave() to ensure that any content
directly passed to WikiPage::doEditContent() that doesn't run edit
filters will still be validated. We have to use prepareSave() instead of
Content::isValid() because validation depends upon the current Title.

Create a ScribuntoContent::validate() convenience function to hold the
logic for that and add a todo to use it in the EditFilterMerged hook.

Also, remove a parser test that depended upon being able to save invalid
modules directly, as what it is testing is no longer possible (unless it
pre-dates making valid syntax a requirement).

Bug: T145548
Change-Id: Ie57eff36100963f02899d669df7375577f7375e1
2016-09-14 11:50:07 -07:00
Kunal Mehta b21cecbac1 ApiScribuntoConsole: Don't use $wgUser
Change-Id: I41d9b0961e98d7836e8d5e8236ec2503f30713b1
2016-09-13 17:11:11 -07:00
Translation updater bot f657c04653 Localisation updates from https://translatewiki.net.
Change-Id: I64441e2995740e56ba3a9f1dfbf1eeff9ed2f70e
2016-09-13 22:55:55 +02:00
jenkins-bot 3fccdec3de Merge "Use context from EditPage/Article instead of global objects" 2016-08-31 19:47:37 +00:00
Kunal Mehta 8a347d5680 Use context from EditPage/Article instead of global objects
Change-Id: Ieae2e92e248da32818f26649caaa7e70192f969b
2016-08-31 18:25:11 +00:00
Translation updater bot daf972d214 Localisation updates from https://translatewiki.net.
Change-Id: Icf9913be0de95e7a0cc28ee6e034c57c5d6472b2
2016-08-30 23:03:59 +02:00
Translation updater bot 0123feec70 Localisation updates from https://translatewiki.net.
Change-Id: I380fd50c62d7b0a3b9e1802f5cbc70b4ed19cad5
2016-08-29 22:39:01 +02:00
Translation updater bot d9a9070400 Localisation updates from https://translatewiki.net.
Change-Id: Ifdf746debee0d25cc49c3f495fc9db2cbcd97a38
2016-08-27 23:27:41 +02:00
Sébastien Santoro 863687222c Localisation in Tajik language
Translation author: Илья Драконов (Ilya2015)

Bug: T137200
Change-Id: I73c88917b8ab72e013660807099aac66e410e221
2016-08-23 13:34:12 +00:00
jenkins-bot ef659a146a Merge "Add mw.hash to Scribunto" 2016-08-18 15:35:49 +00:00
Marius Hoch 0f4db74148 Add mw.hash to Scribunto
Provides a simple wrapper for PHP's hash() and
hash_algos() functions.

I will add docs to the Lua reference manual once
this is merged.

Bug: T142585
Change-Id: I6697463974a175e99f9b77428a1085247165ebc9
2016-08-18 04:39:04 +02:00
Brad Jorsch 31d53b4a40 ScribuntoContent: Use base class preSaveTransform()
Bug: T142805
Change-Id: I0228c8f9c09504001bb5e1d27b5482af1786c17e
2016-08-15 11:22:14 -04:00
Translation updater bot c460c5a792 Localisation updates from https://translatewiki.net.
Change-Id: Iac6a45d3a67425a94f3fc1e26d638c7688d9ca22
2016-08-07 22:41:22 +02:00
Translation updater bot 1791007870 Localisation updates from https://translatewiki.net.
Change-Id: I4eda6d02a0f3d8fa6db64a275762bcf269067d0e
2016-07-27 22:39:45 +02:00
Translation updater bot 0f82e5a8c6 Localisation updates from https://translatewiki.net.
Change-Id: Iae3b90e8490936ac9ef47f4d15987ba6d11c4bcd
2016-07-26 22:55:53 +02:00
Kunal Mehta 98436e2008 Have ScribuntoContentHandler extend CodeContentHandler
Change-Id: I8d99ba9db7f804e898a74a47d9e4e02cac45e945
2016-07-26 00:38:47 +00:00
Translation updater bot 0c0ae3d681 Localisation updates from https://translatewiki.net.
Change-Id: I9bf5f7b5ba0ca84860b6827ca2b35c8e1084c24f
2016-07-25 22:25:47 +02:00
Translation updater bot b72cca48be Localisation updates from https://translatewiki.net.
Change-Id: Ia12cd7886f8c4c7c4741135805edc3f75a9aaf4f
2016-07-24 22:25:41 +02:00
Reedy 4292de1f08 Add tcy translations for Scribunto namespaces
Bug: T140898
Change-Id: I750ce01d260f087b369e75604e6c61af2d407be1
2016-07-22 19:08:41 +01:00
Translation updater bot bccef9c35e Localisation updates from https://translatewiki.net.
Change-Id: Ie8fe5eb4cf8dcc11c3d0d28e0efc7dc7b5a922d2
2016-07-17 22:30:51 +02:00
Translation updater bot bac88b142f Localisation updates from https://translatewiki.net.
Change-Id: I6e28b7fa45025cff48f3daff36bfdc86dd435dfe
2016-07-15 22:30:59 +02:00
Brad Jorsch ba19a82c06 Add handling for PCRE errors in ustringGsub
Bug: T130823
Change-Id: I6fab71c82ddab92daf6b369cb9857d9892f2d246
2016-07-15 15:43:58 -04:00
Brad Jorsch d643f40de9 Ustring: Let gcodepoint work with moderately long strings
For the PHP implementation, return the codepoints as a table instead of
multiple return values that get table-ified in Lua, to avoid hitting
too-many-values stack limits.

For the pure-Lua version, inline most of ustring.codepoint instead of
calling it to avoid what's effectively "{ unpack( stuff ) }".

Bug: T118687
Change-Id: I105f388cc23ab55d4124739700ef89d5354b7dbc
2016-07-15 19:35:58 +00:00
Translation updater bot 35b3cdcb72 Localisation updates from https://translatewiki.net.
Change-Id: Ie3acaab7d38d6d8f23c5d013e2da642e93ded194
2016-07-10 22:23:19 +02:00
Translation updater bot 2e8ea999bb Localisation updates from https://translatewiki.net.
Change-Id: I51aef74361e898289f10777036c9dd5d06b547fd
2016-07-02 22:54:23 +02:00
Translation updater bot f3eefb406f Localisation updates from https://translatewiki.net.
Change-Id: I920264bb1f44c841d266bd2fc750fdf269c76010
2016-07-01 23:27:02 +02:00
Translation updater bot 74c16df201 Localisation updates from https://translatewiki.net.
Change-Id: Ifd9868d877b8d56531a0b3b39b5ebb39c83b5001
2016-06-24 11:16:36 +02:00
Translation updater bot 2078ff0daf Localisation updates from https://translatewiki.net.
Change-Id: I037dfb4b7f9421d60ab7e22b02583e72b0525c86
2016-06-21 23:31:50 +02:00
Kunal Mehta 9275cc14fb Expose ParserOutput::addWarning() to modules
Bug: T137900
Change-Id: Ibdd2506f4ab27f531ae49187bc57ba0d5c56b7cc
2016-06-16 15:48:53 -07:00
Raymond 1855331518 Add namespace translation for gd
Change-Id: I6515008dfc9b055cae23580cef19789999fe6a5e
Source: gd:user:GunChleoc
2016-06-16 17:16:24 +02:00
Translation updater bot f1aa381dad Localisation updates from https://translatewiki.net.
Change-Id: I52a23b751c3df70c8f3caf216928a18f952615b5
2016-06-15 22:38:33 +02:00
Translation updater bot 28364d2836 Localisation updates from https://translatewiki.net.
Change-Id: I39448d5857221db11045ef1a764c48b00f63edeb
2016-06-11 22:23:38 +02:00
Jackmcbarn f4501ccd22 Only use mw.ustring when necessary
mw.ustring is really really slow. I've discovered that in a lot of modules
on enwiki, upwards of 2/3 of the total runtime gets used when mw.html
calls mw.ustring.gsub. This change checks whether any Unicode characters
are present, and if not, calls string.gsub instead.

Change-Id: Ia50061584be3901ae7428354c449236225c318db
2016-05-30 18:38:32 +00:00
Kunal Mehta 08a39470c0 build: Updating mediawiki/mediawiki-codesniffer to 0.7.2
Also added "composer fix" command.

Change-Id: I8da17b799929b7caed0e0a89014c6ab15c39f0c6
2016-05-27 18:24:16 -07:00
Brad Jorsch c9de00aeff SECURITY: Don't escape strip markers when escaping attributes in mw.html
Core strip markers were changed in T110143 to include characters that
are normally encoded in attributes, however we want to pass them through
here so they can be unstripped correctly in the output wikitext.

This fix makes "Strip markers in CSS" parser test pass again.

Bug: T110143
Bug: T135961
Change-Id: I1353931a53c668d8a453dfa2300a99f59fdb01c5
2016-05-22 21:40:32 -04:00
Translation updater bot 05e8a08b66 Localisation updates from https://translatewiki.net.
Change-Id: I473d9948aa2c7f460df1ceace59467433a76126a
2016-05-22 22:27:35 +02:00
Translation updater bot d0b9bc069f Localisation updates from https://translatewiki.net.
Change-Id: I98f610ae344da3de21275765c2388aa85d90a9eb
2016-05-21 22:23:50 +02:00
Brad Jorsch aa4d72e3ff Fix uncontroversial phpcs errors
The following continue to be ignored:
* Generic.Arrays.DisallowLongArraySyntax.Found, because I'm not sure
  Scribunto is ready to abandon old version support in master.
* MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures,
  because it's overly strict for its purpose.

Squiz.Classes.ValidClassName.NotCamelCaps isn't ignored globally, we
just ignore it explicitly every place it's needed.

Change-Id: I307668da6ef7b3e23da19b1fd1e08914239b99b3
2016-05-18 16:31:28 -04:00
Ricordisamoa 7ec8675e85 Add mediawiki/mediawiki-codesniffer
Failing rules are disabled for now.

Change-Id: I9c4cbd7865a0793703b3ca39045087c5ab691bd1
2016-05-18 15:16:32 +02:00
jenkins-bot c753698eaa Merge "Provide a standard way to get the target of a redirect page" 2016-05-12 19:32:17 +00:00
Sébastien Santoro 5c1a9c9703 Localisation in Breton language
Translation authors:

  - Ash Crow
  - VIGNERON

Bug: T134734
Change-Id: I0e6f244b0dc15df3d3e1ae090f19f6678f3bc21f
2016-05-09 09:25:35 +00:00