Benutzer:Andreas Plank/LocalSettings
< Benutzer:Andreas Plank
Zur Navigation springen
Zur Suche springen
Version vom 15. Mai 2018, 22:53 Uhr von Andreas Plank (Diskussion | Beiträge)
############################################
# Allow User CSS or JavaScripts, e.g. for customizing the editor
# $wgAllowUserCssPrefs option disables CSS-based preferences. These are injected by a 'stylesheet' /w/index.php?title=-&action=raw&gen=css, which is ~20 times slower to get out to the browser than a normal stylesheet. Getting rid of these options can dramatically improve page load times
$wgAllowUserCssPrefs=false;
# However, user javascript and CSS are enabled
$wgAllowUserJs = true;
$wgAllowUserCss = true;
############################################
$wgCrossSiteAJAXdomains = array( '*.wikipedia.org', '*.wikibooks.org', '*.wikimedia.org', 'translate.yandex.net');
# if mixed source language pages throughout the Wiki
$wgPageLanguageUseDB=true; # have page language able to be set individually save to database
$wgGroupPermissions['bureaucrat']['pagelang'] = true;
############################################
# Start MediaWiki Language Extension Bundle
# check out https://www.mediawiki.org/wiki/Help:Extension:Translate/Configuration
wfLoadExtension( 'Babel' );
wfLoadExtension( 'cldr' );
wfLoadExtension( 'CleanChanges' );
$wgCCTrailerFilter = true;
$wgCCUserFilter = false;
$wgDefaultUserOptions['usenewrc'] = 1;
wfLoadExtension( 'LocalisationUpdate' );
$wgLocalisationUpdateDirectory = "$IP/cache";
include_once("$IP/extensions/Translate/Translate.php");
$wgGroupPermissions['translator']['translate'] = true;
$wgGroupPermissions['translator']['skipcaptcha'] = true; // Bug 34182: needed with ConfirmEdit
$wgTranslateDocumentationLanguageCode = 'qqq';
$wgExtraLanguageNames['qqq'] = 'Dokumentation von Nachrichten'; # No linguistic content. Used for documenting messages
# $wgTranslateDelayedMessageIndexRebuild = true;
# Add this if you want to enable access to page translation
$wgGroupPermissions['sysop']['pagetranslation'] = true;
$wgGroupPermissions['user']['pagetranslation'] = true;
$wgGroupPermissions['bureaucrat']['pagetranslation'] = true;
$wgGroupPermissions['user']['translate'] = true;
$wgGroupPermissions['user']['translate-messagereview'] = true;
$wgGroupPermissions['bureaucrat']['translate'] = true;
$wgGroupPermissions['bureaucrat']['translate-manage'] = true;
$wgGroupPermissions['bureaucrat']['translate-import'] = true;
$wgGroupPermissions['bureaucrat']['pagetranslation'] = true;
$wgGroupPermissions['bureaucrat']['translate-messagereview'] = true;
$wgGroupPermissions['bureaucrat']['translate-proofr'] = true;
$wgGroupPermissions['bureaucrat']['translate-groupreview'] = true;
$wgTranslateLanguageFallbacks['de-formal'] = array('de', 'en');
$wgTranslatePageTranslationULS = true; // default: false; user is redirected to translations as his selected global Wiki language is set
$wgTranslateTranslationServices = array();
$GLOBALS['wgTranslateTranslationServices']['TTMServer'] = array(
'database' => $wgDBname, // Passed to wfGetDB
'cutoff' => 0.75,
'type' => 'ttmserver',
'public' => true,
);
$wgTranslateTranslationServices['Yandex'] = array(
'url' => 'https://translate.yandex.net/api/v1.5/tr.json/translate',
'key' => "xxxxxxxxxxxxxxxxxxxxxxxxxxxx", # see https://tech.yandex.com/translate/
'pairs' => 'https://translate.yandex.net/api/v1.5/tr.json/getLangs',
'timeout' => 10,
'langorder' => array( 'de', 'en', 'cs', 'ru', 'uk', 'fr', 'pl', 'it', 'es', 'tr' ),
'langlimit' => 0,
'type' => 'yandex',
);
$wgTranslateWorkflowStates = array(
'new' => array( 'color' => 'FF0000' ), // red
'needs_proofreading' => array( 'color' => '0000FF' ), // blue
'ready' => array( 'color' => 'FFFF00' ), // yellow
'published' => array(
'color' => '00FF00', // green
'right' => 'centralnotice-admin'
),
);
wfLoadExtension( 'UniversalLanguageSelector' );
# require_once "$IP/extensions/UniversalLanguageSelector/UniversalLanguageSelector.php";
# End MediaWiki Language Extension Bundle
############################################