From: vsr Date: Tue, 19 May 2009 05:59:32 +0000 (+0000) Subject: Issue 0020358: EDF 1033 GUI : Wrong warning at Salome launch X-Git-Tag: V4_1_0_maintainance_FINAL~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a89f3152e097c2e96c1a226de6e826b754958031;p=modules%2Fgui.git Issue 0020358: EDF 1033 GUI : Wrong warning at Salome launch --- diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index 08a71a414..5704da920 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -183,11 +183,11 @@ void CAM_Application::loadModules() if ( mod ) addModule( mod ); else { + QString wrn = tr( "Can not load module %1" ).arg( (*it).title ); if ( desktop() && desktop()->isShown() ) - SUIT_MessageBox::error1( desktop(), tr( "Loading modules" ), - tr( "Can not load module %1" ).arg( (*it).title ), tr( "Ok" ) ); + SUIT_MessageBox::error1( desktop(), tr( "Loading modules" ), wrn, tr( "Ok" ) ); else - qWarning( tr( "Can not load module %1" ).arg( (*it).title ).latin1() ); + qWarning( wrn.latin1() ); } } } @@ -326,10 +326,11 @@ bool CAM_Application::activateModule( CAM_Module* mod ) { myModule->setMenuShown( false ); myModule->setToolShown( false ); + QString wrn = tr( "ERROR_ACTIVATE_MODULE_MSG" ).arg( myModule->moduleName() ); if ( desktop() && desktop()->isShown() ) - SUIT_MessageBox::error1( desktop(), tr( "ERROR_TLT" ), tr( "ERROR_ACTIVATE_MODULE_MSG" ).arg( myModule->moduleName() ), tr( "BUT_OK" ) ); + SUIT_MessageBox::error1( desktop(), tr( "ERROR_TLT" ), wrn, tr( "BUT_OK" ) ); else - qWarning( tr( "ERROR_ACTIVATE_MODULE_MSG" ).arg( myModule->moduleName() ).latin1() ); + qWarning( wrn.latin1() ); myModule = 0; return false; } @@ -472,8 +473,8 @@ void CAM_Application::readModuleList() if ( modTitle.isEmpty() ) { printf( "****************************************************************\n" ); - printf( "* Warning: %s not found in resources.\n", (*it).latin1() ); - printf( "* Module will not be available\n" ); + printf( "* Warning: %s GUI resources are not found.\n", (*it).latin1() ); + printf( "* %s GUI will not be available\n", (*it).latin1() ); printf( "****************************************************************\n" ); continue; }