Benutzer:Andreas Plank/LocalSettings: Unterschied zwischen den Versionen

Aus Open Source Ecology - Germany
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „<source lang="PHP"> ############################################ # Allow User CSS or JavaScripts, e.g. for customizing the editor # $wgAllowUserCssPrefs option…“)
 
(+Konfiguration)
Zeile 8: Zeile 8:
 
$wgAllowUserCss = 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
 
# Start MediaWiki Language Extension Bundle
  # wfLoadExtension( 'cldr' );
+
# check out https://www.mediawiki.org/wiki/Help:Extension:Translate/Configuration
 
 
#  require_once "$IP/extensions/Babel/Babel.php";
 
 
 
#  require_once "$IP/extensions/cldr/cldr.php";
 
 
   wfLoadExtension( 'Babel' );
 
   wfLoadExtension( 'Babel' );
 
   wfLoadExtension( 'cldr' );
 
   wfLoadExtension( 'cldr' );
 
   wfLoadExtension( 'CleanChanges' );
 
   wfLoadExtension( 'CleanChanges' );
  # require_once "$IP/extensions/CleanChanges/CleanChanges.php";
 
 
   $wgCCTrailerFilter = true;
 
   $wgCCTrailerFilter = true;
 
   $wgCCUserFilter = false;
 
   $wgCCUserFilter = false;
Zeile 31: Zeile 32:
 
   $wgExtraLanguageNames['qqq'] = 'Dokumentation von Nachrichten'; # No linguistic content. Used for documenting messages
 
   $wgExtraLanguageNames['qqq'] = 'Dokumentation von Nachrichten'; # No linguistic content. Used for documenting messages
 
   # $wgTranslateDelayedMessageIndexRebuild = true;
 
   # $wgTranslateDelayedMessageIndexRebuild = true;
  # $wgTranslatePageTranslationULS = true; // default: false
 
 
   # Add this if you want to enable access to page translation
 
   # Add this if you want to enable access to page translation
 
   $wgGroupPermissions['sysop']['pagetranslation'] = true;
 
   $wgGroupPermissions['sysop']['pagetranslation'] = true;
Zeile 47: Zeile 47:
 
   $wgGroupPermissions['bureaucrat']['translate-groupreview'] = true;
 
   $wgGroupPermissions['bureaucrat']['translate-groupreview'] = true;
 
   $wgTranslateLanguageFallbacks['de-formal'] = array('de', 'en');
 
   $wgTranslateLanguageFallbacks['de-formal'] = array('de', 'en');
   $wgTranslatePageTranslationULS = true;
+
   $wgTranslatePageTranslationULS = true; // default: false; user is redirected to translations as his selected global Wiki language is set
 
   $wgTranslateTranslationServices = array();
 
   $wgTranslateTranslationServices = array();
 
   $GLOBALS['wgTranslateTranslationServices']['TTMServer'] = array(
 
   $GLOBALS['wgTranslateTranslationServices']['TTMServer'] = array(

Version vom 17. März 2018, 23:41 Uhr

############################################
# 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
############################################