Commit graph

1766 commits

Author SHA1 Message Date
Martin Urbanec b65a1511f0 Localize Gadgets to Shan
Bug: T206918
Change-Id: I843a14e65316d266f8c94c8305b9c40439ab1a9b
2018-10-14 20:12:44 +02:00
libraryupgrader 5f5130348f build: Updating npm dependencies for security issues
* Updated grunt to 1.0.3, addressing:
  * https://npmjs.com/advisories/577
  * CVE-2018-3721

Change-Id: I35cf15d7a44225f4d8bc4c03c3be900c6746a47f
2018-10-11 07:56:27 +00:00
Translation updater bot d890d6a4b1 Localisation updates from https://translatewiki.net.
Change-Id: I9df27d26fbbc20ba134f982e3ed04f62ac25dc75
2018-10-05 22:59:08 +02:00
Aaron Schulz 93137ec581 Clean up gadget definition key code
Change-Id: Ic3116de9f5b76375c908f540a29945203f14d4c5
2018-10-05 03:29:29 -07:00
Translation updater bot fdc4514af4 Localisation updates from https://translatewiki.net.
Change-Id: I104e73d859a168345c71dae5dfb664488bc82d09
2018-10-03 18:53:18 +02:00
Umherirrender c8b50c30ee Fix caller name in GadgetDefinitionNamespaceRepo::getGadgetIds
Seeing {closure} in the logs as caller is not helpful

Change-Id: I1bfefd86aa0929ddafff3ccbdf50730a22fcdcb4
2018-09-30 13:47:56 +02:00
jenkins-bot 1facd4e4da Merge "SpecialGadgets: Restore line breaks between actions and uses" 2018-09-26 18:12:00 +00:00
Translation updater bot ad10b0aec8 Localisation updates from https://translatewiki.net.
Change-Id: Ida4cb1be338182a5dc1933fa43c49b545e4193e4
2018-09-26 13:45:54 +02:00
Timo Tijhof 848775d925 SpecialGadgets: Restore line breaks between actions and uses
Follows-up f3da602. I accidentally removed the first of the
line breaks.

Bug: T204616
Change-Id: I53b43acb5c0d43443b2f62bd335fc013d2e23539
2018-09-26 03:46:10 +01:00
Timo Tijhof f3da602058 SpecialGadgets: Omit blank space due to <br> between <ul> and <p>
Due to some of the portions of the gadget list items being optional
it's not consistent whether or not they should be separated by
a line break.

When two pieces of text follow each other, there should be a line
break in-between.

When a piece of text is output afte a list, however, there is no
need for a line break as anything after a list would already
become its own line. Printing one anyway causes a blank space
to show up, which visually causes it to appear related to the
next gadget.

Fix by setting a boolean after each portion to indicate whether
or not it should be followed by a line break.

Also improve the code a bit with comments and use Html instead
of Xml.

Bug: T204616
Change-Id: If65e170746898999dd8f5351004eeaf49b340ab2
2018-09-17 23:33:35 +01:00
Timo Tijhof e369419bdd SpecialGadgets: List right names instead of descriptions
The lengthy and localised descriptions make it hard to scan and
identify the actual rights themselves. They are meant as descriptions
to explain what a right is, not to identify the right itself.

It should probably be more similar to the list of checkboxes
on Special:UserRights. For now, kept the descriptions as tooltips,
but could also remove them entirely.

Change-Id: I29f68ffd5a8d002b65384f3762fb9e5631c13def
2018-09-17 23:17:44 +01:00
Reedy b2f09f0e9f Remove php entry point
Bug: T140007
Change-Id: Ia0a55bbbfd3c91c7b48c0c516a9745aeb70e6a35
2018-09-13 00:02:31 +01:00
libraryupgrader 1141461156 build: Updating mediawiki/phan-taint-check-plugin to 1.5.0
Change-Id: I05f12d773fef7ca66ea9e3679344338b5f062cb5
2018-09-08 01:38:52 +00:00
Bartosz Dziewoński 52d57c6597 Avoid 'rawrow' for HTMLForm 'info' fields
The wrapper tags that we have to create when using the 'rawrow' option
would have to be different for OOUI and non-OOUI preferences forms,
making it impossible to support both at the same time.

We used it in order to generate `<td colspan=2>...</td>` rather than
`<td></td><td>...</td>`, and make the description span both the label
and the input columns. However, this is not necessary, because the
label column is entirely hidden on this page of preferences, as all of
the preferences have no labels.

Bug: T203202
Change-Id: Ib9510a8bfb2430fdda3988d88628c9f0c509c6d0
2018-09-03 18:19:34 +02:00
libraryupgrader b60ab7ae58 build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
Change-Id: I770698b81a862467e3a2de0c7d912e2ff8d62642
2018-09-03 02:58:58 +00:00
Translation updater bot f063a8a4b1 Localisation updates from https://translatewiki.net.
Change-Id: If97b7f9a48c1487d73071293040be444e134f696
2018-09-01 22:33:34 +02:00
libraryupgrader 9cdeff59bd build: Updating mediawiki/phan-taint-check-plugin to 1.4.0
Change-Id: I227bee841a8d9bdbe2fa7579bf4e0607b3340e51
2018-09-01 09:03:47 +00:00
jenkins-bot d34e92663f Merge "Mark MediaWiki:Gadgets-definition as a raw HTML message" 2018-08-30 02:54:10 +00:00
Translation updater bot e08629dc04 Localisation updates from https://translatewiki.net.
Change-Id: I164381a9bc2e980bcfc5fe30131ab927b4381412
2018-08-27 22:16:53 +02:00
James D. Forrester ee4973ebfa Mark MediaWiki:Gadgets-definition as a raw HTML message
Bug: T200997
Depends-On: Ib16db04e499ad28216ee08b8cccccf3f141e2bad
Change-Id: I4a01bfb6f89c0f4e137feda7cf5551f970fc6905
2018-08-27 10:38:31 -07:00
Fomafix 7201979d46 Start showing warning for deprecated PHP entry point
Change-Id: Ie2713ad8156eee7c37d32a933214a1b60ded2e18
2018-08-24 18:25:45 +02:00
Translation updater bot 00e5475825 Localisation updates from https://translatewiki.net.
Change-Id: Id767adfb4b3e682d4623c0a73a07ac1d863d4760
2018-08-20 22:20:52 +02:00
Thiemo Kreuz 01a3de04e7 Remove not needed properties from "info" form field
* "raw" and "rawrow" are documented as booleans.
* "raw" does not have any effect if "rawrow" is set.
* "label" does not have any effect if "rawrow" is set.
* "noglobal" refers to GlobalPreferences. It does not have any effect
  because "info" fields are blacklisted anyway.

https://github.com/wikimedia/mediawiki-extensions-GlobalPreferences/blob/master/includes/GlobalPreferencesFactory.php#L75

Also see my longer comment in I1ab2bc6 where I explain all these changes.

Change-Id: I7b4e08b45070ae07935e1cd59091b3d608583e5b
2018-08-20 14:41:35 +00:00
libraryupgrader d1ea87f970 build: Updating mediawiki/phan-taint-check-plugin to 1.3.0
And updating CoC link to use Special:MyLanguage (T202047).

Change-Id: Ie8bc38b665bfa89d2b25f02344dbae3225d6ab26
2018-08-19 12:48:57 +00:00
jenkins-bot a6c181e610 Merge "SpecialGadgetUsage: Add <thead> and <tbody> in the table" 2018-08-15 05:00:22 +00:00
Translation updater bot 60f7b8a2ee Localisation updates from https://translatewiki.net.
Change-Id: Id78223526cc8ab5d69507d8d11a41eeb40e008a3
2018-08-12 22:17:32 +02:00
jenkins-bot 7fddd2bdc7 Merge "Use ContentLanguage service instead of global $wgContLang" 2018-08-12 04:56:26 +00:00
Translation updater bot 33485c69fc Localisation updates from https://translatewiki.net.
Change-Id: If2430f0480c7e2060b94a7b22b3beef4065af19b
2018-08-11 22:17:53 +02:00
Translation updater bot 1df9b3381b Localisation updates from https://translatewiki.net.
Change-Id: Ie53e78edc925df5fa389e4dd7a1a5e37aa6a513c
2018-08-10 22:18:23 +02:00
MarcoAurelio dfb5ac3003 Further localize aliases to Spanish
Change-Id: I3d05a37b9de687219e24a836ff566b4ef4d891d9
2018-08-09 20:47:48 +00:00
Translation updater bot bcbe7b8a83 Localisation updates from https://translatewiki.net.
Change-Id: If4a050129d073fabf3513db6b8bcd77fb866b1f2
2018-08-09 22:23:47 +02:00
Translation updater bot 294123e28e Localisation updates from https://translatewiki.net.
Change-Id: If6bba7783993e539699b1c14769870b477cdba73
2018-08-08 22:13:46 +02:00
jenkins-bot 863170495f Merge "Post Santali (sat) namespace and aliases translations" 2018-08-08 14:41:56 +00:00
Derk-Jan Hartman 9e24c3a551 RL: Simplify userrights check of Gadgets
Change-Id: I135dcfdba72014803b8ce9710680fb5574f76d04
2018-08-08 13:46:24 +00:00
MarcoAurelio f485a25b05 Post Santali (sat) namespace and aliases translations
Authored by: Ramjit Tudu  <https://www.mediawiki.org/wiki/User:Ramjit_Tudu>

Bug: T201298
Change-Id: I32947c141784d21640d859362a21d14dccce7d93
2018-08-06 14:27:09 +00:00
Fomafix b6e7bcf015 Use ContentLanguage service instead of global $wgContLang
This change raises MediaWiki version requirement to 1.32.

Change-Id: Ieffed829bf5a8e1f138fd5f63518e415cebb1287
Depends-On: I193f5b9a95430b0a05573c361715e053e5411e32
2018-08-05 00:52:53 +02:00
jenkins-bot ef4c537d9e Merge "Fix skins option to use currently displayed skin, rather than user preference" 2018-08-03 18:53:39 +00:00
Matt Russell b340532c52 Fix skins option to use currently displayed skin, rather than user preference
The user's preference usually reflects the displayed skin, however this isn't
true if the `useskin` URL query is set, or MobileFrontend is being used.

This fixes gadgets being displayed on the wrong skin when using `useskin`,
and allows mobile-specific gadgets (using `skins=minerva`).

Testing if the gadget is allowed in the current skin is split out from
`isAllowed` to `isSkinSupported` to enable a future patch showing gadgets
on preferences regardless of if they are allowed on the current skin.
Test coverage is added for both functions.

Also fixed another test which wasn't working, presumably because the placeholder
user didn't have the "read" right, so the section wasn't being kept.

Bug: T199478
Change-Id: I21febe92d54d6d0b89925f902581cc2739d824fb
2018-08-01 11:06:17 +10:00
Thiemo Kreuz bede1c0178 More loose @covers annotations in GadgetTest
This is more an integration test than anything. The @covers tags I found
are to strict, in my opinion. These test cases cover more code.

Change-Id: I6cef7ce0c612ac3dfbb855c495032df1fe96f4af
2018-07-31 18:38:26 +02:00
Fomafix 3aeffaa12b SpecialGadgetUsage: Add <thead> and <tbody> in the table
Change-Id: I53f61ce4c7d0721171a455e25b560ce33d4109b9
2018-07-30 21:38:20 +02:00
Fomafix 98ac345756 Use $lang->equals() to compare Language objects
Change-Id: Iae691c2b1e4f34bb0f509a109333277ade900659
2018-07-30 20:01:18 +02:00
Translation updater bot da783907e7 Localisation updates from https://translatewiki.net.
Change-Id: Iff8ba11db604c43a0543d5215ac1eca31985ecc1
2018-07-27 22:17:49 +02:00
libraryupgrader c86d3620e0 build: Updating mediawiki/mediawiki-codesniffer to 21.0.0
The following sniffs now pass and were enabled:
* Squiz.Scope.MemberVarScope.Missing

Change-Id: If3902b0dffb9bb28de7093dd33e92869bead3746
2018-07-27 06:22:12 +00:00
Translation updater bot 64bd946091 Localisation updates from https://translatewiki.net.
Change-Id: I0ffeb094000bc90de4ddf7568d1410aed52ddcd6
2018-07-21 22:11:50 +02:00
Translation updater bot f1942c9c2e Localisation updates from https://translatewiki.net.
Change-Id: I34147903ecc6436fac60778c5c25982a5cd358a6
2018-07-17 22:13:52 +02:00
Translation updater bot cd469368d4 Localisation updates from https://translatewiki.net.
Change-Id: Id6f526a6701e1bc1bcefb3d96d6454be693b7b83
2018-07-14 22:20:32 +02:00
Translation updater bot f268a9faba Localisation updates from https://translatewiki.net.
Change-Id: Ib081f7bb03163ac475e612c5720270e049ee9781
2018-07-10 22:15:59 +02:00
Translation updater bot 79a5388496 Localisation updates from https://translatewiki.net.
Change-Id: Ia857fa2e97ac0b9fed7f8fb22991904481988657
2018-06-30 22:30:34 +02:00
Translation updater bot 01f0e1842f Localisation updates from https://translatewiki.net.
Change-Id: If2e00e53c7d5d00a83c0dae0a3eb6b28a051affe
2018-06-27 22:19:04 +02:00
Translation updater bot 83352ba7c2 Localisation updates from https://translatewiki.net.
Change-Id: I4034d6fe2f1d8c73a6bbac73e7a6b2fd151f50d0
2018-06-16 22:26:08 +02:00