Skip to content

Commit

Permalink
Merge pull request #162 from suricactus/hig_strings2
Browse files Browse the repository at this point in the history
Use three dots instead of elipsis
  • Loading branch information
m-kuhn authored Jul 13, 2020
2 parents 2d5ac6d + 5148db5 commit 8313ce3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions qfieldsync/core/offline_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def __init__(self, project, export_folder, extent, offline_editing):
self.__convertor_progress = None # for processing feedback
self.__layers = list()

# elipsis workaround
self.trUtf8 = self.tr

self.export_folder = export_folder
self.extent = extent
self.offline_editing = offline_editing
Expand Down Expand Up @@ -103,7 +106,7 @@ def convert(self):
for layer in self.__layers:
original_layer_info[layer.id()] = (layer.source(), layer.name())

self.total_progress_updated.emit(0, 1, self.tr('Creating base map…'))
self.total_progress_updated.emit(0, 1, self.trUtf8('Creating base map…'))
# Create the base map before layers are removed
if self.project_configuration.create_base_map:
if 'processing' not in qgis.utils.plugins:
Expand All @@ -123,7 +126,7 @@ def convert(self):
copied_files = list()
for current_layer_index, layer in enumerate(self.__layers):
self.total_progress_updated.emit(current_layer_index - len(self.__offline_layers), len(self.__layers),
self.tr('Copying layers…'))
self.trUtf8('Copying layers…'))
layer_source = LayerSource(layer)

if layer_source.action == SyncAction.OFFLINE:
Expand Down Expand Up @@ -257,7 +260,7 @@ def createBaseMapLayer(self, map_theme, layer, tile_size, map_units_per_pixel):

@pyqtSlot(int, int)
def on_offline_editing_next_layer(self, layer_index, layer_count):
msg = self.tr('Packaging layer {layer_name}…').format(layer_name=self.__offline_layers[layer_index - 1].name())
msg = self.trUtf8('Packaging layer {layer_name}…').format(layer_name=self.__offline_layers[layer_index - 1].name())
self.total_progress_updated.emit(layer_index, layer_count, msg)

@pyqtSlot('QgsOfflineEditing::ProgressMode', int)
Expand Down

0 comments on commit 8313ce3

Please sign in to comment.