Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add tr() to some user visible text
git-svn-id: http://svn.osgeo.org/qgis/trunk@5965 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Oct 17, 2006
1 parent 1aca82d commit 6a53975
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/plugins/spit/qgsspit.cpp
Expand Up @@ -111,7 +111,7 @@ void QgsSpit::populateConnectionList()

void QgsSpit::newConnection()
{
QgsConnectionDialog * con = new QgsConnectionDialog( this, "New Connection" );
QgsConnectionDialog * con = new QgsConnectionDialog( this, tr("New Connection") );

if ( con->exec() )
{
Expand Down Expand Up @@ -159,9 +159,9 @@ void QgsSpit::addFile()
QSettings settings("QuantumGIS", "qgis");

QStringList files = QFileDialog::getOpenFileNames(this,
"Add Shapefiles",
tr("Add Shapefiles"),
settings.readEntry( "/Plugin-Spit/last_directory" ),
"Shapefiles (*.shp);;All files (*.*)" );
tr("Shapefiles (*.shp);;All files (*.*)") );
if ( files.size() > 0 )
{
// Save the directory for future use
Expand Down Expand Up @@ -541,7 +541,7 @@ void QgsSpit::import()
for ( int k = 1; k < names_copy.size(); k++ )
{
std::cerr << "USING :" << names_copy[ k ].toLocal8Bit().data() << " index " << k << std::endl;
qWarning( "Checking to see if " + names_copy[ k ] + " == " + names_copy[ k - 1 ] );
qWarning( tr("Checking to see if ") + names_copy[ k ] + " == " + names_copy[ k - 1 ] );
if ( names_copy[ k ] == names_copy[ k - 1 ] )
dupl += names_copy[ k ] + "\n";
}
Expand Down Expand Up @@ -571,8 +571,8 @@ void QgsSpit::import()
QString err = PQresultErrorMessage( res );
qWarning( err );
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
"<p>Error while executing the SQL:</p><p>" +
query + "</p><p>The database said:" +
tr("<p>Error while executing the SQL:</p><p>") +
query + tr("</p><p>The database said:") +
err + "</p>" );
pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
continue;
Expand All @@ -592,8 +592,8 @@ void QgsSpit::import()
QString err = PQresultErrorMessage( res );
qWarning( err );
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
"<p>Error while executing the SQL:</p><p>" +
query + "</p><p>The database said:" +
tr("<p>Error while executing the SQL:</p><p>") +
query + tr("</p><p>The database said:") +
err + "</p>" );

pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
Expand All @@ -612,8 +612,8 @@ void QgsSpit::import()
QString err = PQresultErrorMessage( res );
qWarning( err );
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
"<p>Error while executing the SQL:</p><p>" +
query + "</p><p>The database said:" +
tr("<p>Error while executing the SQL:</p><p>") +
query + tr("</p><p>The database said:") +
err + "</p>" );
pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
continue;
Expand All @@ -636,8 +636,8 @@ void QgsSpit::import()
qWarning( err );
qWarning( PQresStatus( PQresultStatus( res ) ) );
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
"<p>Error while executing the SQL:</p><p>" +
query + "</p><p>The database said:" +
tr("<p>Error while executing the SQL:</p><p>") +
query + tr("</p><p>The database said:") +
err + "</p>" );
pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
continue;
Expand Down Expand Up @@ -675,8 +675,8 @@ void QgsSpit::import()
QString err = PQresultErrorMessage( res );
qWarning( err );
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
"<p>Error while executing the SQL:</p><p>" +
query + "</p><p>The database said:" +
tr("<p>Error while executing the SQL:</p><p>") +
query + tr("</p><p>The database said:") +
err + "</p>" );
pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
continue;
Expand All @@ -700,8 +700,8 @@ void QgsSpit::import()
QString err = PQresultErrorMessage( res );
qWarning( err );
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
"<p>Error while executing the SQL:</p><p>" +
query + "</p><p>The database said:" +
tr("<p>Error while executing the SQL:</p><p>") +
query + tr("</p><p>The database said:") +
err + "</p>" );
pro.setValue( pro.value() + tblShapefiles->item( i, ColFEATURECOUNT )->text().toInt() );
continue;
Expand All @@ -721,8 +721,8 @@ void QgsSpit::import()
QString err = PQresultErrorMessage( res );
qWarning( err );
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
"<p>Error while executing the SQL:</p><p>" +
query + "</p><p>The database said:" +
tr("<p>Error while executing the SQL:</p><p>") +
query + tr("</p><p>The database said:") +
err + "</p>" );
}
else
Expand All @@ -747,8 +747,8 @@ void QgsSpit::import()
QString err = PQresultErrorMessage( res );
qWarning( err );
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
"<p>Error while executing the SQL:</p><p>" +
query + "</p><p>The database said:" +
tr("<p>Error while executing the SQL:</p><p>") +
query + tr("</p><p>The database said:") +
err + "</p>" );
continue;
}
Expand Down Expand Up @@ -781,8 +781,8 @@ void QgsSpit::import()
QString err = PQresultErrorMessage( res );
qWarning( err );
QMessageBox::warning( &pro, tr("Import Shapefiles"), error + "\n" +
"<p>Error while executing the SQL:</p><p>" +
query + "</p><p>The database said:" +
tr("<p>Error while executing the SQL:</p><p>") +
query + tr("</p><p>The database said:") +
err + "</p>" );
}
else
Expand Down

0 comments on commit 6a53975

Please sign in to comment.