Skip to content

Commit

Permalink
Merge pull request #335 from QGIS-Contribution/ui/complete-i18n-strings
Browse files Browse the repository at this point in the history
improve(ui): complete i18n and add some icons
  • Loading branch information
Guts authored May 13, 2024
2 parents 2690ea6 + d007c98 commit d690969
Show file tree
Hide file tree
Showing 6 changed files with 229 additions and 123 deletions.
4 changes: 2 additions & 2 deletions qgis_resource_sharing/collection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, collection_manager, collection_id):
self.killed = False

def run(self):
self.progress.emit("Downloading the collection...")
self.progress.emit(self.tr("Downloading the collection..."))

# We can't kill the process here, so let us finish it even if
# the user cancels the download process
Expand All @@ -59,7 +59,7 @@ def run(self):

# Downloading is fine, It is not killed, let us install it
if not self.killed:
self.progress.emit("Installing the collection...")
self.progress.emit(self.tr("Installing the collection..."))
try:
self._collection_manager.install(self._collection_id)
except Exception as e:
Expand Down
4 changes: 3 additions & 1 deletion qgis_resource_sharing/custom_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

from qgis.core import Qgis, QgsMessageLog

LOGGERNAME = "QGIS Resource Sharing"
from qgis_resource_sharing.__about__ import __title__

LOGGERNAME = __title__


def setup_logger():
Expand Down
Loading

0 comments on commit d690969

Please sign in to comment.