Merged localisation-work branch:
[lhc/web/wiklou.git] / languages / scripts / function-list.php
1 <?php
2
3 define( 'MEDIAWIKI', 1 );
4 define( 'NOT_REALLY_MEDIAWIKI', 1 );
5
6 class Language {}
7 foreach ( glob( 'Language*.php' ) as $file ) {
8 if ( $file != 'Language.php' ) {
9 require_once( $file );
10 }
11 }
12
13 $removedFunctions = array( 'date', 'time', 'timeanddate', 'formatMonth', 'formatDay',
14 'getMonthName', 'getMonthNameGen', 'getMonthAbbreviation', 'getWeekdayName',
15 'userAdjust', 'dateFormat', 'timeSeparator', 'timeDateSeparator', 'timeBeforeDate',
16 'monthByLatinNumber', 'getSpecialMonthName',
17
18 'commafy'
19 );
20
21 $numRemoved = 0;
22 $total = 0;
23 $classes = get_declared_classes();
24 ksort( $classes );
25 foreach ( $classes as $class ) {
26 if ( !preg_match( '/^Language/', $class ) || $class == 'Language' || $class == 'LanguageConverter' ) {
27 continue;
28 }
29
30 print "$class\n";
31 $methods = get_class_methods( $class );
32 print_r( $methods );
33
34 if ( !count( array_diff( $methods, $removedFunctions ) ) ) {
35 print "removed\n";
36 $numRemoved++;
37 }
38 $total++;
39 print "\n";
40 }
41
42 print "$numRemoved will be removed out of $total\n";
43
44 ?>