Skip to content

Commit 06bae21

Browse files
authoredNov 20, 2017
Merge pull request #5579 from DelazJ/logmessages
Clarify where and what Log Messages is
2 parents c9b8ddc + 9481067 commit 06bae21

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed
 

‎python/plugins/processing/gui/Postprocessing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ def handleAlgorithmResults(alg, context, feedback=None, showResults=True):
7878
layer.loadNamedStyle(style)
7979
details.project.addMapLayer(context.temporaryLayerStore().takeMapLayer(layer))
8080
except Exception:
81-
QgsMessageLog.logMessage("Error loading result layer:\n" + traceback.format_exc(), 'Processing', QgsMessageLog.CRITICAL)
81+
QgsMessageLog.logMessage(QCoreApplication.translate('Postprocessing', "Error loading result layer:") + "\n" + traceback.format_exc(), 'Processing', QgsMessageLog.CRITICAL)
8282
wrongLayers.append(str(l))
8383
i += 1
8484

8585
feedback.setProgress(100)
8686

8787
if wrongLayers:
88-
msg = "The following layers were not correctly generated.<ul>"
89-
msg += "".join(["<li>%s</li>" % lay for lay in wrongLayers]) + "</ul>"
90-
msg += "You can check the log messages to find more information about the execution of the algorithm"
88+
msg = QCoreApplication.translate('Postprocessing', "The following layers were not correctly generated.")
89+
msg += "<ul>" + "".join(["<li>%s</li>" % lay for lay in wrongLayers]) + "</ul>"
90+
msg += QCoreApplication.translate('Postprocessing', "You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.")
9191
feedback.reportError(msg)
9292

9393
return len(wrongLayers) == 0

‎python/plugins/processing/modeler/ModelerDialog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ def closeEvent(self, evt):
287287

288288
if self.hasChanged:
289289
ret = QMessageBox.question(
290-
self, self.tr('Save?'),
291-
self.tr('There are unsaved changes in this model, do you want to keep those?'),
290+
self, self.tr('Save Model?'),
291+
self.tr('There are unsaved changes in this model. Do you want to keep those?'),
292292
QMessageBox.Save | QMessageBox.Cancel | QMessageBox.Discard, QMessageBox.Cancel)
293293

294294
if ret == QMessageBox.Save:

‎python/plugins/processing/modeler/ModelerParameterDefinitionDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def closeEvent(self, event):
114114
super(ModelerParameterDefinitionDialog, self).closeEvent(event)
115115

116116
def setupUi(self):
117-
self.setWindowTitle(self.tr('Parameter definition'))
117+
self.setWindowTitle(self.tr('Parameter Definition'))
118118
self.setMinimumWidth(300)
119119

120120
self.verticalLayout = QVBoxLayout(self)

‎python/plugins/processing/tools/dataobjects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def load(fileName, name=None, crs=None, style=None, isRaster=False):
161161
else:
162162
if prjSetting:
163163
settings.setValue('/Projections/defaultBehavior', prjSetting)
164-
raise RuntimeError('Could not load layer: ' + str(fileName) +
165-
'\nCheck the processing framework log to look for errors')
164+
raise RuntimeError(QCoreApplication.translate('dataobject',
165+
'Could not load layer: {0}\nCheck the processing framework log to look for errors.').format(fileName))
166166
else:
167167
qgslayer = QgsVectorLayer(fileName, name, 'ogr')
168168
if qgslayer.isValid():

‎python/plugins/processing/ui/DlgHelpEdition.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
14-
<string>Help editor</string>
14+
<string>Help Editor</string>
1515
</property>
1616
<layout class="QVBoxLayout" name="verticalLayout_3">
1717
<property name="spacing">

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10341,7 +10341,7 @@ bool QgisApp::saveDirty()
1034110341
// old code: mProjectIsDirtyFlag = true;
1034210342

1034310343
// prompt user to save
10344-
answer = QMessageBox::information( this, tr( "Save?" ),
10344+
answer = QMessageBox::information( this, tr( "Save Project?" ),
1034510345
tr( "Do you want to save the current project? %1" )
1034610346
.arg( whyDirty ),
1034710347
QMessageBox::Save | QMessageBox::Cancel | QMessageBox::Discard,
@@ -10378,7 +10378,7 @@ bool QgisApp::checkTasksDependOnProject()
1037810378

1037910379
if ( !activeTaskDescriptions.isEmpty() )
1038010380
{
10381-
QMessageBox::warning( this, tr( "Active tasks" ),
10381+
QMessageBox::warning( this, tr( "Active Tasks" ),
1038210382
tr( "The following tasks are currently running which depend on layers in this project:\n\n%1\n\nPlease cancel these tasks and retry." ).arg( activeTaskDescriptions.toList().join( QStringLiteral( "\n" ) ) ) );
1038310383
return true;
1038410384
}

0 commit comments

Comments
 (0)