Commit graph

395 commits

Author SHA1 Message Date
Translation updater bot f6ecc4a5cc Localisation updates from https://translatewiki.net.
Change-Id: I0c98b57a5c69f1f3b006da4b02386f7f99599e27
2015-01-19 22:05:10 +01:00
Translation updater bot d9ecc878e1 Localisation updates from https://translatewiki.net.
Change-Id: I9a68481e63b7464d0716f07c768beb4b8a9d88c4
2015-01-18 22:22:23 +01:00
jenkins-bot b4fb04a142 Merge "Add deprecated switch to the editor" 2015-01-17 03:45:11 +00:00
Ricordisamoa 9639d78e4f Show "no description" in italic grey also for deprecated parameters
Timo Tijhof's initial commit b7080c5f90
inexplicably caused the "mw-templatedata-doc-muted" class to be added
to the description field only when $paramObj->deprecated was false.

Bug: T69794
Change-Id: Iad86f5dbc48046faa09f39c339fce95db3331208
2015-01-16 23:58:05 +01:00
Moriel Schottlender ee56d518fb Add deprecated switch to the editor
The 'deprecated' boolean property was missing from the templatedata
edit dialog.

Change-Id: Ib05e832d8fc91896816b3f8b22f7678dacb245cd
2015-01-16 11:00:27 -08:00
Translation updater bot a0fbe90630 Localisation updates from https://translatewiki.net.
Change-Id: Ia8216989b3586309364e98e06f51ec9121d0ed24
2015-01-15 22:50:54 +01:00
jenkins-bot 6d9b97fdf8 Merge "Trim aliases on save" 2015-01-15 01:47:55 +00:00
Moriel Schottlender 16cca5b1a2 Trim aliases on save
Make sure that aliases get trimmed and are not getting extra spaces
when saving a parameter.
NOTE: To prevent dirty diffs, only parameters that are 'touched'
(viewed or edited directly in the editor) will be trimmed. The editor
will keep all other "wrong" values that have trailing or preceding
whitespaces as-is.

Bug: T85330
Change-Id: I64ecb88a7d736fa36b5e6debf2e94b0d37152020
2015-01-12 15:29:38 -08:00
Translation updater bot e779af4312 Localisation updates from https://translatewiki.net.
Change-Id: Ibc13f6f37ed021d4d8a8b63518ad69a85d0d10c1
2015-01-12 22:39:26 +01:00
Ori Livneh 74b46c14d8 MWException -> Exception
Change-Id: I9ed1d8c331787718ed85ef61fdda4714247fc72b
2015-01-09 19:05:53 -08:00
Translation updater bot b86d1ff5fd Localisation updates from https://translatewiki.net.
Change-Id: Ifa8c23c1327c7936b7805ff793b7491f1b900adb
2015-01-09 22:11:17 +01:00
Translation updater bot 6093a4de5d Localisation updates from https://translatewiki.net.
Change-Id: I7ece7e52c66180483d7d4c983cb1ff51074e461a
2015-01-08 22:47:07 +01:00
Translation updater bot e1344d5335 Localisation updates from https://translatewiki.net.
Change-Id: Ic568a10740dde6593515737cbc4e1442c4459c0d
2015-01-07 22:20:20 +01:00
jenkins-bot 86c8eb925a Merge "Correctly detect if jquery.uls.data is loaded" 2015-01-05 13:30:23 +00:00
Translation updater bot b3ebf0f6b5 Localisation updates from https://translatewiki.net.
Change-Id: I6e5e00bfb0ce650db35b6535ef42115f9c98729a
2015-01-04 21:50:58 +01:00
Marielle Volz f940a0707b Correctly detect if jquery.uls.data is loaded
Fix onResourceLoaderRegisterModules() to
check if the jquery.uls.data module is already
loaded in the ResourceLoader.

Modify comment to indicate that VE also
loads this module.

Bug: T85733
Change-Id: Idd459555312879a85a0a56fba651f609b4f9a52a
2015-01-03 17:36:36 +00:00
Translation updater bot 46d793f0f0 Localisation updates from https://translatewiki.net.
Change-Id: I4907bb2da0ea480de5b82757ae25be6be8e8eab7
2014-12-30 21:13:19 +01:00
Translation updater bot 10e21b3a0c Localisation updates from https://translatewiki.net.
Change-Id: I0e66f06c3ac424475aab7e0becc40251e6c9f549
2014-12-28 21:47:01 +01:00
Translation updater bot efc8d96665 Localisation updates from https://translatewiki.net.
Change-Id: I13cd7e4a962c6447facdeffe14d17a9bfd4f6cfd
2014-12-27 19:54:11 +01:00
Translation updater bot b60c4ecdf1 Localisation updates from https://translatewiki.net.
Change-Id: I42d6fb1e402ebbe897b6c661ddfea3c373bec925
2014-12-26 09:47:51 +01:00
Translation updater bot 1ed9dcfdfa Localisation updates from https://translatewiki.net.
Change-Id: Ib9fce2ab23bcfa526fd886ac131dc034f8257987
2014-12-23 21:43:04 +01:00
jenkins-bot 46cd4bbb84 Merge "Eventify TemplateDataGenerator and use oojs-ui" 2014-12-22 22:30:51 +00:00
Moriel Schottlender df59f0179a Eventify TemplateDataGenerator and use oojs-ui
Change the ui/data behavior to work with oojs and event emitters,
and replace the gui from jquery ui to oojs-ui.

Changes made:
* Recreate the templatedata editor with oojs and ooui.
* Create a standalone templatedata model with internal validation.
* Allow the user to insert language-specific strings:
  * Allow adding arbitrary languages and values
  * Normalize output between language object and 'simple' string
  * Add new language code by searching for its name or code
* Import parameters from template code
  * If the template is in subpage and there is no code in the
    current page, the code will request the contents of the parent
    page.

Change-Id: I985ea03dfee58984ec22ec9a157a00968bfca878
2014-12-22 12:58:37 -05:00
Translation updater bot 509bd5acc4 Localisation updates from https://translatewiki.net.
Change-Id: I42a4fd281e2ea1449aab13f49e20e6dda2a5da73
2014-12-20 22:27:30 +01:00
Translation updater bot 5565c28444 Localisation updates from https://translatewiki.net.
Change-Id: Ic3917fdcde94310f082a943442233cc20bc639dd
2014-12-17 21:51:43 +01:00
Translation updater bot 6ddefe6131 Localisation updates from https://translatewiki.net.
Change-Id: I15adb9f1291a1a49808cde67cdab39df99c93205
2014-12-11 23:56:34 +01:00
Translation updater bot a501de264d Localisation updates from https://translatewiki.net.
Change-Id: I13ff69fbe7c526a868ba1ebd77b97b627f288599
2014-12-07 21:56:16 +01:00
Translation updater bot 14d46da454 Localisation updates from https://translatewiki.net.
Change-Id: I78eabac02da720d880fce4c14d7ddbd34570c006
2014-12-02 22:07:35 +01:00
Translation updater bot a2bf21828b Localisation updates from https://translatewiki.net.
Change-Id: I929e85cf800ae8196618f55b8facda701c965194
2014-11-30 22:15:49 +01:00
Translation updater bot ebdceaedc3 Localisation updates from https://translatewiki.net.
Change-Id: I4a0c4bea12120a25e5d0f21219c6f127a033953e
2014-11-26 22:36:39 +01:00
Moriel Schottlender 4c236dc961 Correct placement of <noinclude> tags
The noinclude tags should appear only if the page is not a subpage
and only around the <templatedata> tags.

Change-Id: I492bb35c8f2c70235f3ceefdddcc4df6548d7469
2014-11-25 17:02:48 +00:00
Translation updater bot 3137eb1fd0 Localisation updates from https://translatewiki.net.
Change-Id: I0d01de1130b68820c1eb9f24b4ac9991f9455062
2014-11-22 22:43:07 +01:00
Translation updater bot 126ee38bdd Localisation updates from https://translatewiki.net.
Change-Id: I395ec743bac13547eddc6e14d338dc59c4c602be
2014-11-21 22:11:50 +01:00
Translation updater bot fae44de1a2 Localisation updates from https://translatewiki.net.
Change-Id: I14cb3531b2113f7d1010124217d35f61c29188da
2014-11-19 22:40:34 +01:00
jenkins-bot 9322c4262d Merge "Implement new "maps" property in Root" 2014-11-19 03:48:41 +00:00
Translation updater bot e4d906a7d8 Localisation updates from https://translatewiki.net.
Change-Id: Id8eb7d9ac8d2d4e585bef211787354104fffc155
2014-11-18 21:35:07 +01:00
Translation updater bot 97ae92c4db Localisation updates from https://translatewiki.net.
Change-Id: Iec81662c5b982759e8490b0daa1d6f9d8ca62d1b
2014-11-17 22:28:51 +01:00
jenkins-bot 83662c8f7e Merge "Add "sortable" class to display table" 2014-11-17 19:09:40 +00:00
Translation updater bot f60a69bdcc Localisation updates from https://translatewiki.net.
Change-Id: I6f0609e69c150a8c5ff842c0490da1c50831922a
2014-11-15 23:17:25 +01:00
glaisher fae0586c00 Add "sortable" class to display table
This will make the display table sortable; table which appears when
<templatedata> tag is used on a page.

Bug: 50435
Change-Id: If72a44eab3229139791ea2d06ef6a74e2ce2e0c9
2014-11-15 22:21:30 +05:00
Translation updater bot a3a3f601f5 Localisation updates from https://translatewiki.net.
Change-Id: Ifdaddd0e1c7186d9acedcb589a5a0323a61d35ad
2014-11-14 22:26:58 +01:00
Translation updater bot 5ed35b5800 Localisation updates from https://translatewiki.net.
Change-Id: I7530824f10800b14fc1b1e3ed8162c81b64f9c1c
2014-11-13 23:11:43 +01:00
Translation updater bot 8490a91df4 Localisation updates from https://translatewiki.net.
Change-Id: I3cd06144dc6597844d009ce410c7525776ecf9f0
2014-11-12 21:54:36 +01:00
Translation updater bot 1e87d3ec20 Localisation updates from https://translatewiki.net.
Change-Id: Ie3299ddd77a4a983f4539e1e3a1a2b4871c4a1cf
2014-11-11 22:14:29 +01:00
Translation updater bot 1d22ab882c Localisation updates from https://translatewiki.net.
Change-Id: Id539cb65b2b8bf0a40999bd35ef82175128e9e53
2014-11-10 22:11:51 +01:00
Translation updater bot 8e02ef66e4 Localisation updates from https://translatewiki.net.
Change-Id: I1084390d69d65d7e092b1e430a0ac61146f1d35a
2014-11-09 21:54:13 +01:00
Translation updater bot 7bfc382f21 Localisation updates from https://translatewiki.net.
Change-Id: I13ac174af25e295d3b4b9c4472d9691ba42854aa
2014-11-08 22:19:36 +01:00
Marielle Volz d6cac31082 Implement new "maps" property in Root
Add "maps" as an allowed root value to template data JSON.

Maps allow applications to map equivalencies between their
application-specific parameters and valid template parameters.

Each Map has arbitrary keys (from the consuming application) that
are mapped to one or more template parameters.

* Added root.maps to TemplateDataBlob
  * Validates that values are strings or arrays
  * Validates that values are valid params
* Added templatedata-invalid-param to i18n/en.json
  * Richer error message for when invalid value is a param
* Fixed existing tests to work with new "maps" property
* Added two new tests for maps
  * Test for invalid value (!string or !array)
  * Test for invalid parameter
* Added specification for root.maps property and Map object

Change-Id: I3bf5e002ad6c1632e02c4c2e393b244c51f77177
2014-11-08 20:29:51 +00:00
Timo Tijhof e03a12b393 test: Apply Sanitizer::decodeCharReferences for clearer tests
These wiktext-isms from the Status object make the tests rather
obfuscated and hard to read/maintain.

Change-Id: I6438c33229ac013489893f8a2241510d9b5a7765
2014-11-08 19:44:56 +00:00
Translation updater bot a1d5bc034d Localisation updates from https://translatewiki.net.
Change-Id: Id2153a475efd483884a7149fbafac631b1d86f1f
2014-11-05 21:48:41 +01:00