Skip to content
Permalink
Browse files

add some ogr converter translation strings

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12308 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 2, 2009
1 parent e1f3079 commit 4820fa0b3b3cc44f82f9f7fb9be414ab550f138f
Showing with 14 additions and 7 deletions.
  1. +14 −7 src/plugins/ogr_converter/dialog.cpp
@@ -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;
}
@@ -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;
}
@@ -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 ) );
}

0 comments on commit 4820fa0

Please sign in to comment.