From: smh Date: Fri, 30 Apr 2004 13:41:13 +0000 (+0000) Subject: Minor GUI correction X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=be83523c22aba9f565e45c9446db7f6c2533da57;p=modules%2Fkernel.git Minor GUI correction --- diff --git a/src/SALOMEGUI/QAD_Desktop.cxx b/src/SALOMEGUI/QAD_Desktop.cxx index 8aef9880c..528ce0b53 100644 --- a/src/SALOMEGUI/QAD_Desktop.cxx +++ b/src/SALOMEGUI/QAD_Desktop.cxx @@ -3252,10 +3252,10 @@ SALOMEGUI* QAD_Desktop::getComponentGUI( const QString& component ) #else fileString = QAD_Tools::addSlash( dir ) + "lib" + getComponentName( component ) + "GUI.so" ; #endif - + fileInfo.setFile(fileString) ; if (fileInfo.exists()) { - // MESSAGE ( " GUI library = " << fileString ); + // MESSAGE( " GUI library = " << fileString.latin1() ); ComponentLib = fileInfo.fileName() ; _islibso = true; break; @@ -3316,7 +3316,7 @@ SALOMEGUI* QAD_Desktop::getComponentGUI( const QString& component ) wc.stop(); QMessageBox::critical( this, tr("ERR_ERROR"), - tr("ERR_LIBGUI" ).arg(component) ); + tr("ERR_GET_GUI_FAILED" ).arg(component) ); return aCompGUI; } } @@ -3324,7 +3324,7 @@ SALOMEGUI* QAD_Desktop::getComponentGUI( const QString& component ) wc.stop(); QMessageBox::critical( this, tr("ERR_ERROR"), - tr("ERR_LIBGUI" ).arg(component) ); + tr("ERR_GET_GUI_NOT_FOUND" ).arg(ComponentLib) ); return aCompGUI; } } diff --git a/src/SALOMEGUI/QAD_msg_en.po b/src/SALOMEGUI/QAD_msg_en.po index 57fafb7b2..05092171c 100644 --- a/src/SALOMEGUI/QAD_msg_en.po +++ b/src/SALOMEGUI/QAD_msg_en.po @@ -28,7 +28,7 @@ msgid "" msgstr "" "Project-Id-Version: example-Qt-message-extraction\n" "POT-Creation-Date: 1999-02-23 15:38+0200\n" -"PO-Revision-Date: 1999-02-23 15:38+0200\n" +"PO-Revision-Date: 2004-04-26 16:29+0400\n" "Last-Translator: \n" "Content-Type: text/plain; charset=iso-8859-1\n" @@ -524,7 +524,13 @@ msgstr "This function is available only in Plot2d viewer" #: QAD_Desktop.cxx:2339 msgid "ERR_LIBGUI" -msgstr "lib%1.so has not been found. Check LD_LIBRARY_PATH environment variable" +msgstr "lib%1GUI.so has not been found. Check LD_LIBRARY_PATH environment variable" + +msgid "ERR_GET_GUI_FAILED" +msgstr "%1GUI instance creation failed!" + +msgid "ERR_GET_GUI_NOT_FOUND" +msgstr "GetComponentGUI() function not found in %1 library!" #--------------- # QUESTION