Skip to content
Permalink
Browse files

typo fixes

  • Loading branch information
jef-n committed Jan 21, 2016
1 parent 3f94adc commit 4d2c10800dbc814b37fe931e774cd6f253812575
@@ -200,8 +200,8 @@ def add_tables(self):
return # No object with this name
self.table = tableObj[0]
if (ag in self.coltables): # table already use
reponse = QMessageBox.question(self, "Table already used", "Do you want to add table %s again ?" % ag, QMessageBox.Yes | QMessageBox.No)
if reponse == QMessageBox.No:
response = QMessageBox.question(self, "Table already used", "Do you want to add table %s again?" % ag, QMessageBox.Yes | QMessageBox.No)
if response == QMessageBox.No:
return
ag = self.table.quotedName()
txt = self.ui.tab.text()
@@ -217,16 +217,16 @@ def add_columns(self):
ag = self.ui.columns.currentText()
if self.evt.focus == "where": # in where section
if ag in self.col_where: # column already called in where section
reponse = QMessageBox.question(self, "Column already used in WHERE clause", "Do you want to add column %s again ?" % ag, QMessageBox.Yes | QMessageBox.No)
if reponse == QMessageBox.No:
response = QMessageBox.question(self, "Column already used in WHERE clause", "Do you want to add column %s again?" % ag, QMessageBox.Yes | QMessageBox.No)
if response == QMessageBox.No:
self.ui.columns.setCurrentIndex(0)
return
self.ui.where.insertPlainText(ag)
self.col_where.append(ag)
elif self.evt.focus == "col":
if ag in self.col_col: # column already called in col section
reponse = QMessageBox.question(self, "Column already used in COLUMNS section", "Do you want to add column %s again ?" % ag, QMessageBox.Yes | QMessageBox.No)
if reponse == QMessageBox.No:
response = QMessageBox.question(self, "Column already used in COLUMNS section", "Do you want to add column %s again?" % ag, QMessageBox.Yes | QMessageBox.No)
if response == QMessageBox.No:
self.ui.columns.setCurrentIndex(0)
return
if len(self.ui.col.toPlainText().strip()) > 0:
@@ -39,7 +39,7 @@ def checkParameterValuesBeforeExecuting(alg):
if (values[0] or values[2]) and (values[1] or values[3]):
return None

return alg.tr("You need to set at least setX_where or setX_cats parameters for each set !")
return alg.tr("You need to set at least setX_where or setX_cats parameters for each set!")


def processCommand(alg):
@@ -40,7 +40,7 @@ def checkParameterValuesBeforeExecuting(alg):
if (values[0] or values[2]) and (values[1] or values[3]):
return None

return alg.tr("You need to set at least source/sink_where or source/sink_cats parameters for each set !")
return alg.tr("You need to set at least source/sink_where or source/sink_cats parameters for each set!")


def processCommand(alg):
@@ -85,7 +85,7 @@ bool QgsPythonUtilsImpl::checkSystemImports()
{
QgsMessageOutput* msg = QgsMessageOutput::createMessageOutput();
msg->setTitle( QObject::tr( "Python error" ) );
msg->setMessage( QString( QObject::tr( "The extra plugin path '%1' does not exist !" ) ).arg( p ), QgsMessageOutput::MessageText );
msg->setMessage( QObject::tr( "The extra plugin path '%1' does not exist!" ).arg( p ), QgsMessageOutput::MessageText );
msg->showMessage();
}
#ifdef Q_OS_WIN

0 comments on commit 4d2c108

Please sign in to comment.
You can’t perform that action at this time.