blob: 750fc4f2deff786cc72e4d6c645bee06b02c6a30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
$IP = strval( getenv( 'MW_INSTALL_PATH' ) ) !== ''
? getenv( 'MW_INSTALL_PATH' )
: realpath( dirname( __FILE__ ) . "/../../" );
// TODO: migrate to maintenance class
require_once( "$IP/maintenance/commandLine.inc" );
if( isset( $options['help'] ) ) {
print "Fetches updated localisation files from MediaWiki development SVN\n";
print "and saves into local database to merge with release defaults.\n";
print "\n";
print "Usage: php extensions/LocalisationUpdate/update.php\n";
print "Options:\n";
print " --quiet Suppress progress output\n";
print " --skip-core Don't fetch MediaWiki core files\n";
print " --skip-extensions Don't fetch any extension files\n";
print " --all Fetch all present extensions, not just those enabled\n";
print " --outdir=<dir> Override output directory for serialized update files\n";
print " --svnurl=<url> URL to SVN repository, or path to local SVN checkout. Deprecated.\n";
print "\n";
exit( 0 );
}
$starttime = microtime( true );
// Prevent the script from timing out
set_time_limit( 0 );
ini_set( "max_execution_time", 0 );
ini_set( 'memory_limit', -1 );
LocalisationUpdate::updateMessages( $options );
$endtime = microtime( true );
$totaltime = ( $endtime - $starttime );
print "All done in " . $totaltime . " seconds\n";
|