Commit graph

2008 commits

Author SHA1 Message Date
Translation updater bot 34ff6f5683 Localisation updates from https://translatewiki.net.
Change-Id: I458eb93b21a0ade3cc06224bb48fde3117f80f68
2014-06-22 19:31:10 +00:00
Translation updater bot 192ab4faff Localisation updates from https://translatewiki.net.
Change-Id: I4ac01d0a68bf239d30d762f3d6e96b5bd42f6dc4
2014-06-20 19:51:03 +00:00
jenkins-bot 996a48e42c Merge "Remove dead code" 2014-06-19 18:45:14 +00:00
jenkins-bot 8d7d5f35ed Merge "Allow passing nils to mw.html" 2014-06-19 16:57:02 +00:00
Jackmcbarn d1030989bc Allow passing nils to mw.html
Rather than calling error() when nils get passed to mw.html methods,
either remove whatever it was that the nil would go to (if that makes
sense), or just do nothing. The seemingly inconsistent use of "not x" and
"x ~= nil" is to allow any falsey value where it wouldn't be ambiguous
(such as class names), but not where it could be (such as attribute values).

Bug: 62982
Change-Id: I76773abbb4394aa9bb8c8a08445e019cade3b2bf
2014-06-19 11:40:39 -04:00
Marius Hoch 9e6b67c723 Remove dead code
Just confusing...

Change-Id: I8b6e3d290c8ae75159e86835a0d359a4dcaa7a0e
2014-06-18 19:56:39 +02:00
Reedy 4d0665dbd8 Parameter type hints
Change-Id: I3d578ab6fb65917ef0fa65767089b01ca7c4e96d
2014-06-18 18:19:07 +01:00
Marius Hoch 186212cfe6 Fix return doc for ScribuntoEngineBase::fetchModuleFromParser
Change-Id: I5c16c18ee4667adcb76fd647f55713ef227466e8
2014-06-18 18:51:09 +02:00
Brad Jorsch ec7472a0e5 Sanity check $wgNamespaceAliases
If someone goes and adds aliases for namespaces that don't actually
exist (as was done in I94c34799, for example), Scribunto will run into
issues when trying to create its mw.site.namespace objects.

Let's ignore those bogus aliases so we don't go breaking everything just
because someone did something stupid.

Change-Id: I16acd97f587de320cf61becb829cc66794cbb119
2014-06-17 14:23:26 -04:00
Translation updater bot ee21d14c4a Localisation updates from https://translatewiki.net.
Change-Id: I9dca99dcce20918d3a9fa9fe4a24f6f2a3552634
2014-06-12 21:38:57 +00:00
Translation updater bot 0a78d90f12 Localisation updates from https://translatewiki.net.
Change-Id: I8ac65c189f8f4230b7b4a240150feb2ac2d84007
2014-06-11 20:39:55 +00:00
Translation updater bot 3f74fcb195 Localisation updates from https://translatewiki.net.
Change-Id: Ibe797954d8c95bda9f146567eaeb7505e5bc8518
2014-06-06 21:47:35 +00:00
Translation updater bot 29a1ad0b75 Localisation updates from https://translatewiki.net.
Change-Id: I1949aa76660127be481121b953dcb5d2767fe259
2014-06-05 20:46:28 +00:00
Translation updater bot b41a32d6f4 Localisation updates from https://translatewiki.net.
Change-Id: I7fc4c1cb2f4f93f7a2a5a1564f39b836f16fe969
2014-06-03 19:51:48 +00:00
Translation updater bot 0e600c5891 Localisation updates from https://translatewiki.net.
Change-Id: Ib96f0adfd51f83344b1ffb25e2fd76632ddc621f
2014-06-02 20:59:52 +00:00
Translation updater bot a55fcbc938 Localisation updates from https://translatewiki.net.
Change-Id: Ie3e15fa3c43502e13b030d443c25aded915e4d02
2014-06-01 19:41:34 +00:00
Translation updater bot ff22c710c6 Localisation updates from https://translatewiki.net.
Change-Id: I24775541d08ac7ba2e61c45869b0162a9386f735
2014-05-31 19:01:51 +00:00
Translation updater bot 3356a3da10 Localisation updates from https://translatewiki.net.
Change-Id: I4ed4fe2bf8b6c0027f93872a5c61dd8161ae61c6
2014-05-30 18:49:50 +00:00
Translation updater bot 63bb20ee18 Localisation updates from https://translatewiki.net.
Change-Id: Ic4f0a355e4c83a0b66f1ede7c65c20e75284e333
2014-05-28 19:34:51 +00:00
Translation updater bot b5adf6efa7 Localisation updates from https://translatewiki.net.
Change-Id: Ib41ead796a684aae7c1f95e451487186f4e4b778
2014-05-27 20:28:28 +00:00
Jackmcbarn 1201618b7d Keep modules' export tables inside Lua
When tables are passed from Lua to PHP, their metatables are lost. Because
of this, they need to be kept inside of Lua to allow the __index
metamethod to return a method to be called by #invoke.

Bug: 64141
Change-Id: I0840bc12b25dee72828ec97d2b205812e4929f2b
2014-05-26 20:01:18 -04:00
Translation updater bot e133ca10c2 Localisation updates from https://translatewiki.net.
Change-Id: I938ab0852da197d400e7d3b7352db12f54c564b8
2014-05-22 19:55:53 +00:00
Translation updater bot 77c90c04bf Localisation updates from https://translatewiki.net.
Change-Id: I4397752c3206e3dd3df99fe7960d79a0cd24dc75
2014-05-21 20:25:07 +00:00
Jackmcbarn 1492ac3d68 Avoid running all of mw.lua twice
LuaStandalone only uses 2 functions from mw.lua, so move them to their own
file to avoid running the whole thing twice.

Change-Id: Ia4d58f44be17f7a71666dbe750e66d9d90cb5c2f
2014-05-15 14:15:08 -04:00
Jackmcbarn e19a1404f4 Use do...end to restrict scope
Creating and calling an anonymous function to create a scope is prone to
breakage, and only works because the last token before it is a numeric
literal. Do...end is designed for this purpose, so use it instead.

Change-Id: Ic33321086d5469bf97301b434c5a660f04120662
2014-05-14 13:43:13 -04:00
Brad Jorsch 35ee461a0b Improve frame:callParserFunction argument validation
From wikitext, $parser->callParserFunction() will always get an array of
strings with at least an element [0]. Let's match this from Scribunto:
stringify numbers, and require that [0] (although in Lua it'll be [1]).

Also fix an old broken unit test.

Bug: 63597
Change-Id: Ie7ac34ae4bce70cec455d90c3f02a658644f6866
2014-05-13 05:14:07 +00:00
Translation updater bot caef690cd1 Localisation updates from https://translatewiki.net.
Change-Id: Ic0076267d64c3c174da9d7aa1475af26f0929fef
2014-05-11 19:09:04 +00:00
Derk-Jan Hartman fd295c3b71 Convert Scribunto to use fillParserOutput
Followup-to: Idf4ad4397101a4d19be2ac773cd4bad52188d903
Change-Id: I7e18d57f231716127028dafe44e61cee7d89d4d9
2014-05-10 17:31:26 +02:00
Translation updater bot 0f53973f67 Localisation updates from https://translatewiki.net.
Change-Id: Id38d802e2e4a9d5b18125be1c05e33920d5d3b4e
2014-05-09 22:22:00 +00:00
Translation updater bot dd30fa97ee Localisation updates from https://translatewiki.net.
Change-Id: Ic0cda88bebcd69372ba8715902e48b18eeba733c
2014-05-08 20:48:50 +00:00
jenkins-bot e9fe95b451 Merge "Show module doc with the correct direction formatting" 2014-05-08 19:14:25 +00:00
Amir E. Aharoni a8a17a8bb0 Show module doc with the correct direction formatting
* Add mw-content-(ltr|ltr) class to the documentation <div>.
* Rewrite the div code as Html::rawElement instead of
  concatenating a string.

Done in pairing with Niklas Laxström.

Change-Id: I4d68d53df9dcf3556885552b738f2c327aaa8607
2014-05-08 17:48:14 +02:00
aude bb0f10b751 Make LuaEngineTestBase compatible with phpunit 4.1
PHPUnit_Framework_TestSuite::isPublicTestMethod has
been removed from phpunit 4.1.

Change-Id: I191b5f460fbef122d8e916c8f661f09083b33970
2014-05-08 07:11:14 +02:00
Translation updater bot 64360099b4 Localisation updates from https://translatewiki.net.
Change-Id: I82e206d8a65c8f7608b917aeaeb8c7d662d7d9a0
2014-05-06 19:53:37 +00:00
Translation updater bot 3e716c6488 Localisation updates from https://translatewiki.net.
Change-Id: I16dece095aa2c78f6fe9ab26f158f33a2c09194c
2014-05-02 19:52:14 +00:00
Translation updater bot f768b95013 Localisation updates from https://translatewiki.net.
Change-Id: If8ef2efd7c1eda6a74fa085270364b73a59041c5
2014-04-25 19:44:03 +00:00
Translation updater bot 354c8095f1 Localisation updates from https://translatewiki.net.
Change-Id: I4b2b460f0eaf3a568343e2bdc2ed51fdbf473fd4
2014-04-23 19:56:38 +00:00
jenkins-bot 116cc4f560 Merge "Use correct variable in require()" 2014-04-22 14:23:04 +00:00
Translation updater bot 8e7906e956 Update i18n shim
A performance issue was fixed in the shim(s) generated by
generateJsonI18n.php, so it needed to be updated.

Change-Id: I041a73f28e425c7b1d064aad7d3d21b12cacdabf
2014-04-22 13:40:40 +00:00
Translation updater bot bb5c01b170 Localisation updates from https://translatewiki.net.
Change-Id: I3b93fdc062392d0a7c272b4c28cc080cbbce52a1
2014-04-21 20:25:18 +00:00
Jackmcbarn b0de034ffe Use correct variable in require()
Use modname instead of the nonexistent name in the error message if
require() is passed the wrong type of parameter.

Change-Id: I2e96d283e34a16e4675141ce8ccddbcc045ef2a1
2014-04-20 18:57:03 -04:00
Translation updater bot 6f3c136e1c Localisation updates from https://translatewiki.net.
Change-Id: I97d53340e5a6fe50f85314531f9f6fa6cceb3ff3
2014-04-20 20:09:54 +00:00
Translation updater bot fca97c94b9 Localisation updates from https://translatewiki.net.
Change-Id: I01872679d5c26bc5643c5408ffb9b31e13d63367
2014-04-18 19:36:51 +00:00
Translation updater bot e24fceb796 Localisation updates from https://translatewiki.net.
Change-Id: I13ff7ef8a982dc120b8a09b3d15d740fc886ccb9
2014-04-17 19:01:15 +00:00
Translation updater bot b6b66fb9b5 Localisation updates from https://translatewiki.net.
Change-Id: Ice2cdcf3d1f743e7eeb2b2c4b8ef8a0d86a18a8b
2014-04-16 15:48:33 +00:00
Translation updater bot 94795c31ff Merge "Localisation updates from https://translatewiki.net." 2014-04-15 20:18:42 +00:00
Translation updater bot e70e28103c Localisation updates from https://translatewiki.net.
Change-Id: I33a203ab35eb70066c4383576a46647237bc2187
2014-04-15 20:10:20 +00:00
jenkins-bot 1504b474e4 Merge "Accept mw.title object as the title argument of frame:expandTemplate()" 2014-04-15 16:11:26 +00:00
Translation updater bot ebe8f7705f Localisation updates from https://translatewiki.net.
Change-Id: I966d03edd1bc31892e736dea3a95a5063ba9df9f
2014-04-14 19:45:47 +00:00
jenkins-bot 16ca37fa6b Merge "Add name to nosuchfunction and nosuchmodule errors" 2014-04-14 14:33:55 +00:00