Commit graph

580 commits

Author SHA1 Message Date
jenkins-bot 5a3175fce8 Merge "Improve mw.text.nowiki" 2013-09-03 23:43:54 +00:00
Brad Jorsch 29eb0f4ea6 Improve mw.text.nowiki
The following are now correctly escaped:
* Space at the start of a line
* Start-of-line characters after \r
* Magic links such as "RFC 123" with non-space whitespace
* URIs that don't use "://", such as "urn:foo"
* Double-underscore magic words

Bug: 53658
Change-Id: I824417e2937dd27cd1e69bd4e74ab7d21a978c75
2013-09-03 17:36:36 -04:00
Translation updater bot 4516d505a0 Localisation updates from http://translatewiki.net.
Change-Id: I8d75b8ebe1ec2d5583244eb4ccaabc7ebe8c1db4
2013-09-03 20:58:44 +00:00
Translation updater bot 6419a01c5f Localisation updates from http://translatewiki.net.
Change-Id: If9d0c16971cde0466b1f88f6a80ce177d8c5b850
2013-09-02 19:24:33 +00:00
Translation updater bot 7fe87ca005 Localisation updates from http://translatewiki.net.
Change-Id: Ie2afbaf3aeeedf54653fd172b288919b8dd935cb
2013-08-30 19:24:54 +00:00
Mark A. Hershberger 6875792d03 Scribunto should error out sooner if lua isn't executable
Improve error reporting by causing Scribunto to fail earlier if lua
can't be run.

Change-Id: I43fb38c6c3facbd7b65b7ae16f1d23ee72f7a5ff
Bug: 52002
2013-08-30 11:34:19 -04:00
jenkins-bot 99b96d8b14 Merge "Add frontier pattern (%f[set]) to ustring" 2013-08-30 06:22:40 +00:00
Brad Jorsch 8e6e07c75f Handle backtrace where Lua can't guess the function name
Current logic is to display the funciton name if Lua provides us with
one, "main" if it's at the main level, or "?" if it's a C function or a
tail call. But we're not handling if it's a Lua call but Lua can't guess
a name for the function; use "?" for that too.

Change-Id: I938b5e5ca55cf4990dbcbb0db8dd8fc93b03bf15
2013-08-28 11:55:55 -04:00
jenkins-bot 97aede9e14 Merge "Remove explicit direction: ltr" 2013-08-27 19:54:05 +00:00
Translation updater bot c6ef3bcfd3 Localisation updates from http://translatewiki.net.
Change-Id: I1f4bd28932c7334821d23d886fa760b15adad2f4
2013-08-27 19:18:00 +00:00
Translation updater bot 47c2933cfb Localisation updates from http://translatewiki.net.
Change-Id: Ie13cdbe484acc9ec1a0f39cd96612fc341c68264
2013-08-25 20:06:00 +00:00
Amir E. Aharoni 4d479d0bc5 Remove explicit direction: ltr
It's better to handle it in CodeEditor:
Ia7d6958a10481c39abb1406b67210cac998818e7

Change-Id: Ieb695bc8c85c07fd01f02bccbc94c6ab6b8bb579
2013-08-24 11:23:03 +03:00
Brad Jorsch 349fbb2daa Fix possible fatal error
If an invalid title is entered into MediaWiki:Scribunto-doc-page-name,
it could cause "attempt to call function on a non-object" fatal errors
all over the place. Let's avoid that.

Bug: 52404
Change-Id: Id5c6e7cd01b13547095553358310605dd02e90aa
2013-08-22 10:16:06 -04:00
Translation updater bot 94fd595b7d Localisation updates from http://translatewiki.net.
Change-Id: I24ae6aa517b9e1851905625b2acd27b115d4b5d4
2013-08-17 19:24:19 +00:00
Brad Jorsch 5a9b7cc5a6 More-compatible Linux standalone binaries
The binaries currently provided were compiled against glibc 2.11+, so
people using CentOS 5 (which has glibc 2.5) are not able to use them.

The binaries in this patch were compiled in VMs installed with CentOS
5.9, and so should work for more people; at a glance, it looks like
glibc 2.3 or later will probably work now.

Bug: 51333
Change-Id: Iac1f2373bbc0bbca8783c82c09eff51ffd5e3761
2013-08-13 01:32:50 +00:00
Translation updater bot ec643ee46e Localisation updates from http://translatewiki.net.
Change-Id: I1788b206af1de47fa053c2b18f91573ab4c06969
2013-08-11 19:49:08 +00:00
Translation updater bot 391e77b96f Localisation updates from http://translatewiki.net.
Change-Id: I03735c35c011fa6b69bcac1ac5b5853201b269ab
2013-08-09 19:45:19 +00:00
Translation updater bot 1d0b8c48e6 Localisation updates from http://translatewiki.net.
Change-Id: If76b93a9bbfc7b48e93bf04230c40f82125e5202
2013-08-04 18:55:32 +00:00
Translation updater bot 7a287da2cb Localisation updates from http://translatewiki.net.
Change-Id: I39a3f6b1c11574c3f840e9deed24babd0d87016f
2013-08-03 19:45:09 +00:00
Translation updater bot 0fcee818c1 Localisation updates from http://translatewiki.net.
Change-Id: I3a0084eb8c327ae5eed79fd61f9218afd65325b3
2013-08-02 21:37:58 +00:00
Translation updater bot d5fe63dec6 Localisation updates from http://translatewiki.net.
Change-Id: I926390385bf74f648a8ddb0b5e0ea24f943107e8
2013-07-31 19:59:47 +00:00
Translation updater bot 2215cae9ad Localisation updates from http://translatewiki.net.
Change-Id: I7c2727718cc4f90bab820eb8bff6e668a5fee35e
2013-07-28 19:13:51 +00:00
Brad Jorsch d9ba200571 Add mw.logObject
People have requested a method to log a table as something more detailed
than just "table", to be able to inspect values while debugging.

Bug: 48173
Change-Id: Ia58cab834e87842927a2a13d153ee32473f74086
2013-07-26 05:15:20 +00:00
Translation updater bot 9824143a82 Localisation updates from http://translatewiki.net.
Change-Id: I7cd3d18df96652eb43b9e3ad61c848e5565cceaf
2013-07-25 19:30:50 +00:00
Mark A. Hershberger e08b2a4524 Update ignores for some emacs tmp files
Change-Id: I7ea67b68e701f6b9ef6685d10988af347798cb67
2013-07-25 13:11:50 -04:00
jenkins-bot 3e2972394f Merge "Improve disable_functions handling in LuaStandalone" 2013-07-24 20:16:17 +00:00
Translation updater bot 53a3a78fb8 Localisation updates from http://translatewiki.net.
Change-Id: Ie77924787346f86d14f394c89a6f37dccf1f3e48
2013-07-24 19:55:49 +00:00
Brad Jorsch c7246a1c42 Improve disable_functions handling in LuaStandalone
If the user is on a webhost that has proc_open listed in PHP's
disable_functions directive, we should give a better error message.
Until we no longer support PHP below 5.4, we should do the same for
safe_mode. And since we're doing that, we may as well report any other
warnings if proc_open fails, too.

In addition, this cleans up error handling in
Scribunto_LuaEngine::load() so it doesn't pretend the interpreter is
loaded if getInterpreter() throws an exception. Otherwise other code
winds up with PHP fatal errors trying to access a null value.

Bug: 50706
Change-Id: I2887b722e089fd7a526aa7dcab9c80deb343d8ac
2013-07-24 15:01:36 -04:00
Translation updater bot afd13e83cd Localisation updates from http://translatewiki.net.
Change-Id: I45a742f47cf1d8ed3b5eb4733eff21e1539dca8f
2013-07-23 18:42:24 +00:00
Translation updater bot a017c47729 Localisation updates from http://translatewiki.net.
Change-Id: Iec4257e845d0885e31bbe79901124dc9aaf144d0
2013-07-15 19:29:27 +00:00
jenkins-bot b8e9e3f578 Merge "Add namespace names in Chechen language (ce)" 2013-07-14 23:51:42 +00:00
This, that and the other f4709e48f1 Add namespace names in Chechen language (ce)
Bug: 51206
Change-Id: I279325b7cda0f93c2422a9307787cddd4f5763c7
2013-07-14 23:49:38 +00:00
Translation updater bot 8f7fd19da2 Localisation updates from http://translatewiki.net.
Change-Id: Ie213a231ed96ac00321ebd6685d736f02e9f0ba0
2013-07-14 19:18:03 +00:00
Translation updater bot 6f81f87c18 Localisation updates from http://translatewiki.net.
Change-Id: I155e8026bfff9da279c25149258d5c26c0edda9a
2013-07-11 19:14:35 +00:00
jenkins-bot 635bae4786 Merge "Fix mw.ustring edge cases" 2013-07-11 18:11:51 +00:00
jenkins-bot 0f45f9e5cb Merge "Make lang:parseFormattedNumber more like tonumber" 2013-07-08 21:15:25 +00:00
Brad Jorsch cfdd099ca8 Fix fatal in frame:callParserFunction
If the parser function returns 'isChildObj', we need to create a child
frame to expand the wikitext returned by the parser function. And when
we pass the arguments to the new frame, we need to pass them through the
preprocessor's newPartNodeArray() first.

Bug: 50863
Change-Id: Ieb7cc7007288de1f7d2cd2458f068affe695e8af
2013-07-07 07:43:31 -04:00
Brad Jorsch 25cbfd776d Make lang:parseFormattedNumber more like tonumber
Users seem to expect that mw.language's parseFormattedNumber will act
like tonumber when given nil or other non-string values, returning nil
instead of raising an error. There's no reason not to, so we may as
well.

Change-Id: Ie0ff19efc84ca738e115bbd524bfd92fccf26127
2013-07-03 16:06:32 +00:00
Brad Jorsch d8314539da Fix mw.ustring edge cases
A few edge cases were being incorrectly handled:
* mw.ustring.sub( 'abc', 1, 0 ) returned 'a', not ''.
* mw.ustring.codepoint( 'abc', 1, 0 ) returned 97, not no results.
* mw.ustring.codepoint( 'abc', 4, 4 ) returned 99, not no results.
* mw.ustring.gcodepoint had the same issues as mw.ustring.codepoint.

Change-Id: Ib8c0ef5a8073106eb7d90d0aa0513be4525dca08
2013-07-03 11:49:52 -04:00
Brad Jorsch ad3e5a7c48 Fix LuaSandbox mw.ustring.byteoffset with negative 'i'
Negative values for 'i' in mw.ustring.byteoffset are supposed to count
from the end of the string. But in LuaSandbox, it was actually counting
from two bytes before the end of the string due to a typo.

Fix that, and add some tests for it.

Bug: 50176
Change-Id: Iceee1022a55abd7a08df1ea7843e1277eb02798b
2013-06-25 10:06:01 -04:00
Translation updater bot 9d187bf301 Localisation updates from http://translatewiki.net.
Change-Id: I2873c7b3be27ecc3e277150a767d82e56a21a853
2013-06-24 19:56:27 +00:00
Translation updater bot ac968ab67f Localisation updates from http://translatewiki.net.
Change-Id: I5e195b4d876b58cfefcc740f1f00c3364ab03858
2013-06-15 21:12:15 +00:00
Translation updater bot 7a664889d2 Localisation updates from http://translatewiki.net.
Change-Id: I4f9467e5dca9de3eb5f88b4e6eb5b59194501bcc
2013-06-14 21:52:59 +00:00
Brad Jorsch e12d743986 Handle bogus entries in MediaWiki:Scribunto-doc-page-name
If someone puts something broken in MediaWiki:Scribunto-doc-page-name,
it may not be possible to determine which module the page is a doc page
for. In that case, just pretend it's not a doc page.

Bug: 49322
Change-Id: Ia4421576b372e188cf7e3dfe2c0b8ce213d026d4
2013-06-07 18:21:31 -04:00
Translation updater bot 6081c4fd30 Localisation updates from http://translatewiki.net.
Change-Id: I2e8b232d72eacf4b04a7848059906541f2effc7e
2013-06-04 09:31:57 +00:00
Translation updater bot 593d7e5f59 Localisation updates from http://translatewiki.net.
Change-Id: I8458d0454cab9ba74858fde2cd57ec6156208ea4
2013-06-03 19:00:24 +00:00
Translation updater bot f015053ae9 Localisation updates from http://translatewiki.net.
Change-Id: Ie4208b29b51fba9a541bd1fae254cd9a0983e24e
2013-06-03 11:54:09 +00:00
Liangent 1050d29845 Modules should be in English (while docs are not)
Change-Id: I15c10379ab2282a508322df3914d82e1fc463a22
2013-05-29 15:08:31 +00:00
Translation updater bot 904650875c Localisation updates from http://translatewiki.net.
Change-Id: I68f12ab624e905f229078b349094c736842d89b1
2013-05-29 08:40:57 +00:00
Translation updater bot 45fb5f2456 Localisation updates from http://translatewiki.net.
Change-Id: Iac612a33013f5777dfe12f7d515150fc44b8312a
2013-05-28 06:46:47 +00:00