[TD] get rid of trailing newlines

as discussed with luzpaz in https://github.com/FreeCAD/FreeCAD/pull/3735
there shouldn't be trailing newlines in translated strings.

- Moreover fix the logic of the output dialog text
This commit is contained in:
donovaly
2020-07-26 16:53:44 +02:00
committed by WandererFan
parent b298e78624
commit 38db73c4e9
3 changed files with 11 additions and 8 deletions

View File

@@ -222,10 +222,11 @@ bool ViewProviderPage::onDelete(const std::vector<std::string> &)
QString bodyMessage;
QTextStream bodyMessageStream(&bodyMessage);
bodyMessageStream << qApp->translate("Std_Delete",
"The page is not empty, therefore the\nfollowing referencing objects might be lost.\n\n"
"Are you sure you want to continue?");
"The page is not empty, therefore the\nfollowing referencing objects might be lost:");
bodyMessageStream << '\n';
for (auto ObjIterator : objs)
bodyMessageStream << '\n' << QString::fromUtf8(ObjIterator->Label.getValue());
bodyMessageStream << "\n\nAre you sure you want to continue?";
// show and evaluate the dialog
int DialogResult = QMessageBox::warning(Gui::getMainWindow(),
qApp->translate("Std_Delete", "Object dependencies"), bodyMessage,