+ use correct context for translatable strings in ViewProviderSketch

This commit is contained in:
wmayer
2015-10-17 15:21:37 +02:00
parent 91a0203981
commit 2a5311c462

View File

@@ -4151,7 +4151,7 @@ void ViewProviderSketch::attach(App::DocumentObject *pcFeat)
void ViewProviderSketch::setupContextMenu(QMenu *menu, QObject *receiver, const char *member)
{
menu->addAction(QObject::tr("Edit sketch"), receiver, member);
menu->addAction(tr("Edit sketch"), receiver, member);
}
bool ViewProviderSketch::setEdit(int ModNum)
@@ -4165,8 +4165,8 @@ bool ViewProviderSketch::setEdit(int ModNum)
sketchDlg = 0; // another sketch left open its task panel
if (dlg && !sketchDlg) {
QMessageBox msgBox;
msgBox.setText(QObject::tr("A dialog is already open in the task panel"));
msgBox.setInformativeText(QObject::tr("Do you want to close this dialog?"));
msgBox.setText(tr("A dialog is already open in the task panel"));
msgBox.setInformativeText(tr("Do you want to close this dialog?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::Yes);
int ret = msgBox.exec();