Skip to content

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 21, 2016
1 parent 3f94adc commit 4d2c108
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions python/plugins/db_manager/dlg_query_builder.py
Expand Up @@ -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()
Expand All @@ -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:
Expand Down
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/v_net_flow.py
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion src/python/qgspythonutilsimpl.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 4d2c108

Please sign in to comment.