Commit graph

2008 commits

Author SHA1 Message Date
Antoine Musso a179bd6182 tests: skip CPU limit test on Darwin
The Darwin does not support POSIX timer which is being used to limit CPU
usage. Running the tests on Mac OS X would never end so we are just
skipping it.

Change-Id: I56c3e8cd1cba15d33256192aa7e721e6448c7a2e
2012-09-12 17:46:47 -07:00
Translation updater bot 01fc480cb2 Localisation updates from http://translatewiki.net.
Change-Id: I3f87ced73d7c8ce12926e7b2900d5a6983f94f17
2012-09-12 19:55:16 +00:00
Tim Starling b6ee139cdc (bug 39816) Remove undefined template callback
Change-Id: I644d73ff3471889f2dc27515ba7d5db7ebe4ea1f
2012-09-06 15:34:14 +10:00
Tim Starling 776cc1f93d (bug 39606) Add a tracking category for script errors
Change-Id: I5a925ccd41e494a7b06d98b1e1656250b80c143a
2012-09-06 14:56:42 +10:00
Tim Starling aacca08815 Add mw.getCurrentFrame()
Provide a convenient means to access the current frame so that the
parameter passed to module functions won't need to be conventionally
stored in a global variable.

Change-Id: I0254d86a1094866a3ce4899e4021d0b33367bb35
2012-09-06 14:54:26 +10:00
Tim Starling 9859591271 Allow time functions in LuaStandalone
As in LuaSandbox I7e116c76

Change-Id: I783e2ae802999701ebcd4d1a1b3d113a21b4ca9e
2012-09-06 11:01:53 +10:00
Tim Starling 996ea62765 LuaSandbox profiler support
Add a profiler report to the limit report for pages with more than 1s
of Lua time. Uses the profiler introduced in I0b83a914 of LuaSandbox.

Also, fixed some circular references which were preventing the
LuaSandbox object from being destroyed when Scribunto::resetEngine()
was called. Otherwise a large number of interval timers could be started
due to a LuaSandbox object resource leak.

Change-Id: I5487fe2623974939d07f09f7197e86a5f297a8f1
2012-09-06 01:00:20 +00:00
Translation updater bot 2bc7fac2f7 Localisation updates from http://translatewiki.net.
Change-Id: I3e61139bc26df539dea57fc306b60f568c4f1992
2012-09-05 19:24:20 +00:00
Translation updater bot aea0553458 Localisation updates from http://translatewiki.net.
Change-Id: I05222a32f2b3d0f3d359904b45b5cc486c1a1f3c
2012-08-31 19:52:29 +00:00
Translation updater bot deaf8ecaf0 Localisation updates from http://translatewiki.net.
Change-Id: I7a327cdcd903c40a8e7d62a526609054905f7d8b
2012-08-29 19:22:59 +00:00
Tim Starling 89cf9f187d Fixed parser tests broken by I97f7732010ebfebcf494ac9e308275b34dbb9609
Change-Id: Ifd46b5dd25edd912d3fc2ebb92326da11c9df67b
2012-08-28 16:23:52 +10:00
Tim Starling ea1347a620 Don't run Preprocessor::preprocessToObj() on cache hits
Don't run Preprocessor::preprocessToObj() for frame:preprocess() on
cache hits, only do it on cache misses. The rationale for passing a
PPNode from expandTemplate() to doCachedExpansion() remains: Parser
implements its own cache, as well as extra logic, inside
getTemplateDom().

Change-Id: I29e85e3e98d9590bbd1ae49fb2bb4deaa895edc9
2012-08-27 11:14:25 +10:00
Amir E. Aharoni c8809168b4 Add Hebrew namespace aliases
Change-Id: Iafa658b113525b72e813961e7565a6046aca1219
2012-08-26 18:20:59 +00:00
Translation updater bot 8403384819 Localisation updates from http://translatewiki.net.
Change-Id: Ifeac328990da73d38e65087b6378fa0f1bd63b3b
2012-08-25 19:02:31 +00:00
Translation updater bot f204940db2 Localisation updates from http://translatewiki.net.
Change-Id: Ib995e4d86f412a69c4c8a2d7540e2116103050bf
2012-08-22 19:54:19 +00:00
Translation updater bot dd1bf82ab8 Localisation updates from http://translatewiki.net.
Change-Id: I21fd2e389d2c532c813394363e08183c859ce7c9
2012-08-21 20:09:41 +00:00
Translation updater bot 73b5e91465 Localisation updates from http://translatewiki.net.
Change-Id: Ib2a37996dbdba125a96b4734577ba1b17a98d48c
2012-08-20 19:21:38 +00:00
Translation updater bot 01fc0d0a1f Localisation updates from http://translatewiki.net.
Change-Id: I1badb00cf5810ce9a3188cb7783d47b8e4251d75
2012-08-19 14:50:06 +00:00
Translation updater bot b4731fec23 Localisation updates from http://translatewiki.net.
Change-Id: I8e91cf2de63bde362f939968b3fddff92257e5e5
2012-08-17 13:08:33 +00:00
Siebrand 0a9082d8b2 Merge "Rephrased two messages to make them clearer" 2012-08-17 08:06:30 +00:00
Siebrand 8fd06a55dc Merge "Rephrase scribunto-ignore-errors" 2012-08-17 08:06:08 +00:00
Translation updater bot 7b63a55daa Localisation updates from http://translatewiki.net.
Change-Id: Ibfaac777ddd24a61188a207cd48fe2ca04b8885d
2012-08-16 20:28:51 +00:00
Translation updater bot 58e6a872ec Localisation updates from http://translatewiki.net.
Change-Id: I319433962b104a733f483e200c6752f8fbd51fc6
2012-08-15 19:55:52 +00:00
Siebrand 39cb7bcdfb Merge "(bug 39364) Fix for Code Editor directionality" 2012-08-15 13:30:32 +00:00
Amir E. Aharoni b70f8a064e Fix console directionality
Add dir="ltr" and lang="en" to the console element.

Change-Id: I73e6e35d2045dc4a7af7ab16799d4e0f06af0bec
2012-08-15 12:16:43 +03:00
Amir E. Aharoni 8be497e27a (bug 39364) Fix for Code Editor directionality
Added /* @noflip */ direction: ltr to the ace_editor class.

Change-Id: I29403409c2cef0266db8effbdd63a1311cf0749c
2012-08-15 12:14:50 +03:00
Tim Starling d6312c80c4 Make the module namespace ID a large fixed integer
Fix for bug 37641. Referencing a constant defined in the extension
registration file breaks some scripts. Referencing a constant defined in
an extension setup function is even worse. So it's not really possible
to configure the namespace number.

To update:

UPDATE page SET page_namespace=page_namespace+808
WHERE page_namespace IN (20,21);

Change-Id: I18e53127147f62a8b2058537f7b054c253ba126e
2012-08-15 11:12:54 +10:00
Translation updater bot 8fa74a8bb3 Localisation updates from http://translatewiki.net.
Change-Id: I01df5ef832e4c8d00a48900e475ad5ef1afeaa40
2012-08-14 19:42:30 +00:00
Translation updater bot 429f70e3f6 Localisation updates from http://translatewiki.net.
Change-Id: Icfe5e62fd4f32a7ccf7ee92354ca8eb2e3eae97d
2012-08-13 19:53:20 +00:00
Translation updater bot bfd5191513 Localisation updates from http://translatewiki.net.
Change-Id: Ia706b5dded9c57e16b1ff6d85659ccc546e70b59
2012-08-12 20:27:47 +00:00
Translation updater bot fab97f7845 Localisation updates from http://translatewiki.net.
Change-Id: Iad343ae19ed6329eae4fe640cc94b99708d56e70
2012-08-11 19:23:20 +00:00
Translation updater bot 9b06b8203f Localisation updates from http://translatewiki.net.
Change-Id: Icbcce1922ac4faece618d22fa68284e66eb56b15
2012-08-11 00:04:14 +00:00
Translation updater bot 2b93b663e5 Localisation updates from http://translatewiki.net.
Change-Id: I1e7ea1c8fa681bf55146b0929bc0d5b164d806a9
2012-08-10 19:23:59 +00:00
Translation updater bot 4e675441eb Localisation updates from http://translatewiki.net.
Change-Id: I89b70cb314b7763c8bd43982e4f90ac5578d0534
2012-08-09 19:32:23 +00:00
Translation updater bot a1fe28ea22 Localisation updates from http://translatewiki.net.
Change-Id: I90999e173f0ba8b3b8c1979f7e9b18f405d515a0
2012-08-08 19:19:44 +00:00
Amir E. Aharoni 7f3444a3d1 Rephrase scribunto-ignore-errors
The message should be more self-explanatory now.
(I guessed what it is supposed to mean according to
the qqq documentation.)

Change-Id: I2021ffb1a3165e01d93c4c34fdbf39080d18eb2c
2012-08-08 12:18:24 +03:00
Amir E. Aharoni b8fb66dbda Rephrased two messages to make them clearer
Change-Id: Ia649c67c9b2cce51cc9e794da4d679008a4c8667
2012-08-08 12:15:56 +03:00
Translation updater bot 25541e8a2a Localisation updates from http://translatewiki.net.
Change-Id: If2304da28c6ca8d8d88adb55cfccc730f6cdc0e4
2012-08-07 20:10:33 +00:00
Translation updater bot 822a5bb1e8 Localisation updates from http://translatewiki.net.
Change-Id: I3b36d22117b572a24990098011ca7b75173b7c96
2012-08-06 19:28:38 +00:00
Translation updater bot b1e45f2c90 Localisation updates from http://translatewiki.net.
Change-Id: I9382222f5a6799c3c16926563f126a19c39d9ae1
2012-08-05 19:30:37 +00:00
Translation updater bot 2c4cac2ea8 Localisation updates from http://translatewiki.net.
Change-Id: I80b64c4a2f14300a604602d23c01f6645a40e816
2012-08-03 16:20:34 +00:00
Translation updater bot d63b6fbf30 Localisation updates from http://translatewiki.net.
Change-Id: I364490317b464cd87491f47d582105c99f278b63
2012-08-01 20:09:07 +00:00
Translation updater bot 4e91fc6808 Localisation updates from http://translatewiki.net.
Change-Id: Ic319b22a2b8421019c905a0807217551f956341a
2012-07-23 13:44:54 +00:00
Tim Starling 5f5b09ee8c Fixed missing resource dependency
Change-Id: I6281354973f06232db5f34fe796b46fe9383536c
2012-07-14 14:46:28 +10:00
Tim Starling b5c36bad59 Debug console module
* Added a debug console to the edit page, allowing unsaved modules to be
  tested.
* Removed the "preview" button from the edit page.
* Only show the "ignore code errors" checkbox on module edit pages, not
  all edit pages.
* Added Lua function mw.log() for sending messages to the debug log.

Change-Id: Ia51f439e573a1deb5b83f94ddd1a86792d5569c1
2012-07-14 14:35:55 +10:00
Translation updater bot 16e9eba133 Localisation updates from http://translatewiki.net.
Change-Id: I8fe56aa5b3c7825b20c4e33e2874c543f101124d
2012-07-11 20:00:33 +00:00
Tim Starling a6a3678bf3 expandTemplate() nonexistent title error
(bug 37324) Raise an error instead of returning nil when the specified
template does not exist.

Change-Id: Idd52c0cb9431cfeb7db73ca2692365aa121c49ab
2012-07-09 13:23:31 +10:00
Tim Starling 54af4fc79e (bug 37315) Run UTF-8 normalization on script results
Change-Id: I9b9fdb0391145560d85e64f6afdc5bfbd5093cf2
2012-07-09 13:12:54 +10:00
Translation updater bot fb8b86931c Localisation updates from http://translatewiki.net.
Change-Id: I7cdd8c5430ef08faa82a689d08e618f81462ef79
2012-07-08 19:23:09 +00:00
Translation updater bot 751ea278ff Localisation updates from http://translatewiki.net.
Change-Id: I1f7b8dd6267b5afddf8b31955838a4bf208a8901
2012-07-06 21:20:43 +00:00