]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Porting to Qt4
authorvsr <vsr@opencascade.com>
Tue, 15 May 2007 13:18:18 +0000 (13:18 +0000)
committervsr <vsr@opencascade.com>
Tue, 15 May 2007 13:18:18 +0000 (13:18 +0000)
src/LogWindow/LogWindow.cxx
src/LogWindow/LogWindow.pro
src/LogWindow/resources/LogWindow_msg_en.ts [new file with mode: 0644]

index 2777477724e7cb768369c9dcbd0205e055aada23..7c4104db2e23c1e15018f470bdf18d6d387bcfae 100755 (executable)
@@ -289,23 +289,23 @@ bool LogWindow::saveLog( const QString& fileName )
 */
 void LogWindow::createActions()
 {
-  QAction* a = new QAction( tr( "&Copy" ), this );
-  a->setStatusTip( tr( "&Copy" ) );
+  QAction* a = new QAction( tr( "EDIT_COPY_CMD" ), this );
+  a->setStatusTip( tr( "EDIT_COPY_CMD" ) );
   connect( a, SIGNAL( triggered( bool ) ), SLOT( onCopy() ) );
   myActions.insert( CopyId, a );
 
-  a = new QAction( tr( "Clea&r" ), this );
-  a->setStatusTip( tr( "Clea&r" ) );
+  a = new QAction( tr( "EDIT_CLEAR_CMD" ), this );
+  a->setStatusTip( tr( "EDIT_CLEAR_CMD" ) );
   connect( a, SIGNAL( triggered( bool ) ), SLOT( onClear() ) );
   myActions.insert( ClearId, a );
 
-  a = new QAction( tr( "Select &All" ), this );
-  a->setStatusTip( tr( "Select &All" ) );
+  a = new QAction( tr( "EDIT_SELECTALL_CMD" ), this );
+  a->setStatusTip( tr( "EDIT_SELECTALL_CMD" ) );
   connect( a, SIGNAL( triggered( bool ) ), SLOT( onSelectAll() ) );
   myActions.insert( SelectAllId, a );
 
-  a = new QAction( tr( "&Save log to file..." ), this );
-  a->setStatusTip( tr( "&Save log to file..." ) );
+  a = new QAction( tr( "EDIT_SAVETOFILE_CMD" ), this );
+  a->setStatusTip( tr( "EDIT_SAVETOFILE_CMD" ) );
   connect( a, SIGNAL( triggered( bool ) ), SLOT( onSaveToFile() ) );
   myActions.insert( SaveToFileId, a );
 }
@@ -365,7 +365,7 @@ void LogWindow::onSaveToFile()
   QApplication::restoreOverrideCursor();
 
   if ( !bOk )
-    SUIT_MessageBox::error1( this, tr( "Error" ), tr( "Can't save file" ), tr( "OK" ) );
+    SUIT_MessageBox::error1( this, tr( "ERR_ERROR" ), tr( "ERR_CANT_SAVE_FILE" ), tr( "BUT_OK" ) );
 }
 
 /*!
index 22315f2dfe08143c89aa38a238c0613b596c3ea6..8f50fc2caddd7ce09a199a3b977ea19e51dc1164 100644 (file)
@@ -17,7 +17,12 @@ HEADERS = LogWindow.h
 
 SOURCES = LogWindow.cxx
 
+TRANSLATIONS = resources/LogWindow_msg_en.ts
+
 includes.files = $$HEADERS
 includes.path = ../../include
 
-INSTALLS += includes
+resources.files = resources/*.qm
+resources.path = ../../resources
+
+INSTALLS += includes resources
diff --git a/src/LogWindow/resources/LogWindow_msg_en.ts b/src/LogWindow/resources/LogWindow_msg_en.ts
new file mode 100644 (file)
index 0000000..2e2aef5
--- /dev/null
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS><TS version="1.1">
+<context>
+    <name>LogWindow</name>
+    <message>
+        <location filename="../LogWindow.cxx" line="293"/>
+        <source>EDIT_COPY_CMD</source>
+        <translation>&amp;Copy</translation>
+    </message>
+    <message>
+        <location filename="../LogWindow.cxx" line="298"/>
+        <source>EDIT_CLEAR_CMD</source>
+        <translation>Clea&amp;r</translation>
+    </message>
+    <message>
+        <location filename="../LogWindow.cxx" line="303"/>
+        <source>EDIT_SELECTALL_CMD</source>
+        <translation>Select &amp;All</translation>
+    </message>
+    <message>
+        <location filename="../LogWindow.cxx" line="308"/>
+        <source>EDIT_SAVETOFILE_CMD</source>
+        <translation>&amp;Save log to file...</translation>
+    </message>
+    <message>
+        <location filename="../LogWindow.cxx" line="368"/>
+        <source>ERR_ERROR</source>
+        <translation>Error</translation>
+    </message>
+    <message>
+        <location filename="../LogWindow.cxx" line="368"/>
+        <source>ERR_CANT_SAVE_FILE</source>
+        <translation>Can&apos;t save file</translation>
+    </message>
+    <message>
+        <location filename="../LogWindow.cxx" line="368"/>
+        <source>BUT_OK</source>
+        <translation>&amp;OK</translation>
+    </message>
+</context>
+</TS>