PrivateSettings.php

From translatewiki.net
Jump to: navigation, search

Updated: 11:55, 30 March 2014 (UTC)

<?php

$wgEmergencyContact = "root@example.com";
$wgPasswordSender = "root@example.com";

$wgProxyKey = "******";

$egGoogleMapsKey = $wgGoogleApiKey = "******";
$egYahooMapsKey = "******";

# rally 2012-12
require( "/home/betawiki/config/SpecialRally.php");

$wgRC2UDPAddress = '127.0.0.1'; # the host where the IRC client is running
$wgRC2UDPPort = ******; # or whatever
$wgRC2UDPPrefix = '';

//$wgTranslateApertium = 'http://example.com/webservice/ws.php';

$wgTranslateTranslationServices['Apertium']['key'] = '******';
unset( $wgTranslateTranslationServices['Apertium'] );
$wgTranslateTranslationServices['Microsoft']['key'] = '******';
$wgTranslateTranslationServices['Yandex']['key'] = '******';

#require( "$IP/extensions/ConfirmEdit/ReCaptcha.php");
//$wgCaptchaClass = 'ReCaptcha';
$wgReCaptchaPublicKey = '******';
$wgReCaptchaPrivateKey = '******';

require( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
require( "$IP/extensions/ConfirmEdit/QuestyCaptcha.php");
$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaQuestions[] = array( 'question' => "****", 'answer' => "****" );

$wgHooks['SkinAfterBottomScripts'][]  = 'efGoogleAnalytics';
function efGoogleAnalytics( $skin, &$text ) {
        global $wgCanonicalServer;
        if ( $wgCanonicalServer !== "https://translatewiki.net" ) {
                return;
        }

        $text .= Html::inlineScript( <<<JS
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-22456371-1', 'translatewiki.net');
ga('send', 'pageview');
mw.trackSubscribe( 'ext.translate.event.translation', function ( e, m ) {
        ga( 'send', 'event', 'tux', 'translation', (m.title || '').replace( /^.*\//, '' ) );
} );
mw.trackSubscribe( 'ext.translate.event.proofread', function ( e, m ) {
        ga( 'send', 'event', 'tux', 'proofread', (m.title || '').replace( /^.*\//, '' ) );
} );
JS
        );
}