Commit graph

1878 commits

Author SHA1 Message Date
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
Translation updater bot c248cccf5c Localisation updates from http://translatewiki.net.
Change-Id: I63e22a36016c7436c886c52776242a2ab935f9db
2012-07-05 19:46:15 +00:00
Translation updater bot d86dcb0b70 Localisation updates from http://translatewiki.net.
Change-Id: I103eabfb4d3e45f50573f0088208861697a4f31d
2012-07-04 20:09:43 +00:00
Translation updater bot dfa09541e5 Localisation updates from http://translatewiki.net.
Change-Id: I579f7efb14104f4d5bb37a7b6aff67b22babae9d
2012-07-03 20:57:37 +00:00
Tim Starling be8f6ca34d Allow users to ignore parse errors
Allow users to save a module with a parse error in it, by checking an
"ignore error" box. This was a requested feature in Berlin, there was a
desire to be able to save incomplete drafts of modules. I tested the
effect of #invoking a module with a parse error in it, it shows a normal
script error.

Change-Id: If2978a226ac50150ebeb7837e8dd370a669db771
2012-07-03 13:02:03 +10:00
Tim Starling c45034b250 Give a helpful error message if frame methods are called incorrectly
Change-Id: Iae1ed064eb540122c89f0e93f20e76569ec3d1fe
2012-07-03 13:02:03 +10:00
Translation updater bot c161d29775 Localisation updates from http://translatewiki.net.
Change-Id: Ia5f61acba06fa80990010972c02e7b3201fe3615
2012-07-02 22:15:05 +00:00
Translation updater bot 986f8cbaed Localisation updates from http://translatewiki.net.
Change-Id: I85b3eb670a7b3c00752e263950b62aa951f01b1b
2012-07-02 22:01:26 +00:00
Siebrand Mazeland 844cf4e73e Add file header.
Change-Id: I4dc3ee7b4533a5b86baf023a798f9fe584f13497
2012-07-02 23:41:14 +02:00
Derk-Jan Hartman 253e36fff5 Don't use php shorttags, because not everyone has them enabled.
Change-Id: Ia6c992d32af25932fd3d91c970058849f1766e9e
2012-07-02 23:15:26 +02:00
Translation updater bot 9080ece112 Localisation updates from http://translatewiki.net.
Change-Id: I5ffed16964243ae072dc609e305e2f1bf5389e70
2012-07-01 14:14:36 +00:00
Translation updater bot 82d2d88ab0 Localisation updates from http://translatewiki.net.
Change-Id: If376578dc926e6aaef83b282b2ae7b442d1c1f75
2012-06-30 11:37:45 +00:00
Tim Starling 30dee55eeb Merge "Add a Mac OS X (Lion) lua binary. Compiled for 32 and 64bit. Used automatically on Darwin systems" 2012-06-29 07:19:39 +00:00
Translation updater bot 35df9011f5 Localisation updates from http://translatewiki.net.
Change-Id: I869017bb695c52f6f16f984905372832c3200716
2012-06-28 19:49:07 +00:00
Translation updater bot 825f7937e3 Localisation updates from http://translatewiki.net.
Change-Id: I64c06ba75a61a835ee4874b69836d980800bd21f
2012-06-25 20:18:25 +00:00
Translation updater bot 47091cecdb $COMMITMSG
Change-Id: I13c67d45b89d5ef291dcf4d0203a8898e1434704
2012-06-23 20:14:39 +00:00
Translation updater bot f845c6b62e Localisation updates from http://translatewiki.net.
Change-Id: Ia66a84181cd2f033a53a130249655f6a4f47d182
2012-06-21 20:26:01 +00:00
Aaron Schulz b355b95019 Merge "Some bits of documentation" 2012-06-20 22:54:55 +00:00
Reedy 5afbf6a7c7 Some bits of documentation
Left a FIXME

Remove some unused variables

Change-Id: If733608416e68de6afe1e8f6edd4ed78a119979e
2012-06-20 23:54:21 +01:00
Translation updater bot 751d517ace Localisation updates from http://translatewiki.net.
Change-Id: If439bc218cffd8082cee790ef588ea40122a6dcd
2012-06-20 20:26:59 +00:00
Translation updater bot 10028eb8ba Localisation updates from http://translatewiki.net.
Change-Id: I3a323120699e8128a2d6903267e1589261745a33
2012-06-19 19:29:49 +00:00
Siebrand Mazeland d97b59395a Update punctuation and casing for error messages.
Change-Id: I97f7732010ebfebcf494ac9e308275b34dbb9609
2012-06-19 16:49:49 +02:00
Translation updater bot 3fd6deea93 Localisation updates from http://translatewiki.net.
Change-Id: I4bae79625c97fd7ac55e9ea7b1f6acdabc2a6494
2012-06-17 20:33:18 +00:00
Translation updater bot f66392bdde Localisation updates from http://translatewiki.net.
Change-Id: I689c625516880fe23738a046e74a930888e68503
2012-06-15 22:06:10 +00:00
Derk-Jan Hartman 32831ec56e Add a Mac OS X (Lion) lua binary. Compiled for 32 and 64bit.
Used automatically on Darwin systems

Change-Id: Ie4f4d2a2ad3b7d62ae3daea66318ce3947c7fc0e
2012-06-06 23:01:48 +02:00
Victor Vasiliev 02385f0bf7 Update credits.
Change-Id: I5321a306eb877e8445ef538d02db9c9d9539556c
2012-06-01 19:09:13 +02:00
Tim Starling 441943bd9b Do not allow access to setfenv() and getfenv() by default
Optionally remove setfenv and getfenv from the global environment in
which user code runs. This will improve the forwards-compatibility of
user code with Lua 5.2.

Porting to Lua 5.2 would still be a daunting project, of questionable
value, but at least only the internal code would need updating, and not
thousands of on-wiki modules. Compared to the environment changes, the
rest of the Lua 5.2 changes are relatively easy to simulate for
backwards compatibility.

Removed module() from the package module, since it depends on setfenv().
The native version of it is deprecated in Lua 5.2 for that reason.

Change-Id: I978903ca98943ac941833da13fe5027949f6b429
2012-05-31 15:02:04 +02:00
Tim Starling 886c6ae06d Don't open multiple error dialogs
If a Scribunto error dialog is open and the user clicks another error,
or the same error again, don't open another dialog window, instead close
the old one and reuse it.

Change-Id: I50b8d48ee551cfb8cb4e1e672a0e36e15b5ae216
2012-05-26 16:00:05 +04:00
Victor Vasiliev 8fcaa128ac Merge "New parser interface" 2012-05-26 11:42:40 +00:00
Tim Starling 6964cb1ded Don't throw an exception when you save a module page
Fix for 14e8d5d: EditFilter has a $section parameter, EditFilterMerged
doesn't. So if you try to just change the hook without changing the hook
function definition, you get "expected reference, value given" for
parameter 4, which is escalated to an exception.

Change-Id: Ibedff799472285802c43feff6f3cb078e9bfb73c
2012-05-24 04:50:35 -07:00
Tim Starling 6bc11ff615 New parser interface
* Implemented the new parser interface based on a frame object, as
  described in the design document and wikitech-l.
* Added parser tests for the new interface.
* Removed {{script:}} parser function
* Allow named parameters to {{#invoke:}}
* Don't trim the return value
* If a function invoked by #invoke returns multiple values, concatenate
  them into a single string.
* If there is an error during parse, show the error message as an HTML
  comment as well as via JavaScript. This makes parser test construction
  easier, and probably makes debugging easier also.
* Rename mw_internal to mw_php to clarify its role. It is now strictly a
  private Lua -> PHP interface function table.
* Protect mw.setup() against multiple invocation.
* Fixed a bug in Scribunto_LuaStandaloneInterpreter::receiveMessage():
  large packets caused fread() to return with less than the requested
  amount of data, which previously caused an exception. It's necessary
  to check for EOF and to repeat the read to get all data. The receive
  function on the Lua side does not suffer from this problem.
* In the standalone engine, fixed a bug in the interpretation of null
  return values from PHP callbacks. This should return no values to Lua.
* Updated the Lua unit tests to account for the fact that functions are
  now forced to return strings.
* Updated the getfenv and setfenv tests to account for the extra stack
  level introduced by mw.executeFunction().

Change-Id: If8fdecdfc91ebe7bd4b1dae8489ccbdeb6bbf5ce
2012-05-22 14:18:49 +10:00