@@ -161,7 +161,7 @@ void QgsGpsPlugin::createGPX()
161
161
QString dir = settings.value ( QStringLiteral ( " Plugin-GPS/gpxdirectory" ), QDir::homePath () ).toString ();
162
162
QString fileName =
163
163
QFileDialog::getSaveFileName ( mQGisInterface ->mainWindow (),
164
- tr ( " Save new GPX file as…" ),
164
+ tr ( " Save New GPX File as…" ),
165
165
dir,
166
166
tr ( " GPS eXchange file" ) + " (*.gpx)" );
167
167
if ( !fileName.isEmpty () )
@@ -174,7 +174,7 @@ void QgsGpsPlugin::createGPX()
174
174
std::ofstream ofs ( fileName.toUtf8 () );
175
175
if ( !ofs )
176
176
{
177
- QMessageBox::warning ( nullptr , tr ( " Could not create file " ),
177
+ QMessageBox::warning ( nullptr , tr ( " Save New GPX File as… " ),
178
178
tr ( " Unable to create a GPX file with the given name. "
179
179
" Try again with another name or in another "
180
180
" directory." ) );
@@ -265,8 +265,8 @@ void QgsGpsPlugin::importGPSFile( const QString &inputFileName, QgsBabelFormat *
265
265
babelProcess.start ( babelArgs.join ( QStringLiteral ( " " ) ) );
266
266
if ( !babelProcess.waitForStarted () )
267
267
{
268
- QMessageBox::warning ( nullptr , tr ( " Could not start process " ),
269
- tr ( " Could not start GPSBabel! " ) );
268
+ QMessageBox::warning ( nullptr , tr ( " Import GPS File " ),
269
+ tr ( " Could not start GPSBabel. " ) );
270
270
return ;
271
271
}
272
272
@@ -289,7 +289,7 @@ void QgsGpsPlugin::importGPSFile( const QString &inputFileName, QgsBabelFormat *
289
289
QString errorMsg ( tr ( " Could not import data from %1!\n\n " )
290
290
.arg ( inputFileName ) );
291
291
errorMsg += babelError;
292
- QMessageBox::warning ( nullptr , tr ( " Error importing data " ), errorMsg );
292
+ QMessageBox::warning ( nullptr , tr ( " Import GPS File " ), errorMsg );
293
293
return ;
294
294
}
295
295
@@ -344,7 +344,7 @@ void QgsGpsPlugin::convertGPSFile( const QString &inputFileName,
344
344
babelProcess.start ( babelArgs.join ( QStringLiteral ( " " ) ) );
345
345
if ( !babelProcess.waitForStarted () )
346
346
{
347
- QMessageBox::warning ( nullptr , tr ( " Could not start process " ),
347
+ QMessageBox::warning ( nullptr , tr ( " Convert GPS File " ),
348
348
tr ( " Could not start GPSBabel!" ) );
349
349
return ;
350
350
}
@@ -366,7 +366,7 @@ void QgsGpsPlugin::convertGPSFile( const QString &inputFileName,
366
366
QString errorMsg ( tr ( " Could not convert data from %1!\n\n " )
367
367
.arg ( inputFileName ) );
368
368
errorMsg += babelError;
369
- QMessageBox::warning ( nullptr , tr ( " Error converting data " ), errorMsg );
369
+ QMessageBox::warning ( nullptr , tr ( " Convert GPS File " ), errorMsg );
370
370
return ;
371
371
}
372
372
@@ -423,7 +423,7 @@ void QgsGpsPlugin::downloadFromGPS( const QString &device, const QString &port,
423
423
port, outputFileName );
424
424
if ( babelArgs.isEmpty () )
425
425
{
426
- QMessageBox::warning ( nullptr , tr ( " Not supported " ),
426
+ QMessageBox::warning ( nullptr , tr ( " Download from GPS " ),
427
427
tr ( " This device does not support downloading of %1." )
428
428
.arg ( features ) );
429
429
return ;
@@ -435,7 +435,7 @@ void QgsGpsPlugin::downloadFromGPS( const QString &device, const QString &port,
435
435
babelProcess.start ( babelArgs.join ( QStringLiteral ( " " ) ) );
436
436
if ( !babelProcess.waitForStarted () )
437
437
{
438
- QMessageBox::warning ( nullptr , tr ( " Could not start process " ),
438
+ QMessageBox::warning ( nullptr , tr ( " Download from GPS " ),
439
439
tr ( " Could not start GPSBabel!" ) );
440
440
return ;
441
441
}
@@ -456,7 +456,7 @@ void QgsGpsPlugin::downloadFromGPS( const QString &device, const QString &port,
456
456
QString babelError ( babelProcess.readAllStandardError () );
457
457
QString errorMsg ( tr ( " Could not download data from GPS!\n\n " ) );
458
458
errorMsg += babelError;
459
- QMessageBox::warning ( nullptr , tr ( " Error downloading data " ), errorMsg );
459
+ QMessageBox::warning ( nullptr , tr ( " Download from GPS " ), errorMsg );
460
460
return ;
461
461
}
462
462
@@ -513,7 +513,7 @@ void QgsGpsPlugin::uploadToGPS( QgsVectorLayer *gpxLayer, const QString &device,
513
513
source.left ( source.lastIndexOf ( ' ?' ) ), port );
514
514
if ( babelArgs.isEmpty () )
515
515
{
516
- QMessageBox::warning ( nullptr , tr ( " Not supported " ),
516
+ QMessageBox::warning ( nullptr , tr ( " Upload to GPS " ),
517
517
tr ( " This device does not support uploading of %1." )
518
518
.arg ( features ) );
519
519
return ;
@@ -525,7 +525,7 @@ void QgsGpsPlugin::uploadToGPS( QgsVectorLayer *gpxLayer, const QString &device,
525
525
babelProcess.start ( babelArgs.join ( QStringLiteral ( " " ) ) );
526
526
if ( !babelProcess.waitForStarted () )
527
527
{
528
- QMessageBox::warning ( nullptr , tr ( " Could not start process " ),
528
+ QMessageBox::warning ( nullptr , tr ( " Upload to GPS " ),
529
529
tr ( " Could not start GPSBabel!" ) );
530
530
return ;
531
531
}
@@ -546,7 +546,7 @@ void QgsGpsPlugin::uploadToGPS( QgsVectorLayer *gpxLayer, const QString &device,
546
546
QString babelError ( babelProcess.readAllStandardError () );
547
547
QString errorMsg ( tr ( " Error while uploading data to GPS!\n\n " ) );
548
548
errorMsg += babelError;
549
- QMessageBox::warning ( nullptr , tr ( " Error uploading data " ), errorMsg );
549
+ QMessageBox::warning ( nullptr , tr ( " Upload to GPS " ), errorMsg );
550
550
return ;
551
551
}
552
552
0 commit comments