]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
File for translation on French language added (issue #9)
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 7 May 2014 15:01:54 +0000 (19:01 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 7 May 2014 15:01:54 +0000 (19:01 +0400)
src/XGUI/CMakeLists.txt
src/XGUI/XGUI_msg_fr.ts [new file with mode: 0644]

index 5a8818935af0283f9e8d86f186663c62dd36a74d..9a506a60b2fbc045abb0925e874a4a5b7f81520c 100644 (file)
@@ -66,9 +66,9 @@ SET(PROJECT_RESOURCES
     XGUI_pictures.qrc
 )
 
-#SET(TEXT_RESOURCES
-#      XGUI_msg_en.ts
-#)
+SET(TEXT_RESOURCES
+       XGUI_msg_fr.ts
+)
 
 SET(PROJECT_LIBRARIES
     Events
@@ -92,8 +92,15 @@ ENDIF()
 QT4_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
 
-#SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
-SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES})
+QT4_CREATE_TRANSLATION(QM_RESOURCES 
+                                          ${PROJECT_SOURCES}
+                                          ${TEXT_RESOURCES}
+                                          OPTIONS -extensions cpp -no-recursive
+                                          )
+
+
+SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
+#SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES})
 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES})
 
 ADD_DEFINITIONS( -DXGUI_EXPORTS ${CAS_DEFINITIONS} )
@@ -113,6 +120,8 @@ ADD_LIBRARY(XGUI SHARED
        ${PROJECT_SOURCES} 
        ${PROJECT_HEADERS} 
        ${PROJECT_COMPILED_RESOURCES} 
+       ${TEXT_RESOURCES}
+       ${QM_RESOURCES}
 )
 
 ADD_DEPENDENCIES(XGUI ModelAPI)
@@ -121,4 +130,4 @@ ADD_DEPENDENCIES(XGUI ModelAPI)
 TARGET_LINK_LIBRARIES(XGUI ${PROJECT_LIBRARIES})
 
 INSTALL(TARGETS XGUI DESTINATION bin)
-#INSTALL(FILES ${QM_RESOURCES} DESTINATION bin)
+INSTALL(FILES ${QM_RESOURCES} DESTINATION bin)
diff --git a/src/XGUI/XGUI_msg_fr.ts b/src/XGUI/XGUI_msg_fr.ts
new file mode 100644 (file)
index 0000000..5562247
--- /dev/null
@@ -0,0 +1,348 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="fr_FR">
+<context>
+    <name>XGUI_DocumentDataModel</name>
+    <message>
+        <location filename="XGUI_DocumentDataModel.cpp" line="152"/>
+        <source>Parts</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_DocumentDataModel.cpp" line="156"/>
+        <source>Parts folder</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>XGUI_ErrorDialog</name>
+    <message>
+        <location filename="XGUI_ErrorDialog.cpp" line="19"/>
+        <source>Application errors</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>XGUI_MainMenu</name>
+    <message>
+        <location filename="XGUI_MainMenu.cpp" line="16"/>
+        <source>General</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>XGUI_MainWindow</name>
+    <message>
+        <location filename="XGUI_MainWindow.cpp" line="33"/>
+        <source>New Geom</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>XGUI_OperationMgr</name>
+    <message>
+        <location filename="XGUI_OperationMgr.cpp" line="63"/>
+        <source>Operation launch</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_OperationMgr.cpp" line="64"/>
+        <source>Previous operation is not finished and will be aborted</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>XGUI_PartDataModel</name>
+    <message>
+        <location filename="XGUI_PartDataModel.cpp" line="191"/>
+        <source>Parameters</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_PartDataModel.cpp" line="193"/>
+        <source>Constructions</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_PartDataModel.cpp" line="195"/>
+        <source>Bodies</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>XGUI_PropertyPanel</name>
+    <message>
+        <location filename="XGUI_PropertyPanel.cpp" line="24"/>
+        <source>Property Panel</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>XGUI_TopDataModel</name>
+    <message>
+        <location filename="XGUI_PartDataModel.cpp" line="29"/>
+        <source>Parameters</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_PartDataModel.cpp" line="37"/>
+        <source>Constructions</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>XGUI_ViewWindow</name>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="213"/>
+        <source>Dump view</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="217"/>
+        <source>Fit all</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="221"/>
+        <source>Fit area</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="225"/>
+        <source>Zoom</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="229"/>
+        <source>Panning</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="233"/>
+        <source>Global panning</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="237"/>
+        <source>Rotate</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="241"/>
+        <source>Reset</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="245"/>
+        <source>Front</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="249"/>
+        <source>Back</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="253"/>
+        <source>Top</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="257"/>
+        <source>Bottom</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="261"/>
+        <source>Left</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="265"/>
+        <source>Right</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="269"/>
+        <source>Clone</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_ViewWindow.cpp" line="1030"/>
+        <source>Images Files (*.bmp *.png *.jpg *.jpeg *.eps *.ps)</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>XGUI_Viewer</name>
+    <message>
+        <location filename="XGUI_Viewer.cpp" line="70"/>
+        <source>Horizontal gradient</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Viewer.cpp" line="70"/>
+        <source>Vertical gradient</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Viewer.cpp" line="71"/>
+        <source>First diagonal gradient</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Viewer.cpp" line="71"/>
+        <source>Second diagonal gradient</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Viewer.cpp" line="72"/>
+        <source>First corner gradient</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Viewer.cpp" line="72"/>
+        <source>Second corner gradient</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Viewer.cpp" line="73"/>
+        <source>Third corner gradient</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Viewer.cpp" line="73"/>
+        <source>Fourth corner gradient</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Viewer.cpp" line="80"/>
+        <source>Image files (*.bmp *.gif *.pix *.xwd *.rgb *.rs)</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>XGUI_Workshop</name>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="116"/>
+        <location filename="XGUI_Workshop.cpp" line="140"/>
+        <source>Undo</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="116"/>
+        <location filename="XGUI_Workshop.cpp" line="140"/>
+        <source>Undo last command</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="121"/>
+        <location filename="XGUI_Workshop.cpp" line="144"/>
+        <source>Redo</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="121"/>
+        <location filename="XGUI_Workshop.cpp" line="144"/>
+        <source>Redo last command</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="135"/>
+        <source>Save...</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="135"/>
+        <source>Save the document</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="148"/>
+        <source>Rebuild</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="148"/>
+        <source>Rebuild data objects</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="151"/>
+        <source>Save as...</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="151"/>
+        <source>Save the document into a file</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="156"/>
+        <source>Open...</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="156"/>
+        <source>Open a new document</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="164"/>
+        <source>Exit</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="164"/>
+        <source>Exit application</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="356"/>
+        <location filename="XGUI_Workshop.cpp" line="396"/>
+        <source>Save current file</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="357"/>
+        <source>The document is modified, save before exit?</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="397"/>
+        <source>The document is modified, save before opening another?</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="414"/>
+        <location filename="XGUI_Workshop.cpp" line="446"/>
+        <source>Warning</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="414"/>
+        <source>Unable to open the file.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="446"/>
+        <source>Unable to save the file.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="478"/>
+        <source>Information about module &quot;%1&quot; doesn&apos;t exist.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="525"/>
+        <source>Error</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="XGUI_Workshop.cpp" line="584"/>
+        <source>Object browser</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+</TS>