Skip to content

Commit

Permalink
Check for structural XML differences: attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
André L F S Bacci committed Jan 27, 2025
1 parent 82bda86 commit f9bf23e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions scripts/translation/libqa/OutputBuffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ class OutputBuffer

function __construct( string $header , string $filename , OutputIgnore $ignore )
{
if ( str_starts_with( $filename , "./" ) )
$filename = substr( $filename , 2 );
$filename = str_replace( "/./" , "/" , $filename );

$this->header = $header . ": " . $filename . "\n\n";
$this->filename = $filename;
Expand Down
4 changes: 2 additions & 2 deletions scripts/translation/syncxmla.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

require_once __DIR__ . '/libqa/all.php';

$ignore = new OutputIgnore( $argv ); // always first, may exit.
$oklist = SyncFileList::load();
$ignore = new OutputIgnore( $argv );

foreach ( $oklist as $file )
{
$source = $file->sourceDir . '/' . $file->file;
$target = $file->targetDir . '/' . $file->file;
$output = new OutputBuffer( "qaxml.a" , $file->file , $ignore );
$output = new OutputBuffer( "# qaxml.a" , $target , $ignore );

[ $s , $e ] = XmlFrag::loadXmlFragmentFile( $source );
[ $t , $e ] = XmlFrag::loadXmlFragmentFile( $target );
Expand Down

0 comments on commit f9bf23e

Please sign in to comment.