Skip to content

Instantly share code, notes, and snippets.

@santhoshtr
Created January 25, 2012 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santhoshtr/1676475 to your computer and use it in GitHub Desktop.
Save santhoshtr/1676475 to your computer and use it in GitHub Desktop.
List messages without documentation in mediawiki i18n files
<?php
if ( PHP_SAPI !== 'cli' )
{
exit( 1 );
}
if( !isset($argv[1]) || $argv[1] === "-h" ){
echo "Usage: php undocumentedmessages.php i18nfile \n";
exit( 0 );
}
$i18nfile = $argv[1];
include( $i18nfile );
foreach ( $messages['en'] as $messageKey => $messageValue ) {
$searchstr = $messageKey;
if ( !isset($messages['qqq'][ $messageKey] ) ) {
echo $i18nfile . " : " . $messageKey . "\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment