Commit graph

495 commits

Author SHA1 Message Date
Roan Kattouw 22aa7a18f4 Work around 1c57794e3 in MW core mangling boolean properties
Bug: T96443
Change-Id: Ib5901791c68f4c761fb4cc25578d6ce6493624d5
(cherry picked from commit 6580dc3e87)
2015-04-21 21:36:53 +00:00
Translation updater bot 6dc5967b6d Localisation updates from https://translatewiki.net.
Change-Id: Ie28ac728d7c697c3eef1eb4f97e137de1ccbfaac
2015-04-07 22:20:13 +02:00
Translation updater bot 85a3409dc0 Localisation updates from https://translatewiki.net.
Change-Id: I7fb1ba53b4155b3991a6ac1be9477e513915c0f3
2015-04-06 21:50:09 +02:00
Translation updater bot 24005eb2e1 Localisation updates from https://translatewiki.net.
Change-Id: I8e20bd07f278562a18daac0361ac3f853ca18176
2015-04-03 21:27:31 +02:00
Translation updater bot 2ce88f9e9c Localisation updates from https://translatewiki.net.
Change-Id: Ic89df8e0c0c14facb661efb2f78d018c95781cd4
2015-04-02 21:26:34 +02:00
Moriel Schottlender ff77f32e38 [BREAKING CHANGE] Change "default" property to InterfaceText
Default should be InterfaceText and support languages.

Bug: T54966
Change-Id: I7be3a8be72df3e5d80300bd72fcd7197e43155aa
2015-04-02 08:53:51 +01:00
Translation updater bot f30157d928 Localisation updates from https://translatewiki.net.
Change-Id: Ic72759f6343152f0cd9a5db14af450d46dc42543
2015-03-31 21:48:35 +02:00
Translation updater bot 9a8f1f6f6e Localisation updates from https://translatewiki.net.
Change-Id: I5edf29965a725cefbc8d3001e171b6363c221efc
2015-03-30 21:49:35 +02:00
Translation updater bot ceae60fdd5 Localisation updates from https://translatewiki.net.
Change-Id: Iec22f782fa9f4d26a4897e2a7c6da9f44352d488
2015-03-29 15:09:18 +02:00
James D. Forrester b8adf5764a build: Update grunt-banana-checker to v0.2.1
Change-Id: I0437598add5ab79760e68f937a9d70e45bfb7233
2015-03-27 16:49:45 -07:00
Purodha 4c8673bbdb TemplateData: add PLURAL to message Templatedata-modal-notice-import-numparams
See
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Templatedata-modal-errormsg-import-paramsalreadyexist/en

Change-Id: Ife5e9d0afd9320271c8921162487f8c0338f24cd
2015-03-26 21:39:29 +00:00
Translation updater bot 12a5a42aee Localisation updates from https://translatewiki.net.
Change-Id: I2fabe5472882ea3ed136bada40ea5bd85e75281e
2015-03-25 22:20:59 +01:00
Translation updater bot ae78d57522 Localisation updates from https://translatewiki.net.
Change-Id: I137073246ed2b39617b649f781fb1427b37d82d8
2015-03-24 22:34:58 +01:00
Purodha 6f9f9bb914 TemplateData: use consistent quotes
See
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Templatedata-exists-on-related-page/en

Change-Id: I3917bb59e481175314f3af4557784c1681e56dca
2015-03-24 08:35:07 +00:00
Translation updater bot 9732909c18 Localisation updates from https://translatewiki.net.
Change-Id: I518ac35d4e780e24a0bd6daae544ac300930047d
2015-03-23 22:08:20 +01:00
Translation updater bot 21292822a3 Localisation updates from https://translatewiki.net.
Change-Id: I7b1f6e634ae4dc773c4958484c416f2f8ab057f9
2015-03-22 21:19:25 +01:00
Translation updater bot 1bfc39162c Localisation updates from https://translatewiki.net.
Change-Id: Ief8fd2d7698b8e2679e372576c44b89c407d168a
2015-03-20 21:37:26 +01:00
Amir E. Aharoni b7d232ca72 Extra credits in en.json and qqq.json
Change-Id: I84a84cc9d00bf5cac6641fb39cfb76cf0d63c80b
2015-03-20 00:00:41 +02:00
Amir E. Aharoni ca53d523ab Remove extra 'or's from an English message
Change-Id: I09e358afbc2dd3bde277425e44e08186fd3f1fa9
2015-03-19 23:57:24 +02:00
Translation updater bot cb268f26e5 Localisation updates from https://translatewiki.net.
Change-Id: Ia0029a3ba09b6164661a35dd0443e7bb91a894eb
2015-03-19 21:16:18 +01:00
Moriel Schottlender 3820295f23 Reorganize api calls and add sourceHandler and error message
Add a sourceHandler that deals with all source-related actions
like fetching template source and validating the existing
TemplateData string.

Also add a MessageDialog warning the user in case the TemplateData
is invalid. In this case, the user will be given the option either
to correct the JSON by hand or to start the editor to replace the
existing TemplateData with a new one.

Bug: T91730
Bug: T91325
Change-Id: I4e6d04f02565a02d8dcf5c70a575ab6433caa27f
2015-03-18 18:21:02 +00:00
Translation updater bot eb4ccbc336 Localisation updates from https://translatewiki.net.
Change-Id: I8b05b2dd54683a6e45fe993ac83a817148a619ef
2015-03-18 16:07:40 +01:00
Translation updater bot 3098d44ba3 Localisation updates from https://translatewiki.net.
Change-Id: I4e098d00a7d1b723989392b398290a9ccac9c247
2015-03-16 22:00:09 +01:00
Kunal Mehta d2343e9569 Use ResourceLoader::isModuleRegistered()
Change-Id: I91319d2d975620b047e7be933aba257f28eb7201
2015-03-15 16:54:16 -07:00
Translation updater bot 4936395dc2 Localisation updates from https://translatewiki.net.
Change-Id: Id7901293823b93337cac1a07f2e3df184288946a
2015-03-15 21:53:34 +01:00
Translation updater bot 1a3d9ddfab Localisation updates from https://translatewiki.net.
Change-Id: I09cbb92e5dc10b5bbfa0ee5c474f967ad166ccf0
2015-03-14 08:35:32 +01:00
jenkins-bot 6cf5c66884 Merge "Prevent a dependent property from updating on infinite loops" 2015-03-12 21:18:26 +00:00
Moriel Schottlender 4141bed38b Prevent a dependent property from updating on infinite loops
A dependent and dependee properties should only update one another
once in the model, and the UI should be responsible for resetting
the input when it is toggled.

Bug: T92558
Change-Id: I944aaf9c44d0f305a34458f0b8009a98c9570661
2015-03-12 14:01:38 -07:00
Translation updater bot 6110ef1b70 Localisation updates from https://translatewiki.net.
Change-Id: I5fc8d4b413e1302b59dffbb177f7e3ad37a99e3b
2015-03-11 22:16:21 +01:00
Moriel Schottlender ffbc8e1520 TDG: Support optional text of 'deprecated' property
The deprecated property allows for either a boolean or text, so we
should allow the user to insert guidance text in case that property
is true. To achieve that, the model also defines 'textValue' for
boolean properties with text representation so an internal property can
be set to hold that value and inputs can be automatically built from the
property structure.

Bug: T90734
Change-Id: Iadc6abdcc0cf2721a311cf43847b306cb269b5e8
2015-03-11 17:08:26 +00:00
Translation updater bot 4b1d244201 Localisation updates from https://translatewiki.net.
Change-Id: I6cc0298deb4774e892a245c0eb3f921ea0d44212
2015-03-10 22:37:06 +01:00
jenkins-bot 772926de0c Merge "Don't flicker "Manage TemplateData" button's disabledness state" 2015-03-10 00:14:33 +00:00
Translation updater bot 7f959308de Localisation updates from https://translatewiki.net.
Change-Id: I81748f2171223a65cc8b06af6207198e65ae8e96
2015-03-08 21:49:27 +01:00
Bartosz Dziewoński a3ddde4a8f Don't flicker "Manage TemplateData" button's disabledness state
The code would call .setDisabled( true ), fire off an API request, and
then always call .setDisabled( false ) when the request finished,
regardless of the response.

Bug: T91324
Change-Id: Iee440a1fca966e0c66669ee5e78b6f5ab8f7f8d6
2015-03-07 20:20:32 +01:00
Timo Tijhof 3ecbaefef1 Document code with JSDuck
Change-Id: Ieb812a2fb85135f6db18a9a02c94efd83695a19e
2015-03-06 17:56:30 -08:00
Kunal Mehta f80be6848f Add composer entry point for phpcs and linting
Bug: T90943
Change-Id: Icb27b60bd0ff883c3b4a1b80bf3cb80117c2bdfe
2015-03-06 10:15:10 -08:00
Translation updater bot 5308e0e924 Localisation updates from https://translatewiki.net.
Change-Id: I91c3401976e601a619855cc6174062c79b292522
2015-03-05 22:28:22 +01:00
Moriel Schottlender aed0e38edf Make elseif into else because it is
Following up on I2bc79421be330, the condition was always true in
case the first one wasn't. This is just a beautification fixup.

Change-Id: I7463207f02de2116b96173d88199d46ce70ca174
2015-03-03 18:30:32 -08:00
Moriel Schottlender 7b741d3af4 Add paramOrder by default to TemplateData blobs
Make sure that paramOrder is initialized as an array even if the
params property of the TemplateData object is empty.

Bug: T91470
Change-Id: I2bc79421be33053e7e21170528fbbd1c01eaf4bb
2015-03-03 18:08:13 -08:00
Moriel Schottlender 3cc6afaa75 Use wikitext instead of page prop when checking for existing TemplateData
On the edit page, we show the user a message if a related page
(parent of /doc page, or vice versa) already has templatedata.

This check was wrongly detecting that the parent page has templatedata
when editing '/doc'. The check shouldn't use the 'templatedata' API
since that also includes transcluded templatedata.

Look in the wikitext content instead.

Change-Id: I9788e2beb0809ac3e676a90cd0dfe519c005afc9
2015-03-02 22:52:48 +00:00
Translation updater bot 08cd710c96 Localisation updates from https://translatewiki.net.
Change-Id: I6c4e27bd5cd488af12baa06fd96a1b9bc0d0f261
2015-03-02 22:12:00 +01:00
jenkins-bot 2538cf6150 Merge "Delete boolean values if they are false" 2015-03-02 03:23:53 +00:00
Translation updater bot 2d12b225ea Localisation updates from https://translatewiki.net.
Change-Id: I51fe4e5ff3aaf4883a5b5bccfb934b528b3d17ae
2015-03-01 22:09:28 +01:00
Translation updater bot 883050edda Localisation updates from https://translatewiki.net.
Change-Id: I9574b4ca0cd07074f02af2178926159db99aa9f8
2015-02-28 22:09:14 +01:00
Translation updater bot b718a3235b Localisation updates from https://translatewiki.net.
Change-Id: I914433f3572738c321f3c1aec6dbf4d04a481c1a
2015-02-27 21:57:53 +01:00
Translation updater bot 6a4abee253 Localisation updates from https://translatewiki.net.
Change-Id: Ib4ffb871ffe8a229c9493b21ceae82a8a1f79883
2015-02-26 21:39:07 +01:00
Moriel Schottlender 9b3cf2b971 Delete boolean values if they are false
For values like 'deprecated', 'suggested' and 'required' make sure
that if they are marked as 'false' they are deleted from the result
string. If the original TemplateData already had either one of
those parameters marked as false don't delete so to avoid dirty
diffs.

Bug: T90283
Change-Id: I34c81d45e3967ce5398691d97d1a15908b8a2e57
2015-02-25 16:26:32 -08:00
Translation updater bot cfcffeead6 Localisation updates from https://translatewiki.net.
Change-Id: I8d7d295c241d6e3afbd032829b2d34b5ca617854
2015-02-25 22:58:13 +01:00
Translation updater bot 4024c8c53a Localisation updates from https://translatewiki.net.
Change-Id: Iaecb6818f6d71f9cd694bfe4074f93f4a5c2bb30
2015-02-24 22:04:07 +01:00
Translation updater bot 3d354342a1 Localisation updates from https://translatewiki.net.
Change-Id: Ia7d4efa3dc4944ad25aa02a8dc4d43859639d49f
2015-02-23 21:59:45 +01:00