From b5e02d646eb8ff63f6f8d0d6b318b6ed85c58e43 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 7 May 2014 19:01:54 +0400 Subject: [PATCH] File for translation on French language added (issue #9) --- src/XGUI/CMakeLists.txt | 21 ++- src/XGUI/XGUI_msg_fr.ts | 348 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 363 insertions(+), 6 deletions(-) create mode 100644 src/XGUI/XGUI_msg_fr.ts diff --git a/src/XGUI/CMakeLists.txt b/src/XGUI/CMakeLists.txt index 5a8818935..9a506a60b 100644 --- a/src/XGUI/CMakeLists.txt +++ b/src/XGUI/CMakeLists.txt @@ -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 index 000000000..5562247ba --- /dev/null +++ b/src/XGUI/XGUI_msg_fr.ts @@ -0,0 +1,348 @@ + + + + + XGUI_DocumentDataModel + + + Parts + + + + + Parts folder + + + + + XGUI_ErrorDialog + + + Application errors + + + + + XGUI_MainMenu + + + General + + + + + XGUI_MainWindow + + + New Geom + + + + + XGUI_OperationMgr + + + Operation launch + + + + + Previous operation is not finished and will be aborted + + + + + XGUI_PartDataModel + + + Parameters + + + + + Constructions + + + + + Bodies + + + + + XGUI_PropertyPanel + + + Property Panel + + + + + XGUI_TopDataModel + + + Parameters + + + + + Constructions + + + + + XGUI_ViewWindow + + + Dump view + + + + + Fit all + + + + + Fit area + + + + + Zoom + + + + + Panning + + + + + Global panning + + + + + Rotate + + + + + Reset + + + + + Front + + + + + Back + + + + + Top + + + + + Bottom + + + + + Left + + + + + Right + + + + + Clone + + + + + Images Files (*.bmp *.png *.jpg *.jpeg *.eps *.ps) + + + + + XGUI_Viewer + + + Horizontal gradient + + + + + Vertical gradient + + + + + First diagonal gradient + + + + + Second diagonal gradient + + + + + First corner gradient + + + + + Second corner gradient + + + + + Third corner gradient + + + + + Fourth corner gradient + + + + + Image files (*.bmp *.gif *.pix *.xwd *.rgb *.rs) + + + + + XGUI_Workshop + + + + Undo + + + + + + Undo last command + + + + + + Redo + + + + + + Redo last command + + + + + Save... + + + + + Save the document + + + + + Rebuild + + + + + Rebuild data objects + + + + + Save as... + + + + + Save the document into a file + + + + + Open... + + + + + Open a new document + + + + + Exit + + + + + Exit application + + + + + + Save current file + + + + + The document is modified, save before exit? + + + + + The document is modified, save before opening another? + + + + + + Warning + + + + + Unable to open the file. + + + + + Unable to save the file. + + + + + Information about module "%1" doesn't exist. + + + + + Error + + + + + Object browser + + + + -- 2.39.2