Commit graph

787 commits

Author SHA1 Message Date
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
Jackmcbarn d74c81c233 Add name to nosuchfunction and nosuchmodule errors
When displaying a nosuchfunction or nosuchmodule error, include the name
of the nonexistent function or module.

Change-Id: I17fc2c68dc8267302a82eee3cb2c5df9b5a3c46c
2014-04-13 21:29:05 -04:00
Tomasz W. Kozlowski 57a4726a43 Namespace translation for Latvian
Bug: 63831
Change-Id: I8cf64de25f0aad857e10fe2f9c8520cade552220
2014-04-13 23:19:05 +02:00
Translation updater bot ee4f9b3346 Localisation updates from https://translatewiki.net.
Change-Id: I4d3e42c9f52ae6f5e5bfd4d3f517604202879f6d
2014-04-13 19:17:22 +00:00
Translation updater bot ff4d8056e8 Localisation updates from https://translatewiki.net.
Change-Id: I00080ca31ed6a17dd3469da0c0d594af5ec73a96
2014-04-10 20:30:51 +00:00
Alexander Jones 1ec95a7bba Accept mw.title object as the title argument of frame:expandTemplate()
This commit fixes an error with using a mw.title object referring to a
mainspace page as the title argument to frame:expandTemplate(), by
adding a leading colon to prevent the function from searching in the
Template namespace.

Bug: 47601
Change-Id: I4cdc05571598bf7998f4cf0f2691bf86188c3c5d
2014-04-10 10:32:40 -05:00
Translation updater bot 51ba96bd45 Localisation updates from https://translatewiki.net.
Change-Id: I31e13744574db8cf6de3fa6987f2cd23ff24f7c9
2014-04-08 20:06:27 +00:00
jenkins-bot 8d2c1e4b30 Merge "Add modul namespace translation for bg" 2014-04-08 10:28:19 +00:00
Translation updater bot b627bfc0f2 Localisation updates from https://translatewiki.net.
Change-Id: I824eff47f86c8ffefcbab4726e2be74c4ae4d740
2014-04-07 20:38:13 +00:00
Raimond Spekking 5602d3d2e9 Add modul namespace translation for bg
Translation by Kolega2357
https://translatewiki.net/wiki/Thread:Support/Module_namespace_-_translation_on_Bulgarian

Change-Id: I62f211fc5830069a85795d1da91ca34af234f2db
2014-04-07 16:23:09 +02:00
Translation updater bot 065a9eac34 Localisation updates from https://translatewiki.net.
Change-Id: Idbf1a5e9c800d2138af6000d03c0d1ab03269779
2014-04-06 19:43:25 +00:00
Translation updater bot a63abc29b0 Localisation updates from https://translatewiki.net.
Change-Id: I2ecaea047481011e8d7c1cfac172be8ae12d83e8
2014-04-04 20:25:07 +00:00
Translation updater bot b8a5cecb8c Localisation updates from https://translatewiki.net.
Change-Id: I4cfd4c4c570865137fdfd9d81cfbea026b2e625f
2014-04-03 19:46:21 +00:00
jenkins-bot 40d3685a50 Merge "Prevent passing information between #invokes using math.random" 2014-04-02 19:28:23 +00:00
jenkins-bot ef52986197 Merge "Remove limits on mw.language:formatDate()" 2014-04-02 18:28:49 +00:00
Translation updater bot 560f73f595 Localisation updates from https://translatewiki.net.
Change-Id: I8f7b1a8bb2f64471b2b345b5d4ca4ccd090882cf
2014-04-01 19:50:06 +00:00
Brad Jorsch 708d87c181 Prevent passing information between #invokes using math.random
It's possible to pass information between multiple #invokes on a page by
having the first call math.randomseed with one of a set of known seeds
and then having the second examine the output from math.random to
determine which of those known seeds was used.

Prevent that by calling math.randomseed( 1 ) when invoking (see the bug
for details on why that seed). But avoid doing so if e.g. a
frame:expandTemplate() call results in a recursive invoke.

Bug: 62291
Change-Id: Id01cb63eca52ced29bf4efebc38beb9f159b7b0e
2014-04-01 13:46:09 -04:00
Translation updater bot 67abd1e616 Localisation updates from https://translatewiki.net.
Change-Id: Ib3dd95ecc34ab1f5a6622c72ed69ea3b9fc24046
2014-03-31 20:16:45 +00:00
Raimond Spekking 07a39e9b07 Fix synax error. Make JSON valid
Followup to
https://gerrit.wikimedia.org/r/#/c/122270/1/i18n/qqq.json,unified

Change-Id: Ie6f2074306a64b09e0e10568619cc6c97aa3e882
2014-03-31 10:07:57 +02:00
Brian Wolff bf22c69263 Follow-up I7d4bb9062. Register tracking categories used.
This allows them to appear in the newly added
[[Special:TrackingCategories]].

Change-Id: I6f31298e4b215c905b133b893de5c6dd514997ba
2014-03-30 21:28:21 -03:00
Translation updater bot ce9f969f3b Localisation updates from https://translatewiki.net.
Change-Id: I8f92c9b3711a6afa7f8ad9d68252e04b4fe0383f
2014-03-30 20:14:21 +00:00
Siebrand Mazeland eb4706125c Migrate to JSON i18n
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.

Change-Id: I6da0ed01298e6f13046415827c6d5619ad2cfeb9
2014-03-28 21:46:41 +01:00