Commit graph

1970 commits

Author SHA1 Message Date
Translation updater bot 8e7906e956 Update i18n shim
A performance issue was fixed in the shim(s) generated by
generateJsonI18n.php, so it needed to be updated.

Change-Id: I041a73f28e425c7b1d064aad7d3d21b12cacdabf
2014-04-22 13:40:40 +00:00
Translation updater bot bb5c01b170 Localisation updates from https://translatewiki.net.
Change-Id: I3b93fdc062392d0a7c272b4c28cc080cbbce52a1
2014-04-21 20:25:18 +00:00
Jackmcbarn b0de034ffe Use correct variable in require()
Use modname instead of the nonexistent name in the error message if
require() is passed the wrong type of parameter.

Change-Id: I2e96d283e34a16e4675141ce8ccddbcc045ef2a1
2014-04-20 18:57:03 -04:00
Translation updater bot 6f3c136e1c Localisation updates from https://translatewiki.net.
Change-Id: I97d53340e5a6fe50f85314531f9f6fa6cceb3ff3
2014-04-20 20:09:54 +00:00
Translation updater bot fca97c94b9 Localisation updates from https://translatewiki.net.
Change-Id: I01872679d5c26bc5643c5408ffb9b31e13d63367
2014-04-18 19:36:51 +00:00
Translation updater bot e24fceb796 Localisation updates from https://translatewiki.net.
Change-Id: I13ff7ef8a982dc120b8a09b3d15d740fc886ccb9
2014-04-17 19:01:15 +00:00
Translation updater bot b6b66fb9b5 Localisation updates from https://translatewiki.net.
Change-Id: Ice2cdcf3d1f743e7eeb2b2c4b8ef8a0d86a18a8b
2014-04-16 15:48:33 +00:00
Translation updater bot 94795c31ff Merge "Localisation updates from https://translatewiki.net." 2014-04-15 20:18:42 +00:00
Translation updater bot e70e28103c Localisation updates from https://translatewiki.net.
Change-Id: I33a203ab35eb70066c4383576a46647237bc2187
2014-04-15 20:10:20 +00:00
jenkins-bot 1504b474e4 Merge "Accept mw.title object as the title argument of frame:expandTemplate()" 2014-04-15 16:11:26 +00:00
Translation updater bot ebe8f7705f Localisation updates from https://translatewiki.net.
Change-Id: I966d03edd1bc31892e736dea3a95a5063ba9df9f
2014-04-14 19:45:47 +00:00
jenkins-bot 16ca37fa6b Merge "Add name to nosuchfunction and nosuchmodule errors" 2014-04-14 14:33:55 +00:00
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