Commit graph

678 commits

Author SHA1 Message Date
Translation updater bot 58fa79b926 Localisation updates from https://translatewiki.net.
Change-Id: I1af181524a246d188b190836b185e5b0b2c92441
2014-09-22 21:48:26 +02:00
jenkins-bot beb6691a24 Merge "Don't escape the delete character" 2014-09-22 13:35:28 +00:00
Jackmcbarn 634f75f53e Don't escape the delete character
Escaping the delete character breaks strip markers, so don't do it.

Bug: 68011
Change-Id: Ica97c898209c59c0084bf700d891b28603f79dd1
2014-09-21 22:59:52 -04:00
Yuri Astrakhan 66ac157c12 Use single quotes for <pre> (easier to read)
Change-Id: Ib666f56471fc8ea7dac36367c962788d1a304100
2014-09-21 22:51:46 -04:00
Translation updater bot a3a31f2fa1 Localisation updates from https://translatewiki.net.
Change-Id: I012a3a0a43b494171f0ff31cd253600e0bd48e7d
2014-09-21 21:59:37 +02:00
Translation updater bot 8feaaacffb Localisation updates from https://translatewiki.net.
Change-Id: I3e0001b83d88f7749d9b9d1edb7fb42bff8256d8
2014-09-20 21:43:12 +02:00
Translation updater bot 8995dd71aa Localisation updates from https://translatewiki.net.
Change-Id: I7433cfef80aa2f5116aebaaebd677777d72e5b0c
2014-09-19 22:06:58 +02:00
Jackmcbarn c5959b56e7 Display the full error message in wikitext
Instead of just displaying "Script error" in wikitext, display the actual
error string. Currently, many users don't see meaningful error messages
generated by modules, and instead just assume that "Script error" means
the module itself has a bug.

Bug: 71038
Change-Id: Ie5358049975352e0fef92088a06b97ad94717000
2014-09-19 12:11:38 +00:00
Translation updater bot 8650134c8c Localisation updates from https://translatewiki.net.
Change-Id: Ib3a622e59691f23a974be8cc3a3540f9b05bece4
2014-09-16 19:46:35 +02:00
Jackmcbarn ab722f3b08 Improve performance of PHP ustring
Cache patterns and the regexes they become, avoid revalidating the same
pattern multiple times, and don't bother checking if something is a string
when we just made it one.

Change-Id: I1a61dd0a36eb449c8acdc8c1be68aae793f172d3
2014-09-16 00:19:39 -04:00
Jackmcbarn b970046f2e Don't output a semicolon at the end of CSS
It's not necessary, it makes the output bigger, and some pages have enough
elements with CSS that it does make an actual difference.

Change-Id: I80d471899c7e04a8a4876c205198a8c0d0b1f281
2014-09-10 19:08:34 -04:00
jenkins-bot 96508a3215 Merge "Output &nbsp; instead of &#nbsp;" 2014-09-08 20:37:05 +00:00
Jackmcbarn f5894a6a9f Output &nbsp; instead of &#nbsp;
Bug: 70475
Change-Id: I19aeceaa1eed17be4a128acd7fb50a9c8b40cf12
2014-09-08 16:06:34 -04:00
jenkins-bot 7808ee7f65 Merge "Only set indexOffset when the function name is indexed" 2014-09-08 16:49:03 +00:00
Jackmcbarn ece8cc5e82 Only set indexOffset when the function name is indexed
If a function name contains an equals sign, it doesn't increase the index,
so indexOffset=1 makes Lua see arguments as starting with 0. This change
fixes that, so that indexOffset is only set to 1 if the function name has
an index.

Change-Id: Ifa2dfad4d2f7228c3fd5721ccfc4c235576b663d
2014-09-06 15:42:13 -04:00
Jackmcbarn 01c9ef5004 Set vary-revision appropriately with getContent()
When calling getContent() on the page currently being viewed, set
vary-revision on the parser output, as is done when a page transcludes
itself.

Change-Id: I908f095935067dc24dd561192b0699c602cb605f
2014-09-05 17:04:46 -04:00
Translation updater bot 5575bd5822 Localisation updates from https://translatewiki.net.
Change-Id: I61eb8097e66b4add0212abc73b921cb14bc5a879
2014-09-05 22:49:11 +02:00
Translation updater bot 48894a161f Localisation updates from https://translatewiki.net.
Change-Id: Ia40a8b8f90cdfe50f1713ec5e19f5c110701f40a
2014-09-04 22:09:11 +02:00
Translation updater bot 5dd7e43cd4 Localisation updates from https://translatewiki.net.
Change-Id: I65708f2ce6affffb7dd251b0769a96b417064c19
2014-09-03 22:23:30 +02:00
Translation updater bot b9386dd43e Localisation updates from https://translatewiki.net.
Change-Id: I01f79b41b7d565e0bda0893f7e8d56d2853c77e6
2014-09-02 22:16:57 +02:00
Translation updater bot 03478f8a79 Localisation updates from https://translatewiki.net.
Change-Id: Ieda7483607e4c2df84035ab7857b2072cd0ddb01
2014-08-30 22:41:31 +02:00
Jackmcbarn ef6e2fa410 Fix __pairs not working in LuaStandalone serialization
In Ia4d58f44, the code enabling __pairs to work no longer ran inside
MWServer.lua, so it hasn't worked right for serialization since then. This
restores the correct behavior.

Change-Id: Iea31ab363957f5f69838d6715527cf822c15fa94
2014-08-27 21:09:05 -04:00
Translation updater bot f0b5717d0c Localisation updates from https://translatewiki.net.
Change-Id: I10a426e0879aacb73ca775c85a84220e3d765361
2014-08-27 21:26:28 +02:00
Translation updater bot ae18ff4b71 Localisation updates from https://translatewiki.net.
Change-Id: Ia338c6a327dd3a11a5bed0ec8727790b2bd99a68
2014-08-20 22:30:55 +02:00
jenkins-bot 13c590892b Merge "Use public instead of var in classes" 2014-08-17 21:25:51 +00:00
addshore e29c8eda63 Use public instead of var in classes
Change-Id: I0c059515cbf0fa8ef3846526a989f1a322fcd8ae
2014-08-17 22:11:26 +01:00
Translation updater bot 6eb8a2f4fe Localisation updates from https://translatewiki.net.
Change-Id: I56b10a51f7223d7c8d99d15dfbd2d9807dc76b83
2014-08-17 23:08:53 +02:00
Jackmcbarn fd9ecb9cbe Expose cascading protection directly to Lua
Add a way to fetch cascading protection information from Lua without
needing to call the CASCADINGSOURCES parser function.

Change-Id: I1b3ac18af11d3066f78d27b31da8d6709a6a2631
2014-08-13 12:34:47 -04:00
Translation updater bot ee1e9b5207 Merge "Localisation updates from https://translatewiki.net." 2014-08-11 21:21:15 +00:00
Translation updater bot 62760fcfba Localisation updates from https://translatewiki.net.
Change-Id: I2f2a020e79590769b6a7d8c454fd17e944f321d6
2014-08-11 23:09:24 +02:00
Jackmcbarn 2295009729 Add 2 tests to unitTestsList
Change-Id: I839515927e66a046d7b3e7b00d7d24efad3eacb5
2014-08-09 21:34:12 -04:00
Brad Jorsch 0367e9bddd Fix deceptively-simple pattern in pure-Lua ustring
The pure-Lua ustring pattern matching functions short-circuit to the
much faster string library when the pattern would match the same against
the raw bytes.

A pattern like "[^a-z]" can match a partial UTF-8 character when applied
bytewise, and so must be detected as unsafe.

Let's also directly test the pure-Lua module, instead of me having to
comment out lines in Scribunto_LuaUstringLibrary::register() whenever I
want to test them.

Change-Id: I91ed3374aadfea379b9db2e13b4248ab20df509e
2014-08-10 01:18:18 +00:00
Translation updater bot 40985a1672 Localisation updates from https://translatewiki.net.
Change-Id: I11744269b591364bae9005acdae6982c2c50b4db
2014-08-09 20:01:48 +02:00
Translation updater bot 9a0d54f188 Localisation updates from https://translatewiki.net.
Change-Id: I7378f7769ace0fe0fb6ee48843def3cec63936a8
2014-08-03 22:11:17 +02:00
Translation updater bot a19e02e708 Localisation updates from https://translatewiki.net.
Change-Id: Icd13be7bd474b6335fc827f0776b629891b2bc1c
2014-07-31 22:17:08 +02:00
Translation updater bot 82ded32899 Localisation updates from https://translatewiki.net.
Change-Id: I8ce19edb53277a92fcb3a87e21815587bd50dfdd
2014-07-29 21:56:35 +02:00
Translation updater bot 1677aec38e Localisation updates from https://translatewiki.net.
Change-Id: I1a021ae3c2d80d9b121008b46dd7fc222fedd5ef
2014-07-27 22:23:06 +02:00
Translation updater bot 46d36fa9e7 Localisation updates from https://translatewiki.net.
Change-Id: I2a3226f1ee04db59a38e62da1567a0ae633a4c4e
2014-07-21 21:41:30 +02:00
Translation updater bot a43536721d Localisation updates from https://translatewiki.net.
Change-Id: I541c910a90969b00b10d9ac7706a4139a519a25f
2014-07-19 22:06:18 +02:00
Translation updater bot d5e3ee8b25 Localisation updates from https://translatewiki.net.
Change-Id: I80b9acfcb6e570818b5e99114b62cbd522bc6e11
2014-07-17 22:59:53 +02:00
Translation updater bot bf06e53085 Localisation updates from https://translatewiki.net.
Change-Id: I56772871ae4f19deec821009eac5fe5caf099101
2014-07-14 22:02:12 +02:00
jenkins-bot 160770ae3e Merge "Simplify mw.text.listToText" 2014-07-14 17:08:29 +00:00
Mr. Stradivarius 1d13fd503a Simplify mw.text.listToText
Simplify the logic in mw.text.listToText so that we don't need to add or
remove anything from the original table we were passed.

Change-Id: I3efcbba1b9adc9a9e32e366e355cb742376cd91b
2014-07-14 19:32:33 +09:00
Translation updater bot 71a7260c77 Localisation updates from https://translatewiki.net.
Change-Id: If158dbcba0abc103d0b706762ff15d581a612210
2014-07-13 22:24:11 +02:00
Translation updater bot 5cb6eb1215 Localisation updates from https://translatewiki.net.
Change-Id: If2be054e4eb1c36bba7922b12b08e01e121e2aff
2014-07-11 21:57:26 +02:00
jenkins-bot ef40ccc8b1 Merge "Fix wrong variable in ustring.lua" 2014-07-11 17:50:03 +00:00
Jackmcbarn ee289c8045 Make the cssEncode pattern simpler
The pattern used by cssEncode is unnecessarily complicated. Simplify it by
using a negating pattern.

Change-Id: I5dc7169efea63473e9e23a1450d2941e434a00d8
2014-07-11 11:40:57 -04:00
Brad Jorsch cb2a331565 Fix wrong variable in ustring.lua
Change-Id: Ibc8056b36d615b57d357987c59219a22e63fdfe8
2014-07-11 11:25:35 -04:00
Translation updater bot bfb0c1c091 Localisation updates from https://translatewiki.net.
Change-Id: Ia57586653adf7ba67f5ddeb96ae9c68b70ded475
2014-07-09 20:35:42 +00:00
jenkins-bot e9b34e7ec8 Merge "Create mw.dumpObject split from mw.logObject" 2014-07-09 15:34:38 +00:00