@@ -111,7 +111,7 @@ void QgsSpit::populateConnectionList()
111
111
112
112
void QgsSpit::newConnection ()
113
113
{
114
- QgsConnectionDialog * con = new QgsConnectionDialog ( this , " New Connection" );
114
+ QgsConnectionDialog * con = new QgsConnectionDialog ( this , tr ( " New Connection" ) );
115
115
116
116
if ( con->exec () )
117
117
{
@@ -159,9 +159,9 @@ void QgsSpit::addFile()
159
159
QSettings settings (" QuantumGIS" , " qgis" );
160
160
161
161
QStringList files = QFileDialog::getOpenFileNames (this ,
162
- " Add Shapefiles" ,
162
+ tr ( " Add Shapefiles" ) ,
163
163
settings.readEntry ( " /Plugin-Spit/last_directory" ),
164
- " Shapefiles (*.shp);;All files (*.*)" );
164
+ tr ( " Shapefiles (*.shp);;All files (*.*)" ) );
165
165
if ( files.size () > 0 )
166
166
{
167
167
// Save the directory for future use
@@ -541,7 +541,7 @@ void QgsSpit::import()
541
541
for ( int k = 1 ; k < names_copy.size (); k++ )
542
542
{
543
543
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 ] );
545
545
if ( names_copy[ k ] == names_copy[ k - 1 ] )
546
546
dupl += names_copy[ k ] + " \n " ;
547
547
}
@@ -571,8 +571,8 @@ void QgsSpit::import()
571
571
QString err = PQresultErrorMessage ( res );
572
572
qWarning ( err );
573
573
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:" ) +
576
576
err + " </p>" );
577
577
pro.setValue ( pro.value () + tblShapefiles->item ( i, ColFEATURECOUNT )->text ().toInt () );
578
578
continue ;
@@ -592,8 +592,8 @@ void QgsSpit::import()
592
592
QString err = PQresultErrorMessage ( res );
593
593
qWarning ( err );
594
594
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:" ) +
597
597
err + " </p>" );
598
598
599
599
pro.setValue ( pro.value () + tblShapefiles->item ( i, ColFEATURECOUNT )->text ().toInt () );
@@ -612,8 +612,8 @@ void QgsSpit::import()
612
612
QString err = PQresultErrorMessage ( res );
613
613
qWarning ( err );
614
614
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:" ) +
617
617
err + " </p>" );
618
618
pro.setValue ( pro.value () + tblShapefiles->item ( i, ColFEATURECOUNT )->text ().toInt () );
619
619
continue ;
@@ -636,8 +636,8 @@ void QgsSpit::import()
636
636
qWarning ( err );
637
637
qWarning ( PQresStatus ( PQresultStatus ( res ) ) );
638
638
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:" ) +
641
641
err + " </p>" );
642
642
pro.setValue ( pro.value () + tblShapefiles->item ( i, ColFEATURECOUNT )->text ().toInt () );
643
643
continue ;
@@ -675,8 +675,8 @@ void QgsSpit::import()
675
675
QString err = PQresultErrorMessage ( res );
676
676
qWarning ( err );
677
677
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:" ) +
680
680
err + " </p>" );
681
681
pro.setValue ( pro.value () + tblShapefiles->item ( i, ColFEATURECOUNT )->text ().toInt () );
682
682
continue ;
@@ -700,8 +700,8 @@ void QgsSpit::import()
700
700
QString err = PQresultErrorMessage ( res );
701
701
qWarning ( err );
702
702
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:" ) +
705
705
err + " </p>" );
706
706
pro.setValue ( pro.value () + tblShapefiles->item ( i, ColFEATURECOUNT )->text ().toInt () );
707
707
continue ;
@@ -721,8 +721,8 @@ void QgsSpit::import()
721
721
QString err = PQresultErrorMessage ( res );
722
722
qWarning ( err );
723
723
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:" ) +
726
726
err + " </p>" );
727
727
}
728
728
else
@@ -747,8 +747,8 @@ void QgsSpit::import()
747
747
QString err = PQresultErrorMessage ( res );
748
748
qWarning ( err );
749
749
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:" ) +
752
752
err + " </p>" );
753
753
continue ;
754
754
}
@@ -781,8 +781,8 @@ void QgsSpit::import()
781
781
QString err = PQresultErrorMessage ( res );
782
782
qWarning ( err );
783
783
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:" ) +
786
786
err + " </p>" );
787
787
}
788
788
else
0 commit comments