Commit graph

15905 commits

Author SHA1 Message Date
Fomafix
512aa4e551 Use PHP 7 '??' operator instead of if-then-else
Change-Id: Ia86f8433f30a166d38ee63d0d1745b26740767b9
2018-10-27 23:46:13 +02:00
Translation updater bot
529ccd9e02 Localisation updates from https://translatewiki.net.
Change-Id: If9e3c1bf47afc4ee0f0c0afacebf3e32df62fb8c
2018-10-26 21:55:34 +02:00
Translation updater bot
d75ac255ad Localisation updates from https://translatewiki.net.
Change-Id: I67923401760c77676ed4e674170335333ac15d15
2018-10-25 22:16:19 +02:00
jenkins-bot
d1d8b54b75 Merge "Minor cleanup of languages/ConverterRule.php" 2018-10-24 20:59:58 +00:00
David Barratt
170c49d61c Update Special:BlockList to present Partial Block details from the database
The Special:BlockList page will be updated to show details from the Partial
Block within the "Block parameters" column. The format of the column will
change to make the details more readable.

Bug: T197143
Change-Id: Ibd79b049d93e427c2d541f8ef93005847482ef59
2018-10-24 16:26:06 +00:00
Alangi Derick
45a4cc4cd4 Minor cleanup of languages/ConverterRule.php
Remove extra space before comma and fix
minor issues with line comments.

Change-Id: I0306fe172eaa29ab504394f0a80b8652089a809c
2018-10-24 12:43:30 +00:00
jenkins-bot
954b695a85 Merge "Remove old "bulletin board style toolbar" from core" 2018-10-24 05:30:14 +00:00
jenkins-bot
aff39bd7c9 Merge "Enforce partial blocks" 2018-10-24 03:15:39 +00:00
jenkins-bot
728d6e918c Merge "Add partial block details to block-log entries." 2018-10-24 01:45:25 +00:00
jenkins-bot
8da9405898 Merge "Update Special:Block to set Partial Blocks" 2018-10-24 01:45:18 +00:00
jenkins-bot
295ed872b1 Merge "TitlesMultiselectWidget: Add a widget that allows selection of multiple titles" 2018-10-24 01:35:54 +00:00
Dayllan Maza
d67121f6d3 Enforce partial blocks
Enforce partial blocks and display a slightly different block
notice depending on if the block is sitewide or not

Bug: T197117
Depends-On: I675316dddf272fd0d6172ecad3882160752bf780
Change-Id: I8a3635a4a04a33912eb139b7b13c4bd874183d31
2018-10-24 00:57:48 +00:00
Dayllan Maza
f24991c6ed Add partial block details to block-log entries.
Block information needs to be more detailed if a block is not
sitewide. With this change, page restrictions will be visible
as part of the block information in Special:Contributions,
Special:Block, and Special:Log and via API

Bug: T197108
Change-Id: I5d2ef606f709bdd60bf52e2a048890b0f6360fca
2018-10-24 00:47:27 +00:00
David Barratt
0813c46daa Update Special:Block to set Partial Blocks
Make the necessary UI changes to Special:Block in order to set/update
partial blocks.

Bug: T197109
Change-Id: Ib3067824b5dcbdd893ab1f165d169a35d0716cb2
2018-10-24 00:47:08 +00:00
Moriel Schottlender
07a5c71646 TitlesMultiselectWidget: Add a widget that allows selection of multiple titles
Add the widget in both PHP and JS for OOUI, and into HTMLForm
definitions.

In JS, the widget uses the engine from mw.widgets.TitleWidget
with the async support from OO.ui.mixin.RequestManager.

The PHP version provides a textarea, like UsersMultiselectWidget.php
which is then infused if JS is available.

Also, add highlightSearchQuery option for TitleWidget to allow for
not highlighting the partial search query the user typed in, if the
UI requires it. This option (highlighting partial result) is already
optional in the TitleOptionWidget, so this config exposes that
optionality in the TitleWidget widget for its menu children.

Notes:

HTMLTitlesMultiselectField is a duplication of HTMLUsersMultiselectField
except for:
- The configuration variable changed to 'titles' (from 'users')
- OOUI modules were adjusted for the TitlesMultiselectWidget
- The PHP version instantiates a MediaWiki\Widget\TitlesMultiselectWidget

TitlesMultiselectWidget is a duplication of UsersMultiselectWidget
except for:
- $usersArray was renamed to $titlesArray
- getJavascriptClassName returns the correct js class for
  mw.widgets.TitlesMultiselectWidget for infusion.

Bug: T197109
Depends-On: I675316dddf272fd0d6172ecad3882160752bf780
Change-Id: Ie96947a35f70b76731e16ae5b85de815dfa4a8ce
2018-10-24 00:46:48 +00:00
Translation updater bot
021b080b76 Localisation updates from https://translatewiki.net.
Change-Id: If085dbc6560e9580ac86ddb42a4f730d47f1e605
2018-10-23 21:53:55 +02:00
jenkins-bot
67839e2f2b Merge "Make Language::hasVariant() more strict" 2018-10-22 21:50:06 +00:00
C. Scott Ananian
fcbde8ae4e Make Language::hasVariant() more strict
In d59f27aeab we made
LanguageConverter::validateVariant() try harder to convert a variant
into an acceptable MediaWiki-internal form, looking at deprecated
codes and BCP 47 aliases.  However, this misled Language::hasVariant()
into thinking that bogus names (like all-uppercase strings) were
acceptable variant names, which then led exceptions when they were
passed to the various conversion methods.

This is a belt-and-suspenders patch for T207433 -- in that case we
shouldn't have created a Language object with code 'sr-cyrl' in the
first place, but once one was created we shouldn't have tried to
ask LanguageSr to convert texts to 'sr-cyrl'.  The latter problem
is fixed by this patch.

Bug: T207433
Change-Id: Id993bc7989144b5031a551662e8e492bd23f698a
2018-10-22 16:35:26 -04:00
Translation updater bot
7b4ec19d1d Localisation updates from https://translatewiki.net.
Change-Id: Id5f41040e7924ee2a377f5bb47999ff8a5987831
2018-10-22 21:53:57 +02:00
jenkins-bot
b71dda8458 Merge "Include BCP 47 codes in $wgDummyLanguageCodes, but deprecate it" 2018-10-22 17:13:50 +00:00
jenkins-bot
05412a8898 Merge "Deprecate $wgFixArabicUnicode / $wgFixMalayalamUnicode" 2018-10-22 17:08:50 +00:00
jenkins-bot
f69c80fa5c Merge "Remove Language::truncate(), deprecated in MW 1.31" 2018-10-22 16:33:57 +00:00
jenkins-bot
f23894eb7e Merge "Replace http://be-x-old. by https://be-tarask." 2018-10-22 10:19:12 +00:00
C. Scott Ananian
103a4f76dc Deprecate $wgFixArabicUnicode / $wgFixMalayalamUnicode
These were introduced in MW 1.17 and are always true in production.

They were useful to allow folks to defer title conversion, but it's
been a long time now.  We don't need to make this optional any more.

Change-Id: I65dcfe80dc3e1dfeb4d63924a8928655e012a20c
2018-10-21 21:55:39 -04:00
Translation updater bot
98845840f6 Localisation updates from https://translatewiki.net.
Change-Id: I12979463cbff3cd1b6ed46ffe3a7839be0c35605
2018-10-21 22:11:24 +02:00
Zoranzoki21
cf18de1ecf Equalization translations for Serbian
Change-Id: I36a214181d24610fa0224d51223b1789d93be777
2018-10-21 17:36:31 +00:00
Brian Wolff
35023d616f SECURITY: Don't allow loading unprotected JS files
This is meant to protect against malicious people while avoiding
annoying good users as much as possible. We may want to restrict
this further in the future, but that's something that can be discussed
in the normal way.

Bug: T194204
Bug: T113042
Bug: T112937
Change-Id: I27e049bae78b5c0f63b10f454b740cb1dc394813
2018-10-21 16:08:44 +00:00
Translation updater bot
e50bb5b359 Localisation updates from https://translatewiki.net.
Change-Id: I508681048d303f4814be18462689688b93443813
2018-10-20 22:00:02 +02:00
Fomafix
a30ebfc523 Replace http://be-x-old. by https://be-tarask.
Change-Id: I9a3f20bf3caaf9a0529f66f85953d56b8a34067e
2018-10-20 20:49:56 +02:00
Translation updater bot
e09246fb77 Localisation updates from https://translatewiki.net.
Change-Id: Ic7961893e9cd4f67fdfdeb36c00ce414444c3f15
2018-10-19 22:02:41 +02:00
C. Scott Ananian
f2e0516934 Include BCP 47 codes in $wgDummyLanguageCodes, but deprecate it
Add BCP 47 codes to $wgDummyLanguageCodes to ensure that
Language::factory() will return a valid MediaWiki-internal code if
given a BCP 47 alias.  We will want to make $wgDummyLanguageCodes a
private property of LanguageCode eventually, but let's start with
removing it from user configuration.

Setting $wgDummyLanguageCodes in LocalSettings.php has been deprecated
since 1.29.  Hard deprecate adding entries to $wgDummyLanguageCodes so
that we can eventually remove manual overrides from user
configuration.

This is a follow-up to 48ab87d0a3,
which described the various categories of codes, and
21ead7a98d, which added the correct
BCP 47 mappings.

Bug: T207433
Change-Id: I9f6dda3360f79ab65f6392f44c98926588d851c8
2018-10-19 14:31:21 -04:00
Translation updater bot
65cd644c3b Localisation updates from https://translatewiki.net.
Change-Id: Idb8c9ff1533aa8470455dba149333a6212c509a5
2018-10-18 22:15:04 +02:00
jenkins-bot
837b96248d Merge "Revert "Introduce Special:RedirectExternal"" 2018-10-18 17:05:10 +00:00
Kosta Harlan
7e81d6f49e Revert "Introduce Special:RedirectExternal"
This reverts commit b83cf88837.

Reason for revert: Security concerns, needs some more nuance.

Change-Id: I5823c3da77accca9839f9632611315223e05351b
2018-10-18 16:18:20 +00:00
jenkins-bot
febf0b10b5 Merge "Reword 'prefixindex-strip' to "Hide the prefix in results"" 2018-10-18 08:26:57 +00:00
Bartosz Dziewoński
c3c12a0af9 Reword 'prefixindex-strip' to "Hide the prefix in results"
"Strip" is a very jargony term for removing something.

Translations of this message to the languages I can vaguely understand
all use the equivalents of "hide", "remove", or "display without".
Several translations to small languages I don't understand include the
word "strip" verbatim, which is almost certainly a mistake.

Bug: T76972
Change-Id: I6bf690773bfb2e5c6c35b3101733d1cd3e936e70
2018-10-18 02:23:37 +02:00
jenkins-bot
c75059dacb Merge "Introduce Special:RedirectExternal" 2018-10-17 22:12:52 +00:00
Kosta Harlan
b83cf88837 Introduce Special:RedirectExternal
Special:RedirectExternal is an unlisted special page that accepts a URL as
the first argument, and redirects the user to that page.
Example: Special:RedirectExternal/https://mediawiki.org

At the moment, this is intended to be used by the GrowthExperiments project in
order to track outbound visits to certain external links. But it could be
extended in the future to provide parameters for showing a message to the user
before redirecting, or explicitly requiring a user to click on the link, which
could help improve security when users follow on-wiki links to off-wiki sites.

Bug: T207115
Change-Id: I822af14a84569aab22249e2f16a662a60e60f76a
2018-10-17 14:52:09 -07:00
Translation updater bot
6415b25d47 Localisation updates from https://translatewiki.net.
Change-Id: If357bae8816570dbccf5bbb42b040ad6de159e72
2018-10-17 23:13:11 +02:00
C. Scott Ananian
a1b894cc42 Remove Language::truncate(), deprecated in MW 1.31
Bug: T197492
Change-Id: I7a3f7a33270402f4b16b286f5d6ed65fee920fcc
2018-10-17 13:13:00 -04:00
James D. Forrester
cfa70ea6d0 Remove old "bulletin board style toolbar" from core
With this change, MediaWiki will no longer have a 'JavaScript-powered'
wikitext toolbar, and instead sysadmins will be required to choose one
(or more) of the several extensions available for this purpose if they
need the functionality. For over half a decade MediaWiki's tarball has
included the 2010-era replacement for this feature, WikiEditor. We are
now working on replacing even that, with the 2013-era visual editor, a
mode of which is the forthcoming 2017-era wikitext editor, and several
more specialised editors like CodeEditor.

Beyond this, the core editor toolbar is ancient, un-loved, and is used
only exceptionally rarely, mostly by accident. It is unhelpful to give
implicitly this as the primary editor for MediaWiki just because we've
not removed it from core when it is not a very good experience for any
kind of user, and has not received the attention that users deserve to
be worth retaining in core.

The old core preference, which was intended to govern whether this old
toolbar should be shown, has since mutated into whether the to run the
EditPageBeforeEditToolbar hook. The hook is used by several extensions
to provide toolbars in lieu of the core one. This preference has been,
in practice, a very confusing preference for MediaWiki users, who have
to interact with quite similar preferences to toggle their real editor
which sit next to this one on the preferences page. Consequently, this
preference is also removed.

The code could be made into an extension for those (very few) users of
MediaWiki who might want to keep on using it. However, the author will
offer their services but not their encouragement in said undertaking.

Bug: T30856
Bug: T32795
Change-Id: I2b05f0ca25873ad8e0b33a5e4938bef52c4e9347
2018-10-16 20:08:32 -07:00
jenkins-bot
d1592cdf05 Merge "[Korean] Add 2 additional bookstoreList" 2018-10-16 20:03:48 +00:00
Translation updater bot
cc2d3607ac Localisation updates from https://translatewiki.net.
Change-Id: I44bc61d6e2147602329eeface6892e78db0388b2
2018-10-16 21:55:58 +02:00
Translation updater bot
ed4d7ef057 Localisation updates from https://translatewiki.net.
Change-Id: I4b631605549ac3599ca01d59fa69e35fad6c879e
2018-10-15 21:57:04 +02:00
jenkins-bot
da272d7d27 Merge "Add MessagesShn.php" 2018-10-15 13:48:07 +00:00
Martin Urbanec
0b63d08b31 Add MessagesShn.php
This localizes:
* namespaces
* special page names

Bug: T206917
Bug: T206921
Change-Id: I0d27746aca56849056098ffffa866954d97f133d
2018-10-15 14:04:21 +02:00
Translation updater bot
112385bff5 Localisation updates from https://translatewiki.net.
Change-Id: I27647ca9376c400143ba52074322c4b50960db53
2018-10-14 21:54:50 +02:00
Translation updater bot
ffa5a48a25 Localisation updates from https://translatewiki.net.
Change-Id: I5958a3381bd070c1cb7d79e6819b638418b87165
2018-10-13 09:49:22 +02:00
jenkins-bot
14f007fdce Merge "Localisation updates from https://translatewiki.net." 2018-10-11 20:46:47 +00:00
Translation updater bot
2650a78fe9 Localisation updates from https://translatewiki.net.
Change-Id: I17af87ea492359cd0c09dc3c62af8caa8755368a
2018-10-11 22:14:08 +02:00