Incomplete or Erroneous Language Files

\n\n"; include realpath( 'lang/en.php' ); $english_lang = $lang; unset( $lang ); $lang_dir = realpath( 'lang' ); $dir = opendir( $lang_dir ); while( ( $file = readdir( $dir ) ) !== false ) { if( ! preg_match( "/\.php$/", $file ) ) continue; if( $file == 'en.php' ) continue; echo "

$file

"; echo "
    "; unset( $lang ); $lang = array(); include realpath( $lang_dir.'/'.$file ); $has_errors = false; foreach( $english_lang as $key => $string ) if( ! isset( $lang[ $key ] ) ) { $has_errors = true; echo "
  1. missing entry: $key
  2. "; } foreach( $lang as $key => $string ) if( ! isset( $english_lang[ $key ] ) ){ $has_errors = true; echo "
  3. extra entry: $key
  4. "; } if( ! $has_errors ) echo "(No errors)"; echo "
"; } ?>