diff options
Diffstat (limited to 'serialized/serialize-localisation.php')
-rw-r--r-- | serialized/serialize-localisation.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/serialized/serialize-localisation.php b/serialized/serialize-localisation.php deleted file mode 100644 index 9801b823..00000000 --- a/serialized/serialize-localisation.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php - -$wgNoDBParam = true; -$optionsWithArgs = array( 'o' ); -require_once( dirname(__FILE__).'/../maintenance/commandLine.inc' ); -require_once( dirname(__FILE__).'/serialize.php' ); - -$stderr = fopen( 'php://stderr', 'w' ); -if ( !isset( $args[0] ) ) { - fwrite( $stderr, "No input file specified\n" ); - exit( 1 ); -} -$file = $args[0]; -$code = str_replace( 'Messages', '', basename( $file ) ); -$code = str_replace( '.php', '', $code ); -$code = strtolower( str_replace( '_', '-', $code ) ); - -$localisation = Language::getLocalisationArray( $code, true ); -if ( wfIsWindows() ) { - $localisation = unixLineEndings( $localisation ); -} - -if ( isset( $options['o'] ) ) { - $out = fopen( $options['o'], 'wb' ); - if ( !$out ) { - fwrite( $stderr, "Unable to open file \"{$options['o']}\" for output\n" ); - exit( 1 ); - } -} else { - $out = fopen( 'php://stdout', 'wb' ); -} - -fwrite( $out, serialize( $localisation ) ); - - |