Skip to content

Commit bef94ca

Browse files
committed
Use tr() instead of self.tr()
1 parent adbf0d1 commit bef94ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dynamic_layers/dynamic_layers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def on_apply_variables_clicked(self):
833833
by replace variables in dynamicDatasource
834834
"""
835835
if not self.initDone:
836-
self.dlg.message_bar.pushCritical(self.tr("Fail"), self.tr("Initialisation was not finished"))
836+
self.dlg.message_bar.pushCritical(tr("Fail"), tr("Initialisation was not finished"))
837837
return
838838

839839
try:
@@ -869,12 +869,12 @@ def on_apply_variables_clicked(self):
869869
# Set new extent
870870
engine.update_project_extent()
871871
except QgsProcessingException as e:
872-
self.dlg.message_bar.pushCritical(self.tr("Parsing expression error"), str(e))
872+
self.dlg.message_bar.pushCritical(tr("Parsing expression error"), str(e))
873873
return
874874

875875
# Set project as dirty
876876
self.project.setDirty(True)
877-
self.dlg.message_bar.pushSuccess("👍", self.tr("Current project has been updated"))
877+
self.dlg.message_bar.pushSuccess("👍", tr("Current project has been updated"))
878878

879879
@staticmethod
880880
def generate_projects_clicked():

0 commit comments

Comments
 (0)