X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParametersPlugin%2FParametersPlugin_EvalListener.cpp;fp=src%2FParametersPlugin%2FParametersPlugin_EvalListener.cpp;h=718fa3f4367819c7b443d9734d0630ee41b38180;hb=1a58ed3e02d9b4ab3715425dcb63b7ec83f421d0;hp=513cabf11085b62902e992cdfeb249b68b5feb2a;hpb=fc1bf792878023d0932f572bacd1a1d49ddd9e0a;p=modules%2Fshaper.git diff --git a/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp b/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp index 513cabf11..718fa3f43 100644 --- a/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp +++ b/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp @@ -40,6 +40,8 @@ #include +#include + #include #include #include @@ -282,10 +284,16 @@ void ParametersPlugin_EvalListener::processObjectRenamedEvent( std::string aNotActivatedNames; if (!ModelAPI_Tools::allDocumentsActivated(aNotActivatedNames)) { - QMessageBox::StandardButton aRes = QMessageBox::warning(0, QObject::tr("Warning"), - QObject::tr("Selected objects can be used in Part documents which are not loaded: " - "%1. Whould you like to continue?").arg(aNotActivatedNames.c_str()), - QMessageBox::No | QMessageBox::Yes, QMessageBox::No); + static const std::string aMsgContext("ParametersPlugin"); + static const std::string aMsgText = + "Selected objects can be used in Part documents which are not loaded: " + + std::string("%1. Would you like to continue?"); + Events_InfoMessage aMsg(aMsgContext, aMsgText); + aMsg.arg(aNotActivatedNames.c_str()); + QMessageBox::StandardButton aRes = + QMessageBox::warning(0, ModuleBase_Tools::translate(aMsgContext, "Warning"), + ModuleBase_Tools::translate(aMsg), + QMessageBox::No | QMessageBox::Yes, QMessageBox::No); if (aRes != QMessageBox::Yes) { setParameterName(aResultParameter, aMessage->oldName()); return;