Commit graph

15 commits

Author SHA1 Message Date
Rafid Aslam f447357856 Move all apihelp translatable messages to separate files
Should be merged along with
I7d78958232089a9c5f4fa340aa6e1b2bf8e2c931

Bug: T189982
Change-Id: If175ec538827056d0ab9a3bdda6370e0fca6508d
2018-11-22 13:28:11 +00:00
Kunal Mehta f49ad9081c Remove some PHP 5.3 compat code
Change-Id: I433ab9754606e2cbbaef534a1a5b70bad9b9387c
2017-08-22 22:39:15 -07:00
Marius Hoch b65f63bbf5 Mention mw.logObject in the debug console intro
Apparently many users are not aware of this.

It has been introduced in d9ba200571 way back in 2013.

Change-Id: I1ff005e8889a545b6f11e3a6e3bf418b7826f926
2017-08-09 15:36:29 -04:00
Brad Jorsch d913742e1b API: Split description messages into summary + additional text
See MediaWiki core patch I778bab2b

Change-Id: I78304ecfb4edf4e7c2ac4c0eb6fecfd1c4c66256
2017-06-13 13:27:50 -04:00
Base 212325d8d3 Adding i18n for the Module tab
Adding i18n for nstab-module (tab) and tooltip-ca-nstab-module (tab's hovertext) messages

Change-Id: I8263b632f54b5caa22d412cde397a1d8dd96b2fb
2016-12-23 19:56:55 +00:00
Purodha 50cefd0a1a Scribunto API help text clarified
See
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Apihelp-scribunto-console-param-title/en

Change-Id: Ia9da7271800325977fc564a256ad191c34f5502c
2015-03-24 08:22:34 +00:00
Brad Jorsch 9443fda132 Add i18n for API module help and mark ApiScribuntoConsole as internal
MediaWiki core change I04b1a384 added support for i18n of API module
help. This takes advantage of that while still maintaining backwards
compatibility with earlier versions of MediaWiki.

Once support for MediaWiki before 1.25 is dropped, the methods marked
deprecated in this patch may be removed.

Change-Id: I67395aff48185f3e09da31b51a08aa2541fe6a17
2014-11-03 21:10:19 +00:00
Jackmcbarn 9b0060c89a Remove "Allow saving code with errors"
This was never really a good idea. If you really want to save incomplete
code, you can put it all in a block comment. Since some modules may still
have errors from before this change, the tracking category for them has
not been removed.

Change-Id: Icb3da00a86b9773287dcd0c9277ad61446ec07ce
2014-09-30 04:05:12 +00: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
Brad Jorsch 410229c312 Expose mw.log data on preview
People have been complaining that they can't find the log data anywhere.
The new parser limit report seems a good place to show this information.

Change-Id: If2abf27f7779d92ff7c7a1f32b2a54a5de521678
2014-07-07 16:14:30 -04:00
Brad Jorsch ebc737db91 Fix whitespace in i18n/en.json
Change-Id: I6f250deb1873d0b805cf941b9d67c9850fd6eb9c
2014-07-01 11:43:26 -04:00
Jackmcbarn 1201618b7d Keep modules' export tables inside Lua
When tables are passed from Lua to PHP, their metatables are lost. Because
of this, they need to be kept inside of Lua to allow the __index
metamethod to return a method to be called by #invoke.

Bug: 64141
Change-Id: I0840bc12b25dee72828ec97d2b205812e4929f2b
2014-05-26 20:01:18 -04: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
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
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