Commit graph

2282 commits

Author SHA1 Message Date
Translation updater bot f048ea613c Localisation updates from http://translatewiki.net.
Change-Id: I8f57e162e4bebf653e9e0768fea882f5e6bd03af
2013-08-04 18:56:09 +00:00
Translation updater bot b8d1fc39ef Localisation updates from http://translatewiki.net.
Change-Id: Iaee862f505135489fb6e8d48ca97f3afa4104460
2013-08-03 19:45:22 +00:00
Translation updater bot 877de81d51 Localisation updates from http://translatewiki.net.
Change-Id: Icaf07b52be9ce3d407c3565a265442757690e538
2013-08-02 21:38:41 +00:00
jenkins-bot 18663c27eb Merge "Use ParserOptions language instead of RequestContext language" 2013-08-02 19:33:21 +00:00
MatmaRex 6281fe626f Bail when JSON length exceeds database limits
This might not be necessary on non-MySQL databases, but I'm sure that
at least their limits aren't lower than MySQL's, so let's stay on the
safe side.

Bug: 51740
Change-Id: I9c7115a951f126844bc70755bff12e8cd5fc2be1
2013-08-01 23:39:47 +02:00
Timo Tijhof 088d67b61f Use ParserOptions language instead of RequestContext language
The context user language is correctly set to that of the user
who is saving the page.

Parser options are set to the default language during saving and
only changed to the user language when viewing the page with
a uselang that is not the default wiki language.

As a result we were saving the user language (e.g. French) on
en.wikipedia.org as the canonical version on-save and only changing
it to the correct language for non-English viewers.

To test:
* Wiki set to 'en', user preference language to 'nl'
* Save a page with templatedata
* View it logged-out without a uselang query

Was 'nl', is now 'en'.

Bug: 52419
Change-Id: Ic8b5b63450c9f80b85a95d16cc81ce62fc96b77f
2013-08-01 23:18:00 +02:00
Timo Tijhof 23c984425c TemplateDataBlob: Use "new stdClass()" instead of "(object) array()"
Change-Id: I374e153c7e9e8451e1399537d0206bdec52b135c
2013-07-31 23:56:26 +00:00
Translation updater bot 051aefe194 Localisation updates from http://translatewiki.net.
Change-Id: I22b3f6950eefa8b2e41244282611a642835ab482
2013-07-31 20:00:21 +00:00
TheDJ 454fb57fdd Merge "ApiTemplateData: Fixed a typo in error message" 2013-07-29 21:46:22 +00:00
Translation updater bot f4974ff1ed Localisation updates from http://translatewiki.net.
Change-Id: I3ad910ec679118f2ef5d91e8c63d6f8a9ffd6ed8
2013-07-24 19:56:48 +00:00
Translation updater bot f28c181499 Localisation updates from http://translatewiki.net.
Change-Id: If42359aa23a300d4be79cdceef3b233b5ffb2955
2013-07-23 18:43:53 +00:00
MatmaRex 6887e01e6e ApiTemplateData: Fixed a typo in error message
Change-Id: Ib273c89dd5981e6ac613ed3901ec91b19ad767be
2013-07-23 16:26:58 +02:00
aude f41e9d57cf Fix api help url
Change-Id: I49da3832e4905e659fd3d4f33b5470e48a3ccab6
2013-07-15 00:15:04 +00:00
Translation updater bot 831c0401fd Localisation updates from http://translatewiki.net.
Change-Id: I7345723476ac5dec39156b81eb1ea2914713980e
2013-07-14 19:19:14 +00:00
jenkins-bot a7887c43d4 Merge "Add specialized short-form string/line type" 2013-07-12 17:35:25 +00:00
Mark Holmquist 53e48a98d5 Add specialized short-form string/line type
This is to help differentiate between <input type="text" /> and
<textarea> fields. We need this for UploadWizard in particular because
we intend to build a form for the Information template on Commons, and
it has both small fields (for which we'll use <input>) and big ones
like description (for which we need <textarea>).

Change-Id: Ib9b381816d18f2723a9f715c54f6a64ff4b69847
2013-07-11 17:04:42 -07:00
Translation updater bot 06ec95de0f Localisation updates from http://translatewiki.net.
Change-Id: Ia053078cd97daf2069466b28ec7060ade6bf78ff
2013-07-07 19:45:47 +00:00
Translation updater bot 3a549c215a Localisation updates from http://translatewiki.net.
Change-Id: I25fc976c589b1c3cb7ea5c43f6ed3b8eb3af889e
2013-07-06 19:04:02 +00:00
Translation updater bot 913460f0e2 Localisation updates from http://translatewiki.net.
Change-Id: Idb0f3d62b8208585c8736bf1c605f164fd26ee81
2013-07-01 20:00:02 +00:00
Translation updater bot bee15b9939 Localisation updates from http://translatewiki.net.
Change-Id: I1118a1372ff4d08fcb17ef3e4239074cd9dce579
2013-06-28 13:58:00 +00:00
Translation updater bot 959034d021 Localisation updates from http://translatewiki.net.
Change-Id: I99eac12dc6f09deab0b37cce69470b11241f35a9
2013-06-27 19:55:56 +00:00
Translation updater bot 0c5eeafc1a Localisation updates from http://translatewiki.net.
Change-Id: Id929486fba172e419b6ad2ab6595115061fbb175
2013-06-25 19:58:17 +00:00
Translation updater bot 393f138434 Localisation updates from http://translatewiki.net.
Change-Id: Ia8adc7edd2128fbbe5316b27ec26f30d901f4974
2013-06-20 19:00:02 +00:00
Translation updater bot a66c67181f Localisation updates from http://translatewiki.net.
Change-Id: If50900abf7925388542a4910b487104d9b104feb
2013-06-12 19:58:44 +00:00
Translation updater bot faea734d18 Localisation updates from http://translatewiki.net.
Change-Id: Id54246273725bbc4fa323c9f469a41e18e2b057e
2013-06-11 20:56:29 +00:00
jenkins-bot 45055e43ba Merge "spec: Remove remnant mention of InterfaceText allowing null" 2013-06-11 01:15:46 +00:00
Timo Tijhof a70e046fc5 spec: Remove remnant mention of InterfaceText allowing null
Follows-up 2c89726 which removed support for null values
in InterfaceText. The uses of InterfaceText that allow null
says so explicitly in their signature (e.g. Root.description
can be InterfaceText or null, whereas Set.label must be
InterfaceText and never null).

Change-Id: Ied1dbadd6b65d8b21244617d31a9fdd64edf8e2a
2013-06-11 02:12:48 +02:00
Translation updater bot 0556aa6cbe Localisation updates from http://translatewiki.net.
Change-Id: I58803931e0026d9ba9303398627f49e1992ea755
2013-06-10 07:30:45 +00:00
Translation updater bot a2c0ec0228 Localisation updates from http://translatewiki.net.
Change-Id: Ie2c619dfb328350ad3a66e22781de9de69225f6b
2013-06-04 09:32:08 +00:00
Translation updater bot 43a8b551bd Localisation updates from http://translatewiki.net.
Change-Id: Ibecb438a12e44f9ba50a4b9ae611588373754d1c
2013-06-03 19:06:45 +00:00
Translation updater bot bf8c67652a Localisation updates from http://translatewiki.net.
Change-Id: If45ce281b64ad19cb48aa85fa3be02b8aa39f770
2013-06-03 11:56:13 +00:00
Trevor Parscal 0eba4ae7b3 ApiTemplateData: Expose root description property
Change-Id: I3727ea9e8b4f7c45b08690dcf610527f1df73022
2013-05-29 10:38:20 +00:00
Translation updater bot 040b967800 Localisation updates from http://translatewiki.net.
Change-Id: I5fb67249e56a43270a571c3ef6c49dfcb6aba116
2013-05-29 08:41:31 +00:00
Translation updater bot cfa4f51c26 Localisation updates from http://translatewiki.net.
Change-Id: I05ffd7e6fe818f0c6acb22ff429c815d6ea5c487
2013-05-24 08:38:17 +00:00
Translation updater bot 0efa7df7a5 Localisation updates from http://translatewiki.net.
Change-Id: I3fb27843c118201eb81e81ef1ebe266863d13e48
2013-05-21 05:58:59 +00:00
Translation updater bot 1adb71a39a Localisation updates from http://translatewiki.net.
Change-Id: Ia95c42eed593700ffce7efb8b24d5a141bdeecbe
2013-05-16 20:18:33 +00:00
Timo Tijhof 70ab71d6a3 phpcs: Resolve style violations
Change-Id: Ie5d4d84b8d7b6bc88e7a5a1559579e504dd1bd20
2013-05-16 15:31:25 +00:00
Timo Tijhof 708bbad12d Implement Sets
Change-Id: I93a0ba7287fec6e5566994d03dff1d8eaeeb8430
2013-05-16 01:35:31 +02:00
Timo Tijhof 1a38b42241 tests: Reformat tests, evaluate status in addition to I/O
Previously we only compared output, we now evaluate
status as well.

For example test {} => {} was misleading since the reason
it roundtripped was because it is *invalid* and we replace
invalid blobs with an empty object in blob storage.

But in the API this'll never get used because getStatus
will have a fatal error in it. Which overrides the data.
The tests were previously looking in the data whilst ignoring
the return status.

Change-Id: I9809f126c1615c9bc9c28ce2d8bb7953058cbf6e
2013-05-16 01:25:09 +02:00
Timo Tijhof 2c89726e6e spec: Update specification for InterfaceText structure
Since we now have an occurance of InterfaceText that isn't
optional (namely Set#label, which must not be null) move the
"null" value type to all other uses of InterfaceText instead
of in InterfaceText itself.

Change-Id: I92786492a37d907aad446655704ea1b52938ab21
2013-05-15 23:38:37 +02:00
Timo Tijhof 0878be5ad9 spec: Update specification for Set structure
* Inside a Set object, label is no longer optional
* The "sets" container (Root.sets) will be an array instead
  of an object. They don't need to have an internal key.
  Contrary to Root.params where the key relates to the
  parameter key in wikitext.

Change-Id: Iede29d25cd6ecbcf43970e1e45e60e5aac206a95
2013-05-15 23:36:39 +02:00
Translation updater bot 6116171d69 Localisation updates from http://translatewiki.net.
Change-Id: I388324d9186a16c6688ba2fe9db28a94e1d2354a
2013-05-15 21:10:06 +00:00
Translation updater bot 53eed0e687 Localisation updates from http://translatewiki.net.
Change-Id: I79bcd30791c285a2510f1026148001e7aefea0cb
2013-05-13 19:52:42 +00:00
Translation updater bot a4ae8d91bb Localisation updates from http://translatewiki.net.
Change-Id: I69eca3c77b4aaceba5ce0d7b474f21a5ad4e6ec3
2013-05-11 19:41:50 +00:00
Translation updater bot 09a84e1d9b Localisation updates from http://translatewiki.net.
Change-Id: Id35816afc9df8471edbf934b16b07be346779770
2013-05-10 19:56:18 +00:00
Timo Tijhof 059c5b18f1 TemplateDataBlob: Improve error handling
For invalid keys, pass property path, not just the latest
child.

Changes error:
 - Invalid value for "typo"
 + Invalid value for "params.date.typo"

Also cleaned up the concatenation logic for the others to
be more readable (PHP dots vs. string dots):
 - 'params.' . $paramName . '.key'
 + "params.{$paramName}.key"

Change-Id: I666e0b22f4b7bacc5b89b0761c74138732f94d73
2013-05-09 07:12:05 +00:00
Timo Tijhof 5e50116d6d TemplateDataBlob: Implement 'type' and 'label'
InterfaceText now defaults to null instead of {en:""} which
was awkward to deal with in the frontend.

As specified:
- label is InterfaceText
- type is a string and must be a one of the recognized types

Updated example for the hypothetical variant of Template:Unsigned
and removed other no longer needed example.

HTML output has been revised per conversation with Trevor,
James and Timo:
- Not sortable.
- Add label to html output.
- Aliases in the main parameter column (one per line),
  but muted in styling.
- Add type to html output.

The css module styles content from the server, not content
generated by javascript. Moved module to position => top to
fix flash of unstyled content.

Change-Id: I16d3f9e460c5513935b9b55fe4cec0092b38e6c2
2013-05-09 02:49:56 +00:00
Translation updater bot e3272a50a7 Localisation updates from http://translatewiki.net.
Change-Id: If380597afc6d026489c13b6ecaf3ea1e155c57e4
2013-05-05 21:10:47 +00:00
Trevor Parscal ff5591db45 Merge "spec: Update 'type' documentation following 2013-04-30 discussion" 2013-05-02 20:56:46 +00:00
Trevor Parscal f1512577b2 Merge "TemplateDataBlob: Don't add class "sortable" to HTML rendering" 2013-05-02 20:56:33 +00:00