include saga strings in translations

This commit is contained in:
Juergen E. Fischer 2019-11-01 10:03:58 +01:00
parent c154b2f31e
commit 87a8a16bbd
4 changed files with 13 additions and 5 deletions

View File

@ -114,3 +114,5 @@ rm -rf ${RELEASE_DIR}
popd
echo "Release in $ZIP_NAME ready."
# vim: et ts=4 :

View File

@ -64,21 +64,21 @@ for my $f (<python/plugins/processing/algs/grass*/description/*.txt>) {
$strings{"GrassAlgorithm"}{$group} = $f;
}
for my $f (<python/plugins/processing/algs/saga/description/*/*.txt>) {
for my $f (<python/plugins/processing/algs/saga/description/*.txt>) {
open I, $f;
my $desc = scalar(<I>);
while( my($class, $name, $description, $rest) = split /\|/, scalar(<I>) ) {
next unless defined $description;
$description =~ s/\s+$//;
$strings{"SAGAAlgorithm"}{$description} = 1
$strings{"SAGAAlgorithm"}{$description} = $f
}
close I;
chop $desc;
$strings{"SAGAAlgorithm"}{$desc} = 1;
$strings{"SAGAAlgorithm"}{$desc} = $f;
}
for my $f (<python/plugins/processing/algs/help/*.yaml>) {
@ -86,7 +86,7 @@ for my $f (<python/plugins/processing/algs/help/*.yaml>) {
$base = uc $base;
my $yaml = LoadFile($f);
for my $k (keys %$yaml) {
$strings{"${base}Algorithm"}{$yaml->{$k}} = $f;
$strings{"${base}Algorithm"}{$yaml->{$k}} = $k;
}
}

View File

@ -2965,7 +2965,11 @@ int QgsCoordinateReferenceSystem::syncDatabase()
return -1;
}
QgsDebugMsgLevel( QStringLiteral( "CRS update (inserted:%1 updated:%2 deleted:%3 errors:%4)" ).arg( QString::number( inserted ), QString::number( updated ), QString::number( deleted ), QString::number( errors ) ), 4 );
#ifdef QGISDEBUG
QgsDebugMsgLevel( QStringLiteral( "CRS update (inserted:%1 updated:%2 deleted:%3 errors:%4)" ).arg( inserted ).arg( updated ).arg( deleted ).arg( errors ), 4 );
#else
Q_UNUSED( deleted )
#endif
if ( errors > 0 )
return -errors;

View File

@ -458,7 +458,9 @@ void QgsSnappingUtils::prepareIndex( const QList<LayerAndAreaOfInterest> &layers
}
if ( !relaxed )
{
QgsDebugMsg( QStringLiteral( "Prepare index total: %1 ms" ).arg( t.elapsed() ) );
}
}
}