Skip to content

Commit

Permalink
Rename sentence again
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Dec 4, 2023
1 parent 757b8df commit 70283c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lizmap/project_checker_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,12 @@ def trailing_layer_group_name(layer_tree: QgsLayerTreeNode, project, results: Li
layer = project.mapLayer(child.layerId())
if layer.name().strip() != layer.name():
results.append(
Error(layer.name(), Checks.TrailingSpaceLayerGroupName, SourceLayer(layer.name(), layer.id())))
Error(layer.name(), Checks.LeadingTrailingSpaceLayerGroupName, SourceLayer(layer.name(), layer.id())))
else:
child = cast_to_group(child)
if child.name().strip() != child.name():
results.append(
Error(child.name(), Checks.TrailingSpaceLayerGroupName, SourceGroup))
Error(child.name(), Checks.LeadingTrailingSpaceLayerGroupName, SourceGroup))

# Recursive call
results = trailing_layer_group_name(child, project, results)
Expand Down
12 changes: 6 additions & 6 deletions lizmap/widgets/check_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,17 +396,17 @@ class Checks(Check, Enum):
Severities.Blocking if qgis_version() >= 32200 else Severities.Important,
QIcon(':/images/themes/default/mIconQgsProjectFile.svg'),
)
TrailingSpaceLayerGroupName = (
'trailing_space_group_name',
tr('Trailing space in layer/group name'),
LeadingTrailingSpaceLayerGroupName = (
'leading_trailing_space',
tr('Leading/trailing space in layer/group name'),
tr(
'The layer/group name has some trailing spaces. It must be removed and the configuration in the plugin '
'might be needed.'
'The layer/group name has some leading/trailing spaces. It must be removed and the configuration in the '
'plugin might be needed.'
), (
'<ul>'
'<li>{edit_layer}</li>'
'</ul>'.format(
edit_layer=tr('Rename your layer/group to remove trailing spaces (left and right)'),
edit_layer=tr('Rename your layer/group to remove leading/trailing spaces (left and right)'),
)
),
Levels.Layer,
Expand Down

0 comments on commit 70283c4

Please sign in to comment.