@@ -247,7 +247,7 @@ void QgsGeorefPluginGui::openRaster()
247
247
QString filters = QgsProviderRegistry::instance ()->fileRasterFilters ();
248
248
filters.prepend ( otherFiles + " ;;" );
249
249
filters.chop ( otherFiles.size () + 2 );
250
- mRasterFileName = QFileDialog::getOpenFileName ( this , tr ( " Open raster " ), dir, filters, &lastUsedFilter );
250
+ mRasterFileName = QFileDialog::getOpenFileName ( this , tr ( " Open Raster " ), dir, filters, &lastUsedFilter );
251
251
mModifiedRasterFileName .clear ();
252
252
253
253
if ( mRasterFileName .isEmpty () )
@@ -256,12 +256,12 @@ void QgsGeorefPluginGui::openRaster()
256
256
QString errMsg;
257
257
if ( !QgsRasterLayer::isValidRasterFileName ( mRasterFileName , errMsg ) )
258
258
{
259
- QString msg = tr ( " %1 is not a supported raster data source" ).arg ( mRasterFileName );
259
+ QString msg = tr ( " %1 is not a supported raster data source. " ).arg ( mRasterFileName );
260
260
261
261
if ( !errMsg.isEmpty () )
262
262
msg += ' \n ' + errMsg;
263
263
264
- QMessageBox::information ( this , tr ( " Unsupported Data Source " ), msg );
264
+ QMessageBox::information ( this , tr ( " Open Raster " ), msg );
265
265
return ;
266
266
}
267
267
@@ -594,31 +594,31 @@ void QgsGeorefPluginGui::showCoordDialog( const QgsPointXY &pixelCoords )
594
594
void QgsGeorefPluginGui::loadGCPsDialog ()
595
595
{
596
596
QString selectedFile = mRasterFileName .isEmpty () ? QLatin1String ( " " ) : mRasterFileName + " .points" ;
597
- mGCPpointsFileName = QFileDialog::getOpenFileName ( this , tr ( " Load GCP points " ),
597
+ mGCPpointsFileName = QFileDialog::getOpenFileName ( this , tr ( " Load GCP Points " ),
598
598
selectedFile, tr ( " GCP file" ) + " (*.points)" );
599
599
if ( mGCPpointsFileName .isEmpty () )
600
600
return ;
601
601
602
602
if ( !loadGCPs () )
603
603
{
604
- mMessageBar ->pushMessage ( tr ( " Invalid GCP file " ), tr ( " GCP file could not be read." ), Qgis::Warning, messageTimeout () );
604
+ mMessageBar ->pushMessage ( tr ( " Load GCP Points " ), tr ( " Invalid GCP file. File could not be read." ), Qgis::Warning, messageTimeout () );
605
605
}
606
606
else
607
607
{
608
- mMessageBar ->pushMessage ( tr ( " GCPs loaded " ), tr ( " GCP file successfully loaded." ), Qgis::Info, messageTimeout () );
608
+ mMessageBar ->pushMessage ( tr ( " Load GCP Points " ), tr ( " GCP file successfully loaded." ), Qgis::Info, messageTimeout () );
609
609
}
610
610
}
611
611
612
612
void QgsGeorefPluginGui::saveGCPsDialog ()
613
613
{
614
614
if ( mPoints .isEmpty () )
615
615
{
616
- mMessageBar ->pushMessage ( tr ( " No GCP Points" ), tr ( " No GCP points are available to save." ), Qgis::Warning, messageTimeout () );
616
+ mMessageBar ->pushMessage ( tr ( " Save GCP Points" ), tr ( " No GCP points are available to save." ), Qgis::Warning, messageTimeout () );
617
617
return ;
618
618
}
619
619
620
620
QString selectedFile = mRasterFileName .isEmpty () ? QLatin1String ( " " ) : mRasterFileName + " .points" ;
621
- mGCPpointsFileName = QFileDialog::getSaveFileName ( this , tr ( " Save GCP points " ),
621
+ mGCPpointsFileName = QFileDialog::getSaveFileName ( this , tr ( " Save GCP Points " ),
622
622
selectedFile,
623
623
tr ( " GCP file" ) + " (*.points)" );
624
624
@@ -1352,7 +1352,7 @@ bool QgsGeorefPluginGui::georeference()
1352
1352
{
1353
1353
if ( QFile::exists ( mWorldFileName ) )
1354
1354
{
1355
- int r = QMessageBox::question ( this , tr ( " World file exists " ),
1355
+ int r = QMessageBox::question ( this , tr ( " Georeference " ),
1356
1356
tr ( " <p>The selected file already seems to have a "
1357
1357
" world file! Do you want to replace it with the "
1358
1358
" new world file?</p>" ),
@@ -1422,7 +1422,7 @@ bool QgsGeorefPluginGui::writeWorldFile( const QgsPointXY &origin, double pixelX
1422
1422
QFile file ( mWorldFileName );
1423
1423
if ( !file.open ( QIODevice::WriteOnly | QIODevice::Truncate ) )
1424
1424
{
1425
- mMessageBar ->pushMessage ( tr ( " Error " ), tr ( " Could not write to %1." ).arg ( mWorldFileName ), Qgis::Critical, messageTimeout () );
1425
+ mMessageBar ->pushMessage ( tr ( " Save World File " ), tr ( " Could not write to %1." ).arg ( mWorldFileName ), Qgis::Critical, messageTimeout () );
1426
1426
return false ;
1427
1427
}
1428
1428
@@ -1915,21 +1915,21 @@ bool QgsGeorefPluginGui::checkReadyGeoref()
1915
1915
{
1916
1916
if ( mRasterFileName .isEmpty () )
1917
1917
{
1918
- mMessageBar ->pushMessage ( tr ( " No Raster Loaded" ), tr ( " Please load raster to be georeferenced" ), Qgis::Warning, messageTimeout () );
1918
+ mMessageBar ->pushMessage ( tr ( " No Raster Loaded" ), tr ( " Please load raster to be georeferenced. " ), Qgis::Warning, messageTimeout () );
1919
1919
return false ;
1920
1920
}
1921
1921
1922
1922
if ( QgsGeorefTransform::InvalidTransform == mTransformParam )
1923
1923
{
1924
- QMessageBox::information ( this , tr ( " Info " ), tr ( " Please set transformation type" ) );
1924
+ QMessageBox::information ( this , tr ( " Georeferencer " ), tr ( " Please set transformation type. " ) );
1925
1925
getTransformSettings ();
1926
1926
return false ;
1927
1927
}
1928
1928
1929
1929
// MH: helmert transformation without warping disabled until qgis is able to read rotated rasters efficiently
1930
1930
if ( mModifiedRasterFileName .isEmpty () && QgsGeorefTransform::Linear != mTransformParam /* && QgsGeorefTransform::Helmert != mTransformParam*/ )
1931
1931
{
1932
- QMessageBox::information ( this , tr ( " Info " ), tr ( " Please set output raster name" ) );
1932
+ QMessageBox::information ( this , tr ( " Georeferencer " ), tr ( " Please set output raster name. " ) );
1933
1933
getTransformSettings ();
1934
1934
return false ;
1935
1935
}
0 commit comments