Merge pull request #16535 from WandererFan/translationFixes317And335
[TD] Translation fixes (fix #317 fix #335)
This commit is contained in:
@@ -426,9 +426,11 @@ void CmdTechDrawView::activated(int iMsg)
|
||||
// If nothing was selected, then we offer to insert SVG or Images files.
|
||||
bool dontShowAgain = hGrp->GetBool("DontShowInsertFileMessage", false);
|
||||
if (!dontShowAgain) {
|
||||
auto msgText = QObject::tr("If you want to insert a view from existing objects, please select them before invoking this tool. Without a selection, a file browser will open, to insert a SVG or image file.");
|
||||
QMessageBox msgBox;
|
||||
msgBox.setText(msgBox.tr("If you want to insert a view from existing objects, please select them before invoking this tool. Without a selection, a file browser will open, to insert a SVG or image file."));
|
||||
QCheckBox dontShowCheckBox(msgBox.tr("Do not show this message again"), &msgBox);
|
||||
msgBox.setText(msgText);
|
||||
auto dontShowMsg = QObject::tr("Do not show this message again");
|
||||
QCheckBox dontShowCheckBox(dontShowMsg, &msgBox);
|
||||
msgBox.setCheckBox(&dontShowCheckBox);
|
||||
QPushButton* okButton = msgBox.addButton(QMessageBox::Ok);
|
||||
|
||||
|
||||
@@ -150,8 +150,7 @@ void TaskSectionView::setUiPrimary()
|
||||
//don't allow updates until a direction is picked
|
||||
ui->pbUpdateNow->setEnabled(false);
|
||||
ui->cbLiveUpdate->setEnabled(false);
|
||||
QString msgLiteral =
|
||||
QString::fromUtf8(QT_TRANSLATE_NOOP("TaskSectionView", "No direction set"));
|
||||
QString msgLiteral = QObject::tr("No direction set");
|
||||
ui->lPendingUpdates->setText(msgLiteral);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user