4 * @ingroup MaintenanceLanguage
7 define( 'MEDIAWIKI', 1 );
8 define( 'NOT_REALLY_MEDIAWIKI', 1 );
11 foreach ( glob( 'Language*.php' ) as $file ) {
12 if ( $file != 'Language.php' ) {
13 require_once( $file );
17 $removedFunctions = array( 'date', 'time', 'timeanddate', 'formatMonth', 'formatDay',
18 'getMonthName', 'getMonthNameGen', 'getMonthAbbreviation', 'getWeekdayName',
19 'userAdjust', 'dateFormat', 'timeSeparator', 'timeDateSeparator', 'timeBeforeDate',
20 'monthByLatinNumber', 'getSpecialMonthName',
27 $classes = get_declared_classes();
29 foreach ( $classes as $class ) {
30 if ( !preg_match( '/^Language/', $class ) ||
$class == 'Language' ||
$class == 'LanguageConverter' ) {
35 $methods = get_class_methods( $class );
38 if ( !count( array_diff( $methods, $removedFunctions ) ) ) {
46 print "$numRemoved will be removed out of $total\n";