[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

@@ -195,9 +195,9 @@ bool ViewProviderTemplate::onDelete(const std::vector<std::string> &)
QString bodyMessage;
QTextStream bodyMessageStream(&bodyMessage);
bodyMessageStream << qApp->translate("Std_Delete",
"The following referencing objects might break.\n\n"
"Are you sure you want to continue?\n");
bodyMessageStream << '\n' << QString::fromUtf8(page->Label.getValue());
"The following referencing objects might break:");
bodyMessageStream << "\n\n" << QString::fromUtf8(page->Label.getValue());
bodyMessageStream << "\n\nAre you sure you want to continue?";
// show and evaluate dialog
int DialogResult = QMessageBox::warning(Gui::getMainWindow(),