@@ -273,23 +273,23 @@ def accept(self):
273
273
274
274
# sanity checks
275
275
if self .inLayer is None :
276
- QMessageBox .information (self , self .tr ("Import to database " ), self .tr ("Input layer missing or not valid" ))
276
+ QMessageBox .critical (self , self .tr ("Import to Database " ), self .tr ("Input layer missing or not valid. " ))
277
277
return
278
278
279
279
if self .cboTable .currentText () == "" :
280
- QMessageBox .information (self , self .tr ("Import to database " ), self .tr ("Output table name is required" ))
280
+ QMessageBox .critical (self , self .tr ("Import to Database " ), self .tr ("Output table name is required. " ))
281
281
return
282
282
283
283
if self .chkSourceSrid .isEnabled () and self .chkSourceSrid .isChecked ():
284
284
if not self .widgetSourceSrid .crs ().isValid ():
285
- QMessageBox .critical (self , self .tr ("Import to database " ),
286
- self .tr ("Invalid source srid: must be a valid crs" ))
285
+ QMessageBox .critical (self , self .tr ("Import to Database " ),
286
+ self .tr ("Invalid source srid: must be a valid crs. " ))
287
287
return
288
288
289
289
if self .chkTargetSrid .isEnabled () and self .chkTargetSrid .isChecked ():
290
290
if not self .widgetTargetSrid .crs ().isValid ():
291
- QMessageBox .critical (self , self .tr ("Import to database " ),
292
- self .tr ("Invalid target srid: must be a valid crs" ))
291
+ QMessageBox .critical (self , self .tr ("Import to Database " ),
292
+ self .tr ("Invalid target srid: must be a valid crs. " ))
293
293
return
294
294
295
295
with OverrideCursor (Qt .WaitCursor ):
@@ -369,7 +369,7 @@ def accept(self):
369
369
370
370
if ret != 0 :
371
371
output = QgsMessageViewer ()
372
- output .setTitle (self .tr ("Import to database " ))
372
+ output .setTitle (self .tr ("Import to Database " ))
373
373
output .setMessageAsPlainText (self .tr ("Error {0}\n {1}" ).format (ret , errMsg ))
374
374
output .showMessage ()
375
375
return
@@ -380,7 +380,7 @@ def accept(self):
380
380
381
381
self .db .connection ().reconnect ()
382
382
self .db .refresh ()
383
- QMessageBox .information (self , self .tr ("Import to database " ), self .tr ("Import was successful." ))
383
+ QMessageBox .information (self , self .tr ("Import to Database " ), self .tr ("Import was successful." ))
384
384
return QDialog .accept (self )
385
385
386
386
def closeEvent (self , event ):
0 commit comments