Remove capitalize-all-nouns CSS class support

Functionality has been moved to MonoBook.

Bug: T97892
Change-Id: I3d4d74a2caa77f975b415af5977253ddeff6af21
Depends-On: I598c4469c46d284562ea3aec79330f9a1f40d2ce
This commit is contained in:
Jack Phoenix 2018-05-26 17:58:37 +03:00 committed by Jdlrobson
parent 4aea1a348d
commit b326dd4352
7 changed files with 4 additions and 21 deletions

View file

@ -364,6 +364,9 @@ because of Phabricator reports.
skin registration instead.
* ParserCache::getKey and ::getEtag, deprecated since 1.36, were removed.
* BaseTemplateToolboxHook, deprecated since 1.35, was removed.
* Previously a capitalize-all-nouns class was added to the body element of
languages where nouns must be capitalized. This class is no longer added to
the body tag and must be provided by skins.
* …
=== Deprecations in 1.37 ===

View file

@ -3139,11 +3139,6 @@ class OutputPage extends ContextSource {
$bodyClasses[] = 'mw-underline-' . ( $underline ? 'always' : 'never' );
}
if ( $this->getLanguage()->capitalizeAllNouns() ) {
# A <body> class is probably not the best way to do this . . .
$bodyClasses[] = 'capitalize-all-nouns';
}
// Parser feature migration class
// The idea is that this will eventually be removed, after the wikitext
// which requires it is cleaned up.

View file

@ -122,7 +122,7 @@ class LocalisationCache {
*/
public static $allKeys = [
'fallback', 'namespaceNames', 'bookstoreList',
'magicWords', 'messages', 'rtl', 'capitalizeAllNouns',
'magicWords', 'messages', 'rtl',
'digitTransformTable', 'separatorTransformTable',
'minimumGroupingDigits', 'fallback8bitEncoding',
'linkPrefixExtension', 'linkTrail', 'linkPrefixCharset',

View file

@ -330,7 +330,6 @@ class SkinTemplate extends Skin {
$tpl->set( 'dir', $userLangDir );
$tpl->set( 'rtl', $userLang->isRTL() );
$tpl->set( 'capitalizeallnouns', $userLang->capitalizeAllNouns() ? ' capitalize-all-nouns' : '' );
$tpl->set( 'showjumplinks', true ); // showjumplinks preference has been removed
$tpl->set( 'username', $this->loggedin ? $this->username : null );
$tpl->set( 'userpage', $this->userpage );

View file

@ -3110,13 +3110,6 @@ class Language {
return $this->isRTL() ? $rlm : $lrm;
}
/**
* @return array
*/
public function capitalizeAllNouns() {
return $this->localisationCache->getItem( $this->mCode, 'capitalizeAllNouns' );
}
/**
* An arrow, depending on the language direction.
*

View file

@ -346,7 +346,6 @@ $dateFormats = [
'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns'
];
$capitalizeAllNouns = true;
$bookstoreList = [
'abebooks.de' => 'http://www.abebooks.de/servlet/BookSearchPL?ph=2&isbn=$1',
'amazon.de' => 'https://www.amazon.de/gp/search/field-isbn=$1',

View file

@ -21,12 +21,6 @@ $fallback = false;
*/
$rtl = false;
/**
* Should all nouns (not just proper ones) be capitalized?
* Enabling this property will add the capitalize-all-nouns class to the <body> tag
*/
$capitalizeAllNouns = false;
/**
* Optional array mapping ASCII digits 0-9 to local digits.
*/