Skip to content

Commit 427cb0b

Browse files
Gustrynyalldawson
authored andcommitted
fix some HIG and add missing translations in dbmanager
1 parent ac9c6f1 commit 427cb0b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/plugins/db_manager/dlg_sql_window.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def __init__(self, iface, db, parent=None):
9696
self.populateQueryHistory()
9797
self.btnQueryHistory.toggled.connect(self.showHideQueryHistory)
9898

99-
self.btnCancel.setText(self.tr("Cancel (ESC)"))
10099
self.btnCancel.setEnabled(False)
101100
self.btnCancel.clicked.connect(self.executeSqlCanceled)
102101
self.btnCancel.setShortcut(QKeySequence.Cancel)
@@ -586,7 +585,7 @@ def displayQueryBuilder(self):
586585
self.editSql.setText(dlg.query)
587586

588587
def createView(self):
589-
name, ok = QInputDialog.getText(None, "View name", "View name")
588+
name, ok = QInputDialog.getText(None, self.tr("View Name"), self.tr("View name"))
590589
if ok:
591590
try:
592591
self.db.connector.createSpatialView(name, self._getSqlQuery())

0 commit comments

Comments
 (0)