Skip to content

Commit

Permalink
add some ogr converter translation strings
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12308 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 2, 2009
1 parent e1f3079 commit 4820fa0
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/plugins/ogr_converter/dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,16 @@ void Dialog::on_buttonBox_accepted()

if ( srcUrl.isEmpty() )
{
QMessageBox::warning( this, "OGR Layer Converter",
QMessageBox::warning( this,
tr( "OGR Layer Converter" ),
tr( "Input OGR dataset is missing!" ) );
return;
}

if ( srcLayer.isEmpty() )
{
QMessageBox::warning( this, "OGR Layer Converter",
QMessageBox::warning( this,
tr( "OGR Layer Converter" ),
tr( "Input OGR layer name is missing!" ) );
return;
}
Expand All @@ -258,21 +260,24 @@ void Dialog::on_buttonBox_accepted()

if ( dstFormat.isEmpty() )
{
QMessageBox::warning( this, "OGR Layer Converter",
QMessageBox::warning( this,
tr( "OGR Layer Converter" ),
tr( "Target OGR format not selected!" ) );
return;
}

if ( dstUrl.isEmpty() )
{
QMessageBox::warning( this, "OGR Layer Converter",
QMessageBox::warning( this,
tr( "OGR Layer Converter" ),
tr( "Output OGR dataset is missing!" ) );
return;
}

if ( dstLayer.isEmpty() )
{
QMessageBox::warning( this, "OGR Layer Converter",
QMessageBox::warning( this,
tr( "OGR Layer Converter" ),
tr( "Output OGR layer name is missing!" ) );
return;
}
Expand All @@ -294,12 +299,14 @@ void Dialog::on_buttonBox_accepted()

if ( success )
{
QMessageBox::information( this, "OGR Layer Converter",
QMessageBox::information( this,
tr( "OGR Layer Converter" ),
tr( "Successfully translated layer '%1'" ).arg( srcLayer ) );
}
else
{
QMessageBox::information( this, "OGR Layer Converter",
QMessageBox::information( this,
tr( "OGR Layer Converter" ),
tr( "Failed to translate layer '%1'" ).arg( srcLayer ) );
}

Expand Down

0 comments on commit 4820fa0

Please sign in to comment.