Skip to content

Commit

Permalink
Merge pull request #7168 from m-kuhn/noTrDebugMessages
Browse files Browse the repository at this point in the history
Do not translate debug messages
  • Loading branch information
m-kuhn committed Jun 4, 2018
2 parents 4af0e44 + 474809e commit 0e4b595
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -3572,7 +3572,7 @@ QgsMapCanvasDockWidget *QgisApp::createNewMapCanvasDock( const QString &name )
{
if ( canvas->objectName() == name )
{
QgsDebugMsg( tr( "A map canvas with name '%1' already exists!" ).arg( name ) );
QgsDebugMsg( QStringLiteral( "A map canvas with name '%1' already exists!" ).arg( name ) );
return nullptr;
}
}
Expand Down Expand Up @@ -10687,7 +10687,7 @@ Qgs3DMapCanvasDockWidget *QgisApp::createNew3DMapCanvasDock( const QString &name
{
if ( canvas->objectName() == name )
{
QgsDebugMsg( tr( "A map canvas with name '%1' already exists!" ).arg( name ) );
QgsDebugMsg( QStringLiteral( "A map canvas with name '%1' already exists!" ).arg( name ) );
return nullptr;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvirtuallayertask.cpp
Expand Up @@ -36,7 +36,7 @@ bool QgsVirtualLayerTask::run()
}
catch ( std::exception &e )
{
QgsDebugMsg( tr( "Reload error: %1" ).arg( e.what() ) );
QgsDebugMsg( QStringLiteral( "Reload error: %1" ).arg( e.what() ) );
rc = false;
}
return rc;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/ogr/qgsogrdataitems.cpp
Expand Up @@ -166,7 +166,7 @@ QList<QgsOgrDbLayerInfo *> QgsOgrLayerItem::subLayers( const QString &path, cons
QgsVectorLayer layer( path, QStringLiteral( "ogr_tmp" ), QStringLiteral( "ogr" ) );
if ( ! layer.isValid( ) )
{
QgsDebugMsgLevel( tr( "Layer is not a valid %1 Vector layer %2" ).arg( path ), 3 );
QgsDebugMsgLevel( QStringLiteral( "Layer is not a valid %1 Vector layer %2" ).arg( path ), 3 );
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions src/providers/wcs/qgswcsprovider.cpp
Expand Up @@ -546,9 +546,9 @@ void QgsWcsProvider::readBlock( int bandNo, QgsRectangle const &viewExtent, int
{
// Rotate counter clockwise
// If GridOffsets With GeoServer,
QgsDebugMsg( tr( "Rotating raster" ) );
QgsDebugMsg( QStringLiteral( "Rotating raster" ) );
int pixelSize = QgsRasterBlock::typeSize( dataType( bandNo ) );
QgsDebugMsg( QString( "pixelSize = %1" ).arg( pixelSize ) );
QgsDebugMsg( QStringLiteral( "pixelSize = %1" ).arg( pixelSize ) );
int size = width * height * pixelSize;
void *tmpData = malloc( size );
if ( ! tmpData )
Expand Down Expand Up @@ -1896,7 +1896,7 @@ void QgsWcsDownloadHandler::cacheReplyProgress( qint64 bytesReceived, qint64 byt
{
Q_UNUSED( bytesReceived );
Q_UNUSED( bytesTotal );
QgsDebugMsgLevel( tr( "%1 of %2 bytes of map downloaded." ).arg( bytesReceived ).arg( bytesTotal < 0 ? QString( "unknown number of" ) : QString::number( bytesTotal ) ), 3 );
QgsDebugMsgLevel( QStringLiteral( "%1 of %2 bytes of map downloaded." ).arg( bytesReceived ).arg( bytesTotal < 0 ? QString( "unknown number of" ) : QString::number( bytesTotal ) ), 3 );
}

void QgsWcsDownloadHandler::canceled()
Expand Down
2 changes: 1 addition & 1 deletion src/providers/wfs/qgswfsrequest.cpp
Expand Up @@ -209,7 +209,7 @@ void QgsWfsRequest::abort()

void QgsWfsRequest::replyProgress( qint64 bytesReceived, qint64 bytesTotal )
{
QgsDebugMsg( tr( "%1 of %2 bytes downloaded." ).arg( bytesReceived ).arg( bytesTotal < 0 ? QString( "unknown number of" ) : QString::number( bytesTotal ) ) );
QgsDebugMsg( QStringLiteral( "%1 of %2 bytes downloaded." ).arg( bytesReceived ).arg( bytesTotal < 0 ? QString( "unknown number of" ) : QString::number( bytesTotal ) ) );

if ( bytesReceived != 0 )
mGotNonEmptyResponse = true;
Expand Down
8 changes: 4 additions & 4 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -323,7 +323,7 @@ bool QgsWmsProvider::addLayers()
Q_FOREACH ( const QString &layer, mSettings.mActiveSubLayers )
{
mActiveSubLayerVisibility[ layer ] = true;
QgsDebugMsg( "set visibility of layer '" + layer + "' to true." );
QgsDebugMsg( QStringLiteral( "set visibility of layer '%1' to true." ).arg( layer ) );
}

// now that the layers have changed, the extent will as well.
Expand Down Expand Up @@ -1326,7 +1326,7 @@ bool QgsWmsProvider::extentForNonTiledLayer( const QString &layerName, const QSt
QgsCoordinateTransform xform( wgs, dst );
Q_NOWARN_DEPRECATED_POP

QgsDebugMsg( QString( "transforming layer extent %1" ).arg( extent.toString( true ) ) );
QgsDebugMsg( QStringLiteral( "transforming layer extent %1" ).arg( extent.toString( true ) ) );
try
{
extent = xform.transformBoundingBox( extent );
Expand All @@ -1336,7 +1336,7 @@ bool QgsWmsProvider::extentForNonTiledLayer( const QString &layerName, const QSt
Q_UNUSED( cse );
return false;
}
QgsDebugMsg( QString( "transformed layer extent %1" ).arg( extent.toString( true ) ) );
QgsDebugMsg( QStringLiteral( "transformed layer extent %1" ).arg( extent.toString( true ) ) );

//make sure extent does not contain 'inf' or 'nan'
if ( !extent.isFinite() )
Expand Down Expand Up @@ -3703,7 +3703,7 @@ void QgsWmsImageDownloadHandler::cacheReplyProgress( qint64 bytesReceived, qint6
{
Q_UNUSED( bytesReceived );
Q_UNUSED( bytesTotal );
QgsDebugMsg( tr( "%1 of %2 bytes of map downloaded." ).arg( bytesReceived ).arg( bytesTotal < 0 ? QString( "unknown number of" ) : QString::number( bytesTotal ) ) );
QgsDebugMsg( QStringLiteral( "%1 of %2 bytes of map downloaded." ).arg( bytesReceived ).arg( bytesTotal < 0 ? QString( "unknown number of" ) : QString::number( bytesTotal ) ) );
}

void QgsWmsImageDownloadHandler::canceled()
Expand Down

0 comments on commit 0e4b595

Please sign in to comment.