Skip to content

Commit

Permalink
Use tr() instead of self.tr()
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Aug 23, 2024
1 parent adbf0d1 commit bef94ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dynamic_layers/dynamic_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ def on_apply_variables_clicked(self):
by replace variables in dynamicDatasource
"""
if not self.initDone:
self.dlg.message_bar.pushCritical(self.tr("Fail"), self.tr("Initialisation was not finished"))
self.dlg.message_bar.pushCritical(tr("Fail"), tr("Initialisation was not finished"))
return

try:
Expand Down Expand Up @@ -869,12 +869,12 @@ def on_apply_variables_clicked(self):
# Set new extent
engine.update_project_extent()
except QgsProcessingException as e:
self.dlg.message_bar.pushCritical(self.tr("Parsing expression error"), str(e))
self.dlg.message_bar.pushCritical(tr("Parsing expression error"), str(e))
return

# Set project as dirty
self.project.setDirty(True)
self.dlg.message_bar.pushSuccess("👍", self.tr("Current project has been updated"))
self.dlg.message_bar.pushSuccess("👍", tr("Current project has been updated"))

@staticmethod
def generate_projects_clicked():
Expand Down

0 comments on commit bef94ca

Please sign in to comment.