Commit graph

2008 commits

Author SHA1 Message Date
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
jenkins-bot 80abb3926c Merge "Don't try to inline load ext.scribunto on mobile" 2014-03-26 18:18:07 +00:00
Translation updater bot 5309a02ad8 Localisation updates from https://translatewiki.net.
Change-Id: I59e66fc21595ddaf0029a63aa75d6e64e42a68e3
2014-03-25 20:52:42 +00:00
Translation updater bot b66ae06713 Localisation updates from https://translatewiki.net.
Change-Id: I06b268ee29809098c9f696aa3f8d2772bd9f9d7c
2014-03-24 22:22:54 +00:00
Translation updater bot 741033aba7 Localisation updates from https://translatewiki.net.
Change-Id: I062b102523954a14651bc44f9f3e372dfbfa9f18
2014-03-23 20:31:03 +00:00
Jackmcbarn 55fd5f7bdd Remove limits on mw.language:formatDate()
Remove the 6000 character per page limit of mw.language:formatDate(). It
only exists because ParserFunctions has something like it for performance
reasons. Since Lua has a maximum execution time, there's no reason that it
needs this as well.

Change-Id: I42ae4f51295135007c6e2edc66ec36b7d96e3be3
2014-03-21 19:04:17 -04:00
Marius Hoch 08de37719d Don't try to inline load ext.scribunto on mobile
This module doesn't exist on mobile, so don't try to load it there
(which will produce an exception).

Bug: 59808
Change-Id: Ifad7edb508c1f740a109e8f5c1656e4c7841ab13
2014-03-21 03:00:42 +01:00
Jackmcbarn 50a1f556b7 Remove leftover code for titles in messages
Since the code related to titles in messages was removed from
mw.message.lua, remove it from here as well. Titles have no effect since
only the plain format is available.

Change-Id: I0c96a4e831abe61100b48cb6a898ad8dbffd8a72
2014-03-18 13:52:51 -04:00
Translation updater bot 6ce04f919b Localisation updates from https://translatewiki.net.
Change-Id: I1dbf433a67021ff4aae6c6807dff713c42acfac4
2014-03-13 15:45:41 +00:00
Jackmcbarn 18f177a3a9 Improve invalid title error message
Include the text of the title being complained about when returning an
invalid title error from expandTemplate.

Change-Id: I2261f9574557c3ae514c39cea71f9777f8f9f431
2014-03-11 17:06:23 +00:00
Brad Jorsch 29452c9bef mw.language: Fix exceptions and add tests
Various methods are throwing exceptions when passed invalid language
codes. Those need to be caught.

And we should really add unit tests for the mw.language library, too.
Doing so exposed another bug (in lang:gender), which is also fixed here.

Bug: 62242
Change-Id: Ib7d257cbb1ce179c510273526910d6ac5f3cac5d
2014-03-09 02:56:06 +00:00
Translation updater bot c6e6436665 Localisation updates from https://translatewiki.net.
Change-Id: I0e90a794890f9289f54028a84ecadb86c971ac67
2014-03-07 21:43:23 +00:00
Translation updater bot 9c30bc4c87 Localisation updates from https://translatewiki.net.
Change-Id: I7d7224e8d29c5ba804ec1639d10f51208116e492
2014-03-03 21:07:38 +00:00
Translation updater bot 61453b56a2 Localisation updates from https://translatewiki.net.
Change-Id: I40d900dcbc3e9a39bed06cb641108b86b0d8127f
2014-03-02 20:42:00 +00:00
Translation updater bot 126da47c9b Localisation updates from https://translatewiki.net.
Change-Id: I97c1f0e29a39a318793f24355353a3884b49f484
2014-02-26 22:02:05 +00:00
Brad Jorsch 84d96e843c LuaStandalone: Release functions when no longer referenced
The LuaStandalone interpreter needs to keep a mapping from integers
returned to PHP to the corresponding function. But if it never releases
these functions when PHP no longer has any reference to them, it can
result in Lua running out of memory if a module with a large number of
functions is invoked many times in one page.

The fix here is to track which function ids are referenced from PHP, and
periodically send the list to Lua so it can remove any that are no
longer used from its cache.

This also takes care of another issue where having multiple interpreter
instances and passing function objects from one into another could call
the wrong function in Lua.

Bug: 51886
Change-Id: I4f15841051f7748d1d6df24080949e5cbd88f217
2014-02-25 22:59:05 +00:00
Translation updater bot c987f07e64 Localisation updates from https://translatewiki.net.
Change-Id: Ib2df7b718cc932c46386d1d1d400df96328ce0fa
2014-02-25 20:08:28 +00:00
Tomasz W. Kozlowski 5d7a06a21f Namespace translation for Urdu
Bug: 61905
Change-Id: Ibb25af7137d32682bf2a253694c82d6010683ddb
2014-02-25 14:04:39 +01:00
Translation updater bot 1540f4ae36 Localisation updates from https://translatewiki.net.
Change-Id: Ia33b34d291507447e093a857c8f3e9daaa79503a
2014-02-23 21:43:55 +00:00
Translation updater bot e713983b72 Localisation updates from https://translatewiki.net.
Change-Id: I105dab8606bdc7ac7e32e0e8122f75a7e607b604
2014-02-21 22:28:51 +00:00
Translation updater bot 86e4a01aa3 Localisation updates from https://translatewiki.net.
Change-Id: I9b71ea221a850568be20ba5f354b186d6331c754
2014-02-20 21:05:48 +00:00
Translation updater bot e115fc16c8 Localisation updates from https://translatewiki.net.
Change-Id: I5ccf74459906c1fa12f4b37119dcf3af9470df52
2014-02-19 20:10:21 +00:00
Translation updater bot 17e0846a8c Localisation updates from https://translatewiki.net.
Change-Id: Ie002e541673393d2abfb56255c31bde922147cb1
2014-02-17 20:48:03 +00:00
Translation updater bot ecc4e5d0a9 Localisation updates from https://translatewiki.net.
Change-Id: I67f6f5c4f057260b1d66371e7b4f3fc0a4d717eb
2014-02-16 20:21:29 +00:00
Translation updater bot fc88cc9ffb Localisation updates from https://translatewiki.net.
Change-Id: I34f35595eecdcd033f81dd18349a4f3854d20e42
2014-02-15 21:06:48 +00:00
Translation updater bot 906c147a3b Localisation updates from https://translatewiki.net.
Change-Id: I01732ca4281b04dc1299664e4732cc1028f840e5
2014-02-14 20:21:10 +00:00
Translation updater bot 2384f440b9 Localisation updates from https://translatewiki.net.
Change-Id: I87288f96925e871c874fd481d59c82eb6b669d36
2014-02-13 21:19:12 +00:00
Translation updater bot b59c2322ec Localisation updates from https://translatewiki.net.
Change-Id: Ib4d02296b42543db0a331ceba38180afca926f34
2014-02-12 21:36:04 +00:00
Translation updater bot e77c719367 Localisation updates from https://translatewiki.net.
Change-Id: I59faf1a4a85175da8cb7fde2514a72ead9604b9f
2014-02-10 20:49:50 +00:00
Brad Jorsch b58ee1da94 Use the new limit report hooks
Change Ie065c7b5 added an option to show profiling data at the bottom of
preview pages, and with it new hooks to gather and format this data in a
more structured way than is possible with ParserLimitReport. This change
adds support for the new hooks.

Depends-On: I7799616a602d90e1b8d3f0ece35811ca387bade7
Change-Id: Idffd2d78f9a0217c99c07cbbfc844d6daf0172f7
2014-02-10 04:11:35 +00:00