From 29c4c00a23e2b98a5e5459ed0cbd4d6eb70109e2 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 4 Sep 2019 17:06:13 +0300 Subject: [PATCH] Set generation of translations --- src/XGUI/CMakeLists.txt | 23 +- src/XGUI/XGUI_msg_fr.ts | 595 +++++++++++++++++++++++++++++++++------- 2 files changed, 518 insertions(+), 100 deletions(-) diff --git a/src/XGUI/CMakeLists.txt b/src/XGUI/CMakeLists.txt index fa384cd12..de8c26897 100644 --- a/src/XGUI/CMakeLists.txt +++ b/src/XGUI/CMakeLists.txt @@ -25,6 +25,10 @@ INCLUDE_DIRECTORIES(${QT_INCLUDES}) # additional preprocessor / compiler flags ADD_DEFINITIONS(${QT_DEFINITIONS}) +SET(UPDATE_TRANSLATION OFF) + + + SET(PROJECT_HEADERS XGUI.h XGUI_ActionsMgr.h @@ -171,12 +175,19 @@ ELSE() ENDIF() QT_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES}) -QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) -# QT4_CREATE_TRANSLATION(QM_RESOURCES -# ${PROJECT_SOURCES} -# ${TEXT_RESOURCES} -# OPTIONS -extensions cpp -no-recursive -# ) + + + +IF (${UPDATE_TRANSLATION}) + SET(PROJECT_FILES ${PROJECT_SOURCES} ${ROJECT_HEADERS} ) + QT5_CREATE_TRANSLATION(QM_RESOURCES + ${PROJECT_FILES} + ${TEXT_RESOURCES} + OPTIONS -extensions cpp -no-recursive + ) +ELSE(${UPDATE_TRANSLATION) + QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) +ENDIF(${UPDATE_TRANSLATION) SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES}) diff --git a/src/XGUI/XGUI_msg_fr.ts b/src/XGUI/XGUI_msg_fr.ts index 913ff0f71..3f0661c06 100644 --- a/src/XGUI/XGUI_msg_fr.ts +++ b/src/XGUI/XGUI_msg_fr.ts @@ -1,131 +1,219 @@ - + QObject - + Warning - - Selected objects can be used in Part documents which are not loaded: %1. Whould you like to continue? + + Name %2 already exists in %1. - - Selected parameter can not be renamed to: %1. There is a parameter with the same name. Its value is: %2. + + Move to the end - - Move to the end + + SHAPER files (*.shaper *.cadbld) + + + + + SHAPER files (*.shaper) + + + + + CAD Builder files (*.cadbld);;All files (*.*) + + + + + CAD Builder files (*.cadbld) + + + + + Abort operation + + + + + Validate operation XGUI_ActionsMgr - + Shortcut %1 is already defined. Ignore. - + See preview + + XGUI_ColorDialog + + + Color + + + + + Random + + + XGUI_ContextMenuMgr - + Delete - + Rename - + Clean history - + Color... - + + Deflection... + + + + + Transparency... + + + + Show - + Show only - + Hide - + Hide all - + Shading - + Wireframe - + Vertices - + Edges - + Faces - - Result + + Results - + Select results - + Select parent feature - + + TInspector + + + + + Insert a folder before + + + + + Move into the previous folder + + + + + Move into the next folder + + + + + Move out before the folder + + + + + Move out after the folder + + + + + Set view by inverted normal to face + + + + + Set view by normal to face + + + + Selection mode - + Windows @@ -133,23 +221,322 @@ XGUI_DataTree - + History change + + XGUI_DeflectionDialog + + + Deflection + + + XGUI_ErrorDialog - + Application errors + + XGUI_FacesPanel + + + Hide Faces + + + + + Transparent + + + + + XGUI_InspectionPanel + + + Inspection Panel + + + + + Object + + + + + Sub-shapes + + + + + Number + + + + + Type: + + + + + Vertex + + + + + Coordinates + + + + + Degenerated + + + + + Line segment + + + + + + + + Center + + + + + + + + Normal + + + + + + + + + + + + + Dimensions + + + + + + + Radius + + + + + + Major radius + + + + + + Minor radius + + + + + Edge + + + + + Start point + + + + + End point + + + + + Closed + + + + + Polygon + + + + + Point + + + + + Wire + + + + + Rectangle + + + + + Corner + + + + + + + Width + + + + + + + + + Height + + + + + Plane + + + + + + + Sphere + + + + + + + Cylinder + + + + + + + Cone + + + + + + + Torus + + + + + Face + + + + + + Box + + + + + + Rotated Box + + + + + Shell + + + + + Solid + + + + + Bounding box + + + + + Minimal corner + + + + + Maximal corner + + + + + Origin + + + + + + + + Position + + + + + + + Axis + + + + + Radius 1 + + + + + Radius 2 + + + + + + Depth + + + + + Z axis + + + + + X axis + + + XGUI_ObjectsBrowser - + Part set @@ -157,209 +544,229 @@ XGUI_OperationMgr - - - Abort operation + + All active operations will be aborted. - - All active operations will be aborted. + + Please validate all your active operations before saving. - + %1 operation will be aborted. + + + Please validate your %1 before saving. + + XGUI_PropertyPanel - - + + Property Panel + + XGUI_TransparencyWidget + + + Opaque + + + + + Transparent + + + XGUI_Workshop - - + + Undo - - + + Undo last command - + INF_DESK_TOOLBAR_STANDARD - - + + Redo - - + + Redo last command - + Export native... - + Export the current document into a native file - + Import native... - + Import native file - - + Save - Title of the dialog which asks user if he wants to save study in existing non-empty folder - + Save the document - + Save as... - + Save the document into a file - + Open... - + Open a new document - + + Auto rebuild + + + + + Blocks immediate apply of modifications + + + + Preferences - + Edit preferences - + Exit - + Exit application - - + + Save current file - + The document is modified, save before opening another? - - Select directory + + Open file - - Warning + + Select name to save file... - - Unable to open the file. + + Show object - - The document is modified, save before exit? + + '%1' + are hidden by %2: +Remove objects from the panel to be displayed? - - Select directory to save files... + + Warning - - Directories (*) + + Unable to open the file. - - The directory already contains some files, save anyway? + + The document is modified, save before exit? - + Information about module "%1" doesn't exist. - + Object browser - - Unused features are the following: %1. -These features will be deleted. -Would you like to continue? - - - - + All features are relevant, there is nothing to be deleted - + Find results - + Results not found -- 2.39.2