Commit graph

2020 commits

Author SHA1 Message Date
Translation updater bot 60ac66a399 Localisation updates from https://translatewiki.net.
Change-Id: Ib299bd3b77a2e2529f6aa9932965b0a124b8a510
2014-01-28 21:23:44 +00:00
Translation updater bot 21b050f1eb Localisation updates from https://translatewiki.net.
Change-Id: Ifc48cfb494d3f1762ace151ac6f271436fd96d6c
2014-01-26 16:26:17 +00:00
Translation updater bot bf790d0288 Localisation updates from https://translatewiki.net.
Change-Id: I4ec58ae31c6f383554eac30218a4cb28aa260747
2014-01-24 20:13:41 +00:00
Translation updater bot f7e13d3e9d Localisation updates from https://translatewiki.net.
Change-Id: Ic91101dfa5b630ff05de3e973fd81deaa89fef60
2014-01-23 20:20:52 +00:00
Translation updater bot aef8dd237e Localisation updates from https://translatewiki.net.
Change-Id: Ia6b429db31784de9452e087329bf2195339e4415
2014-01-21 19:54:09 +00:00
Translation updater bot da9edc88f8 Localisation updates from https://translatewiki.net.
Change-Id: I753d38fdda6ee73c1a0186251072134d4b748c11
2014-01-20 20:27:22 +00:00
Translation updater bot d600e64c04 Localisation updates from https://translatewiki.net.
Change-Id: I8b61ef5e24f67fd81d01bdc35ed3bff476ce22cb
2014-01-19 20:20:22 +00:00
Translation updater bot 28f8ad1880 Localisation updates from https://translatewiki.net.
Change-Id: I17fa4c880cb6eef9d5ad56f6169b8a7502f3e086
2014-01-18 21:16:56 +00:00
Translation updater bot 841060e4a6 Localisation updates from https://translatewiki.net.
Change-Id: I317c378673f3ef72968202ebb397a1796f228948
2014-01-17 20:41:47 +00:00
Timo Tijhof 1d419069d5 api: Pass through $data directly instead of copying by property
* Prevent mistakes such as fixed by Ic5b42c4189.
* Expose the previously-suppressed Root#sets property.

Change-Id: I0d5bf9f7b742db8b49d0af23371389b0a4cdf7a4
2014-01-17 15:53:08 +00:00
Translation updater bot 87af5a1265 Localisation updates from https://translatewiki.net.
Change-Id: I0c8e3bc3ade48ae2da8d105839f6e38cb33c9c0f
2014-01-16 23:09:09 +00:00
Translation updater bot c4bd533a59 Localisation updates from https://translatewiki.net.
Change-Id: Ib24bd0f6b9b81780323f55c23b3effe41b0c2732
2014-01-15 21:04:45 +00:00
jenkins-bot b82082c46c Merge "Implement edit interface for TemplateData documentation" 2014-01-15 02:41:16 +00:00
Moriel Schottlender 8c27921232 Implement edit interface for TemplateData documentation
This adds a TemplateData manager to the edit page in the Template
namespace.

If a <templatedata> tag already exists, the tool will parse it and
display it in a visual interface that the user can then manipulate in
their own language. If there is no <templatedata> tag, the dialog will
appear empty and allow users to add and tweak their desired template
parameter data.

The tool also allows rudimentary parameter import, which picks up the
parameters from a current template into the GUI to make the user's life
easier when producing TemplateData.

The template documentation editor feature is off by default. To enable it
use $wgTemplateDataUseGUI = true in LocalSettings.

Bug: 50436
Change-Id: I863a8199c0b08cc52b320ed00dcba912dd2aeefc
2014-01-14 18:39:20 -08:00
Trevor Parscal 253c11e53f Send paramOrder through the API
Change-Id: Ic5b42c4189868412138680654c499b6c8bc8f47e
2014-01-14 11:49:21 -08:00
Timo Tijhof cc44db625b Add .jshintrc
Change-Id: Ia0df2fa9b2708a7b671052225e8a41094ae19522
2014-01-10 23:26:55 +01:00
Translation updater bot b41c2a54fb Localisation updates from https://translatewiki.net.
Change-Id: I262b79e417757e7d98b7f43a86d273d2827691fb
2014-01-08 20:37:54 +00:00
Translation updater bot 8fb88a3ba1 Localisation updates from https://translatewiki.net.
Change-Id: I99143fd52512d0262b08188eb12b8b356750d2dd
2014-01-03 20:44:24 +00:00
Translation updater bot e80811be47 Localisation updates from https://translatewiki.net.
Change-Id: I314db1b59f57338f1e6a623777a3f419bae281a2
2014-01-01 20:00:04 +00:00
Translation updater bot 7832d3d04a Localisation updates from https://translatewiki.net.
Change-Id: I65732e65259848b37c18a5c0b50bfab3daf33d42
2013-12-30 20:01:17 +00:00
Translation updater bot 27824794e1 Localisation updates from https://translatewiki.net.
Change-Id: I3c83b6154ed4fb71d2852313ed45f3e0650c2638
2013-12-28 19:32:41 +00:00
Translation updater bot 470c020895 Localisation updates from https://translatewiki.net.
Change-Id: Iba334a6cd946191fab544598510b247e0e197a3e
2013-12-27 18:37:15 +00:00
Translation updater bot 97203b309d Localisation updates from https://translatewiki.net.
Change-Id: I97c88bb86bf5079798691184424d41ee621d1142
2013-12-23 20:50:56 +00:00
Translation updater bot 451f841cd5 Localisation updates from https://translatewiki.net.
Change-Id: I4257b20fc943caf0c92c79ca78257dae27e3ecd7
2013-12-15 20:58:54 +00:00
Translation updater bot 4e831ba58d Localisation updates from https://translatewiki.net.
Change-Id: I62a84ec27d6d53b317c0a4fbcdcfd5e614da256b
2013-12-11 20:28:53 +00:00
Timo Tijhof 2890feb325 render: Use 'errorbox' instead of 'error' for on-save parse error
This message is output' within the page. A single line in red text was
easily lost on a longer page. This also makes it consistent with other
errors from mediawiki.

Change-Id: I71b8be492d4f9f2ecdecc66a88e17490fbf62112
2013-12-10 21:46:25 +00:00
Timo Tijhof eb236e81de Fix tests to pass after 58a161f in mediawiki/core
Status::getHtml now wraps the html in <p> tags, unwrapping
them for now, classic parseinline style..

Change-Id: Ic9b651cbd76752346ea7cbf230af49f09ef3ec12
2013-12-10 22:13:10 +01:00
Translation updater bot 4cd9b6e00a Localisation updates from https://translatewiki.net.
Change-Id: Ib9dd2c55fbd304106338943a438ee83a97be4e1c
2013-12-08 20:28:28 +00:00
Translation updater bot abc2762de3 Localisation updates from https://translatewiki.net.
Change-Id: If162ba6f874bf87344e604fd4497eaddb671725e
2013-12-07 01:52:32 +00:00
Siebrand Mazeland c705e026bd Update ternary notation
Change-Id: I04f8a1158b6135e5387244c104ace3518416bd54
2013-12-04 09:47:08 +01:00
Translation updater bot 7c7f8a24a7 Localisation updates from http://translatewiki.net.
Change-Id: Idc2e5be08554a47d960f6c9ce3e8e0530d2e228e
2013-11-18 20:40:06 +00:00
Aaron Schulz 7629dba738 Avoid extra parsing on edit
bug: 57026
Change-Id: I0782ea669b431697d6c76be945c93d3e2f30f3cf
2013-11-15 00:17:03 +00:00
Translation updater bot 99f9641bd7 Localisation updates from http://translatewiki.net.
Change-Id: Ib091fb5fa21176de2b3204f80f050e06c826b621
2013-11-13 20:24:18 +00:00
Translation updater bot 596cbf9c75 Localisation updates from http://translatewiki.net.
Change-Id: Iadb4e8c9f486c453d646d8eb35a3856175cef3b1
2013-11-12 20:32:35 +00:00
Translation updater bot 39f27782a6 Localisation updates from http://translatewiki.net.
Change-Id: I02d421102391cc86d9954a29cf158a86a02fb1ee
2013-11-10 20:29:43 +00:00
Translation updater bot 94f1072cb1 Localisation updates from http://translatewiki.net.
Change-Id: Iea118b18eb1f97cbc9c05890da07e13d5630127a
2013-11-09 19:13:35 +00:00
Timo Tijhof 0a03f37581 Specify "content" and "unbalanced-wikitext" as a valid parameter types
Bug: 51374
Change-Id: I711998193cc542b72213b56046529b53ebb17d73
2013-11-07 19:39:29 +00:00
Timo Tijhof 6cdb47d097 Drop type prefixes because all values are strings in HTML (and wikitext)
Change-Id: I8655393320064dd8d6f8f06abff6d5abc0baa795
2013-11-07 19:39:24 +00:00
Timo Tijhof 50bbd93e6a Fix roundtrip issues (normalised output for API must be valid input)
For example, in case of failure we were defaulting to an empty
object, even though that is invalid input.

Change-Id: I00b4ce26b04ec408b5e86b9a2242cf942300ad41
2013-11-07 19:39:20 +00:00
jenkins-bot 5b9a84e25a Merge "Add Root#paramOrder to spec and implemention thereof" 2013-11-07 19:39:14 +00:00
Timo Tijhof a800a46c7f Add Root#paramOrder to spec and implemention thereof
* Detail the new property in the spec.
* The property is optional (as all new properties have to be
  for backwards compatibility).
* Validate value if present, and for normalisation fill it
  with inferred order from the JSON parser. This means the API
  output will always contain #paramOrder, however the strict
  specification for it is optional and users must still account
  for absence of this property.

Bug: 53608
Change-Id: I7bcd7c9146f5ae75c4bad22b0a9cd4400f196c8c
2013-11-07 20:34:45 +01:00
Translation updater bot 288d7cea95 Localisation updates from http://translatewiki.net.
Change-Id: Id4df9d60a0ad06fe4f623a07e5d06f3193d01b78
2013-11-03 19:58:48 +00:00
Translation updater bot 88547821f6 Localisation updates from http://translatewiki.net.
Change-Id: Ic80fcd03019f474e3e4360dad83882a58a0bd368
2013-11-02 20:03:27 +00:00
Translation updater bot e2d99f03dc Localisation updates from http://translatewiki.net.
Change-Id: Ie99b55d7660b74f4a43718ad3c29d65db003aacf
2013-10-31 20:22:46 +00:00
Translation updater bot bd4a1a74cc Localisation updates from http://translatewiki.net.
Change-Id: I54a63083388a5f936550f9c86c58b90a1414382e
2013-10-30 19:37:01 +00:00
Timo Tijhof 46509ebd2a Require Set#params to be non-empty and improve error
* An empty array for a Set is invalid and the implementation now
  enforces this.
* Add new error message for invalid value. When Sets contain a
  reference to a key that doesn't exist, it should say that that
  reference in the Set is invalid instead of saying that Params
  is invalid for not having it.
  > { params: {}, sets: [ { params: [ "quux" ] } ] }
  - Required property "params.quux" not found.
  + Invalid value for property "sets.0.params[1]".

Also:
* Abstracted handling of $case and the different assertions
  on it in a helper function so that we don't have to repeat
  it everywhere.
* Use the same hack as in other tests to display the status error
  message in the phpunit output (true === isGood ?: getHtml).
  Maybe use '' === getHtml instead, though that is also evil
  since Status fatals if you call getMessage/getHtml for a good
  Status object.

Change-Id: I06a6615f728cd287a4839e09eedc2d0eeb537949
2013-10-30 00:10:38 +00:00
Translation updater bot 2e75f125ba Localisation updates from http://translatewiki.net.
Change-Id: I7ee5e6a523cc7f1783bf42e6f8b4d3dbe03f0bf3
2013-10-25 18:59:36 +00:00
Translation updater bot 26dacfcc70 Localisation updates from http://translatewiki.net.
Change-Id: I5a74b2f691196739a5656060045d600278b61d87
2013-10-24 20:50:37 +00:00
Translation updater bot 4c848ea297 Localisation updates from http://translatewiki.net.
Change-Id: I35cc27931b8fbedad86bd920e903dfce5870c832
2013-10-22 19:21:35 +00:00
Translation updater bot c321aa7ee7 Localisation updates from http://translatewiki.net.
Change-Id: I61ff9acb427bf2cb14b0d294fdefe035cc35df63
2013-10-21 19:40:38 +00:00