Skip to content

Commit

Permalink
Added patch #685 from lubaby (+ some more) to 0.8
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6837 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Mar 27, 2007
1 parent 7091eb5 commit fea112e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1833,7 +1833,7 @@ bool QgsVectorLayer::deleteSelectedFeatures()
if(!isEditable())
{
QMessageBox::information(0, tr("Layer not editable"),
tr("The current layer is not editable. Choose 'Allow editing' in the legend item right click menu"));
tr("The current layer is not editable. Choose 'Allow editing' in the legend item right click menu."));
return false;
}

Expand Down
48 changes: 24 additions & 24 deletions src/plugins/grass/qgsgrassedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,19 +386,19 @@ void QgsGrassEdit::init()

// Set symbology names
mSymbName.resize(SYMB_COUNT);
mSymbName[SYMB_BACKGROUND] = "Background";
mSymbName[SYMB_HIGHLIGHT] = "Highlight";
mSymbName[SYMB_DYNAMIC] = "Dynamic";
mSymbName[SYMB_POINT] = "Point";
mSymbName[SYMB_LINE] = "Line";
mSymbName[SYMB_BOUNDARY_0] = "Boundary (no area)";
mSymbName[SYMB_BOUNDARY_1] = "Boundary (1 area)";
mSymbName[SYMB_BOUNDARY_2] = "Boundary (2 areas)";
mSymbName[SYMB_CENTROID_IN] = "Centroid (in area)";
mSymbName[SYMB_CENTROID_OUT] = "Centroid (outside area)";
mSymbName[SYMB_CENTROID_DUPL] = "Centroid (duplicate in area)";
mSymbName[SYMB_NODE_1] = "Node (1 line)";
mSymbName[SYMB_NODE_2] = "Node (2 lines)";
mSymbName[SYMB_BACKGROUND] = tr("Background");
mSymbName[SYMB_HIGHLIGHT] = tr("Highlight");
mSymbName[SYMB_DYNAMIC] = tr("Dynamic");
mSymbName[SYMB_POINT] = tr("Point");
mSymbName[SYMB_LINE] = tr("Line");
mSymbName[SYMB_BOUNDARY_0] = tr("Boundary (no area)");
mSymbName[SYMB_BOUNDARY_1] = tr("Boundary (1 area)");
mSymbName[SYMB_BOUNDARY_2] = tr("Boundary (2 areas)");
mSymbName[SYMB_CENTROID_IN] = tr("Centroid (in area)");
mSymbName[SYMB_CENTROID_OUT] = tr("Centroid (outside area)");
mSymbName[SYMB_CENTROID_DUPL] = tr("Centroid (duplicate in area)");
mSymbName[SYMB_NODE_1] = tr("Node (1 line)");
mSymbName[SYMB_NODE_2] = tr("Node (2 lines)");

// Restore symbology
QString spath = "/GRASS/edit/symb/";
Expand Down Expand Up @@ -431,13 +431,13 @@ void QgsGrassEdit::init()
}

// Set Symbology in dialog
symbologyList->setColumnText(0,"Disp");
symbologyList->setColumnText(0,tr("Disp","Column title") );
symbologyList->setColumnWidth(0,20);
symbologyList->addColumn("Color");
symbologyList->addColumn( tr("Color","Column title") );
symbologyList->setColumnWidth(0,50);
symbologyList->addColumn("Type");
symbologyList->addColumn( tr("Type","Column title") );
symbologyList->setColumnWidthMode(2,Q3ListView::Maximum);
symbologyList->addColumn("Index", 0);
symbologyList->addColumn(tr("Index","Column title") , 0);
symbologyList->clear();
symbologyList->setSorting(-1);

Expand Down Expand Up @@ -467,9 +467,9 @@ void QgsGrassEdit::init()

// Init table tab
mAttributeTable->setLeftMargin(0); // hide row labels
mAttributeTable->horizontalHeader()->setLabel( 0, "Column" );
mAttributeTable->horizontalHeader()->setLabel( 1, "Type" );
mAttributeTable->horizontalHeader()->setLabel( 2, "Length" );
mAttributeTable->horizontalHeader()->setLabel( 0, tr("Column") );
mAttributeTable->horizontalHeader()->setLabel( 1, tr("Type") );
mAttributeTable->horizontalHeader()->setLabel( 2, tr("Length") );

int ndblinks = mProvider->numDbLinks();

Expand Down Expand Up @@ -527,9 +527,9 @@ void QgsGrassEdit::init()
mRubberBandIcon->show();

// Init GUI values
mCatModeBox->insertItem( "Next not used", CAT_MODE_NEXT );
mCatModeBox->insertItem( "Manual entry", CAT_MODE_MANUAL );
mCatModeBox->insertItem( "No category", CAT_MODE_NOCAT );
mCatModeBox->insertItem( tr("Next not used"), CAT_MODE_NEXT );
mCatModeBox->insertItem( tr("Manual entry"), CAT_MODE_MANUAL );
mCatModeBox->insertItem( tr("No category"), CAT_MODE_NOCAT );
catModeChanged ( );

// TODO: how to get keyboard events from canvas (shortcuts)
Expand Down Expand Up @@ -1829,7 +1829,7 @@ void QgsGrassEdit::setCanvasPropmt( QString left, QString mid, QString rigth)
mCanvasPrompt = "";
if ( left.length() > 0 ) mCanvasPrompt.append ( tr("Left: ") + left + " " );
if ( mid.length() > 0 ) mCanvasPrompt.append ( tr("Middle: ") + mid + " " );
if ( rigth.length() > 0 ) mCanvasPrompt.append ( tr("Rigth: ") + rigth );
if ( rigth.length() > 0 ) mCanvasPrompt.append ( tr("Right: ") + rigth );
}

void QgsGrassEdit::attributesClosed()
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grid_maker/plugingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void QgsGridMakerPluginGui::on_pbnOK_clicked()
if (leOutputShapeFile->text().isEmpty())
{
QMessageBox::warning( 0, tr("QGIS - Grid Maker"),
QString(tr("Please enter the file name before pressing OK!.") ));
QString(tr("Please enter the file name before pressing OK!") ));
return;
}

Expand Down
8 changes: 4 additions & 4 deletions src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2069,7 +2069,7 @@ bool QgsPostgresProvider::changeAttributeValues(std::map<int,std::map<QString,QS
if (result==0)
{
QMessageBox::critical(0, tr("PostGIS error"),
tr("An error occured contacting the PostgreSQL databse"),
tr("An error occured contacting the PostgreSQL database"),
QMessageBox::Ok,
Qt::NoButton);
return false;
Expand All @@ -2078,7 +2078,7 @@ bool QgsPostgresProvider::changeAttributeValues(std::map<int,std::map<QString,QS
if(message==PGRES_FATAL_ERROR)
{
QMessageBox::information(0, tr("PostGIS error"),
tr("The PostgreSQL databse returned: ")
tr("The PostgreSQL database returned: ")
+ QString(PQresultErrorMessage(result))
+ "\n"
+ tr("When trying: ")
Expand Down Expand Up @@ -2195,7 +2195,7 @@ bool QgsPostgresProvider::changeGeometryValues(std::map<int, QgsGeometry> & geom
if (result==0)
{
QMessageBox::critical(0, tr("PostGIS error"),
tr("An error occured contacting the PostgreSQL databse"),
tr("An error occured contacting the PostgreSQL database"),
QMessageBox::Ok,
Qt::NoButton);
return false;
Expand All @@ -2204,7 +2204,7 @@ bool QgsPostgresProvider::changeGeometryValues(std::map<int, QgsGeometry> & geom
if(message==PGRES_FATAL_ERROR)
{
QMessageBox::information(0, tr("PostGIS error"),
tr("The PostgreSQL databse returned: ")
tr("The PostgreSQL database returned: ")
+ QString(PQresultErrorMessage(result))
+ "\n"
+ tr("When trying: ")
Expand Down

0 comments on commit fea112e

Please sign in to comment.