Skip to content

Commit

Permalink
Rephrase some sentences for UX
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Dec 10, 2024
1 parent 534a43d commit 61d33e6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lizmap/dialogs/confirmation_text_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ def __init__(self, number: int, confirmation_text: str, *__args):
message += " " + tr("{count} error(s)").format(count=number)
message += "</strong><br><br>"
message += tr(
'You should really consider fixing these "<strong>Important</strong>" issues to avoid technical problems '
'You should really consider fixing these "<strong>important</strong>" issues to avoid technical problems '
'on Lizmap later.'
)
message += "<br><br>"
message += tr(
'You can decide to skip fixing these "Important" issues but you must write the name of the project with '
'You can decide to skip fixing these "important" issues but you must write the name of the project with '
'the number of error in the input text below so as to generate the Lizmap configuration file.'
)
message += "<br><br>"
Expand Down
9 changes: 9 additions & 0 deletions lizmap/forms/layout_edition.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from qgis.gui import QgsFileWidget
from qgis.PyQt.QtCore import Qt
from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtWidgets import QLabel

from lizmap.definitions.definitions import LwcVersions
from lizmap.definitions.layouts import Dpi, FormatType, LayoutsDefinitions
Expand All @@ -24,6 +25,8 @@ def __init__(self, parent=None, unicity=None, lwc_version: LwcVersions = None):
super().__init__(parent, unicity, lwc_version)
self.setupUi(self)
self.parent = parent
self.layout_type: QLabel
self.layout_type.setWordWrap(True)
self.config = LayoutsDefinitions()
self.config.add_layer_widget('layout', self.layout)
self.config.add_layer_widget('enabled', self.enabled)
Expand Down Expand Up @@ -79,6 +82,12 @@ def post_load_form(self):
return

is_atlas = atlas_layout.atlas().enabled()
if is_atlas:
msg = tr("The layout is an atlas.")
else:
msg = tr("The layout is not atlas.")
msg += " " + tr("Some features are enabled or not because of this setting.")
self.layout_type.setText(msg)
self.icon.setEnabled(is_atlas)
self.label_icon.setEnabled(is_atlas)

Expand Down
7 changes: 7 additions & 0 deletions lizmap/resources/ui/ui_form_layout.ui
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
<string>Layout</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="layout_type">
<property name="text">
<string notr="true">LAYOUT TYPE</string>
</property>
</widget>
</item>
<item>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
Expand Down

0 comments on commit 61d33e6

Please sign in to comment.