FEM: Fix translation of long phrase

The lupdate tool does not correctly parse Python string concatenation. Also, .format() calls should be made on the string returned from tr(), not on the string going into it.
This commit is contained in:
Chris Hennes
2023-04-16 21:13:54 -05:00
parent ffd3f9b1a2
commit 5cb6e0733f

View File

@@ -273,12 +273,10 @@ class GeometryElementsSelection(QtGui.QWidget):
self._helpTextLbl = QtGui.QLabel()
self._helpTextLbl.setWordWrap(True)
helpTextPart1 = self.tr(
'Click on "Add" and select geometric elements to add them to the list.{}'
"The following geometry elements are allowed to select: {}{}{}"
.format("<br>", "<b>", self.sel_elem_text, "</b>")
)
'Click on "Add" and select geometric elements to add them to the list.{}The following geometry elements can be selected: {}{}{}'
).format("<br>", "<b>", self.sel_elem_text, "</b>")
helpTextEmpty = self.tr(
"{}If no geometry is added to the list, all remaining ones are used.".format("<br>")
"{}If no geometry is added to the list, all remaining ones are used.").format("<br>"
)
if self.showHintEmptyList is True:
self._helpTextLbl.setText(