Skip to content

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed
 

‎src/plugins/spit/qgsspit.cpp

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void QgsSpit::populateConnectionList()
111111

112112
void QgsSpit::newConnection()
113113
{
114-
QgsConnectionDialog * con = new QgsConnectionDialog( this, "New Connection" );
114+
QgsConnectionDialog * con = new QgsConnectionDialog( this, tr("New Connection") );
115115

116116
if ( con->exec() )
117117
{
@@ -159,9 +159,9 @@ void QgsSpit::addFile()
159159
QSettings settings("QuantumGIS", "qgis");
160160

161161
QStringList files = QFileDialog::getOpenFileNames(this,
162-
"Add Shapefiles",
162+
tr("Add Shapefiles"),
163163
settings.readEntry( "/Plugin-Spit/last_directory" ),
164-
"Shapefiles (*.shp);;All files (*.*)" );
164+
tr("Shapefiles (*.shp);;All files (*.*)") );
165165
if ( files.size() > 0 )
166166
{
167167
// Save the directory for future use
@@ -541,7 +541,7 @@ void QgsSpit::import()
541541
for ( int k = 1; k < names_copy.size(); k++ )
542542
{
543543
std::cerr << "USING :" << names_copy[ k ].toLocal8Bit().data() << " index " << k << std::endl;
544-
qWarning( "Checking to see if " + names_copy[ k ] + " == " + names_copy[ k - 1 ] );
544+
qWarning( tr("Checking to see if ") + names_copy[ k ] + " == " + names_copy[ k - 1 ] );
545545
if ( names_copy[ k ] == names_copy[ k - 1 ] )
546546
dupl += names_copy[ k ] + "\n";
547547
}
@@ -571,8 +571,8 @@ void QgsSpit::import()
571571
QString err = PQresultErrorMessage( res );
572572
qWarning( err );
573573
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
574-
"<p>Error while executing the SQL:</p><p>" +
575-
query + "</p><p>The database said:" +
574+
tr("<p>Error while executing the SQL:</p><p>") +
575+
query + tr("</p><p>The database said:") +
576576
err + "</p>" );
577577
pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
578578
continue;
@@ -592,8 +592,8 @@ void QgsSpit::import()
592592
QString err = PQresultErrorMessage( res );
593593
qWarning( err );
594594
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
595-
"<p>Error while executing the SQL:</p><p>" +
596-
query + "</p><p>The database said:" +
595+
tr("<p>Error while executing the SQL:</p><p>") +
596+
query + tr("</p><p>The database said:") +
597597
err + "</p>" );
598598

599599
pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
@@ -612,8 +612,8 @@ void QgsSpit::import()
612612
QString err = PQresultErrorMessage( res );
613613
qWarning( err );
614614
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
615-
"<p>Error while executing the SQL:</p><p>" +
616-
query + "</p><p>The database said:" +
615+
tr("<p>Error while executing the SQL:</p><p>") +
616+
query + tr("</p><p>The database said:") +
617617
err + "</p>" );
618618
pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
619619
continue;
@@ -636,8 +636,8 @@ void QgsSpit::import()
636636
qWarning( err );
637637
qWarning( PQresStatus( PQresultStatus( res ) ) );
638638
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
639-
"<p>Error while executing the SQL:</p><p>" +
640-
query + "</p><p>The database said:" +
639+
tr("<p>Error while executing the SQL:</p><p>") +
640+
query + tr("</p><p>The database said:") +
641641
err + "</p>" );
642642
pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
643643
continue;
@@ -675,8 +675,8 @@ void QgsSpit::import()
675675
QString err = PQresultErrorMessage( res );
676676
qWarning( err );
677677
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
678-
"<p>Error while executing the SQL:</p><p>" +
679-
query + "</p><p>The database said:" +
678+
tr("<p>Error while executing the SQL:</p><p>") +
679+
query + tr("</p><p>The database said:") +
680680
err + "</p>" );
681681
pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
682682
continue;
@@ -700,8 +700,8 @@ void QgsSpit::import()
700700
QString err = PQresultErrorMessage( res );
701701
qWarning( err );
702702
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
703-
"<p>Error while executing the SQL:</p><p>" +
704-
query + "</p><p>The database said:" +
703+
tr("<p>Error while executing the SQL:</p><p>") +
704+
query + tr("</p><p>The database said:") +
705705
err + "</p>" );
706706
pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
707707
continue;
@@ -721,8 +721,8 @@ void QgsSpit::import()
721721
QString err = PQresultErrorMessage( res );
722722
qWarning( err );
723723
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
724-
"<p>Error while executing the SQL:</p><p>" +
725-
query + "</p><p>The database said:" +
724+
tr("<p>Error while executing the SQL:</p><p>") +
725+
query + tr("</p><p>The database said:") +
726726
err + "</p>" );
727727
}
728728
else
@@ -747,8 +747,8 @@ void QgsSpit::import()
747747
QString err = PQresultErrorMessage( res );
748748
qWarning( err );
749749
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
750-
"<p>Error while executing the SQL:</p><p>" +
751-
query + "</p><p>The database said:" +
750+
tr("<p>Error while executing the SQL:</p><p>") +
751+
query + tr("</p><p>The database said:") +
752752
err + "</p>" );
753753
continue;
754754
}
@@ -781,8 +781,8 @@ void QgsSpit::import()
781781
QString err = PQresultErrorMessage( res );
782782
qWarning( err );
783783
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
784-
"<p>Error while executing the SQL:</p><p>" +
785-
query + "</p><p>The database said:" +
784+
tr("<p>Error while executing the SQL:</p><p>") +
785+
query + tr("</p><p>The database said:") +
786786
err + "</p>" );
787787
}
788788
else

0 commit comments

Comments
 (0)
Please sign in to comment.