From 1190c163f36b532503a4609ba42b32bb7f869f14 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 23 Jun 2009 13:26:12 +0000 Subject: [PATCH] Update warning messages for improvements 20019 and 20324. --- src/GEOMGUI/GEOM_msg_en.ts | 8 ++++++++ src/GEOMToolsGUI/GEOMToolsGUI.cxx | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/GEOMGUI/GEOM_msg_en.ts b/src/GEOMGUI/GEOM_msg_en.ts index 9f9111384..c6ffb7c1f 100644 --- a/src/GEOMGUI/GEOM_msg_en.ts +++ b/src/GEOMGUI/GEOM_msg_en.ts @@ -3775,6 +3775,14 @@ Please, select face, shell or solid and try again GEOM_IMPORT_ERRORS Import operation has finished with errors: + + GEOM_PUBLISH_NAMED_SHAPES + Create groups for named shapes (if there are any)? + + + GEOM_SCALE_DIMENSIONS + Length unit in the file is not a 'meter'. Do you want to scale a model? + BasicGUI_EllipseDlg diff --git a/src/GEOMToolsGUI/GEOMToolsGUI.cxx b/src/GEOMToolsGUI/GEOMToolsGUI.cxx index c3556b638..9e7e0a068 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI.cxx @@ -713,7 +713,7 @@ bool GEOMToolsGUI::Import() if( aUnitName != "M" ) { if( SUIT_MessageBox::question( app->desktop(), "Question",//tr("WRN_WARNING"), - "Length unit in given file is not a 'meter'. Is it needed to scale a model?", + QObject::tr("GEOM_SCALE_DIMENSIONS"), SUIT_MessageBox::Yes | SUIT_MessageBox::No, SUIT_MessageBox::No) == SUIT_MessageBox::Yes ) { fileT = "IGES_SCALE"; @@ -739,7 +739,7 @@ bool GEOMToolsGUI::Import() if( aCurrentType == "ACIS" ) { if( SUIT_MessageBox::question( app->desktop(), "Question",//tr("WRN_WARNING"), - "Given file contents some names. Is it needed to create groups for named shapes?", + tr("GEOM_PUBLISH_NAMED_SHAPES"), SUIT_MessageBox::Yes | SUIT_MessageBox::No, SUIT_MessageBox::No) == SUIT_MessageBox::Yes ) { GeometryGUI::GetGeomGen()->PublishNamedShapesInStudy(aDSStudy, anObj); -- 2.39.2