Skip to content

Commit

Permalink
TilesXYZ: converted feedback notifications to translate
Browse files Browse the repository at this point in the history
  • Loading branch information
Isghj5 authored and nyalldawson committed Aug 11, 2019
1 parent 9baa6b7 commit 6b51919
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/algs/qgis/TilesXYZ.py
Expand Up @@ -300,14 +300,14 @@ def generate(self, writer, parameters, context, feedback):

self.progressThreadLock = threading.Lock()
if self.maxThreads > 1:
feedback.pushConsoleInfo('Using %s CPU Threads:' % self.maxThreads)
feedback.pushConsoleInfo('Pushing all tiles at once: %s tiles.' % len(allMetatiles))
feedback.pushConsoleInfo(self.tr('Using {max_threads} CPU Threads:').format(max_threads=self.maxThreads))
feedback.pushConsoleInfo(self.tr('Pushing all tiles at once: {meta_count} tiles.').format(meta_count=len(allMetatiles)))
with ThreadPoolExecutor(max_workers=self.maxThreads) as threadPool:
threadPool.map(self.renderSingleMetatile, allMetatiles)
else:
feedback.pushConsoleInfo('Using 1 CPU Thread:')
feedback.pushConsoleInfo(self.tr('Using 1 CPU Thread:'))
for zoom in range(self.min_zoom, self.max_zoom + 1):
feedback.pushConsoleInfo('Generating tiles for zoom level: %s' % zoom)
feedback.pushConsoleInfo(self.tr('Generating tiles for zoom level: {zoom}').format(zoom=zoom))
for i, metatile in enumerate(metatiles_by_zoom[zoom]):
self.renderSingleMetatile(metatile)

Expand Down

0 comments on commit 6b51919

Please sign in to comment.