From: vsv Date: Fri, 27 May 2016 08:27:24 +0000 (+0300) Subject: Translation of GUI in plug-in X-Git-Tag: V_2.4.0~139^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=65535659031c94c6bc6a76e0b0e1e0ad22113c89;p=modules%2Fshaper.git Translation of GUI in plug-in --- diff --git a/.gitignore b/.gitignore index 3361c41de..cafb0640d 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,6 @@ lib/ *.pro.user moc_*.* *.qm -*.ts #Resources resources !src/*/resources diff --git a/src/ParametersPlugin/CMakeLists.txt b/src/ParametersPlugin/CMakeLists.txt index fbcab9c2d..640773727 100644 --- a/src/ParametersPlugin/CMakeLists.txt +++ b/src/ParametersPlugin/CMakeLists.txt @@ -54,12 +54,33 @@ SET(PROJECT_LIBRARIES ) ADD_DEFINITIONS(-DPARAMETERSPLUGIN_EXPORTS -DHAVE_DEBUG_PYTHON ${CAS_DEFINITIONS}) -ADD_LIBRARY(ParametersPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES}) + +SET(TEXT_RESOURCES + ParametersPlugin_msg_ru.ts +) + +QT4_CREATE_TRANSLATION(QM_RESOURCES + ${PROJECT_SOURCES} + ${TEXT_RESOURCES} + OPTIONS -extensions cpp -no-recursive + ) + +SET(PROJECT_AUTOMOC + ${CMAKE_CURRENT_BINARY_DIR}/ParametersPlugin_automoc.cpp +) + + +SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${QM_RESOURCES}) +SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES}) + +ADD_LIBRARY(ParametersPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${QM_RESOURCES}) + TARGET_LINK_LIBRARIES(ParametersPlugin ${PROJECT_LIBRARIES}) INSTALL(TARGETS ParametersPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES}) INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}) +INSTALL(FILES ${QM_RESOURCES} DESTINATION ${SHAPER_INSTALL_QM_RESOURCES}) ADD_UNIT_TESTS(TestParameterCreation.py TestParameterRename.py diff --git a/src/ParametersPlugin/ParametersPlugin_msg_ru.ts b/src/ParametersPlugin/ParametersPlugin_msg_ru.ts new file mode 100644 index 000000000..ab1c74b8f --- /dev/null +++ b/src/ParametersPlugin/ParametersPlugin_msg_ru.ts @@ -0,0 +1,70 @@ + + + + + ParametersPlugin_WidgetParamsMgr + + + Name + Имя + + + + Equation + Выражение + + + + Result + Результат + + + + Comment + Коментарий + + + Parameters + Параметры + + + + Features + Объекты + + + + Add + Добавить + + + + Insert + Вставить + + + + Remove + Удалить + + + + + Warning + Предупреждение + + + + Name %1 already exists. + Имя %1 уже существует. + + + + QObject + + + Parameters + Параметры + + + diff --git a/src/XGUI/XGUI_msg_fr.ts b/src/XGUI/XGUI_msg_fr.ts new file mode 100644 index 000000000..a543dd3da --- /dev/null +++ b/src/XGUI/XGUI_msg_fr.ts @@ -0,0 +1,367 @@ + + + + + QObject + + + Warning + + + + + Selected objects can be used in Part documents which are not loaded: %1. Whould you like to continue? + + + + + Selected parameter can not be renamed to: %1. There is a parameter with the same name. Its value is: %2. + + + + + Move to the end + + + + + XGUI_ActionsMgr + + + Shortcut %1 is already defined. Ignore. + + + + + See preview + + + + + XGUI_ContextMenuMgr + + + Delete + + + + + Rename + + + + + Clean history + + + + + Color... + + + + + Show + + + + + Show only + + + + + Hide + + + + + Hide all + + + + + Shading + + + + + Wireframe + + + + + Vertices + + + + + Edges + + + + + Faces + + + + + Result + + + + + Select results + + + + + Select parent feature + + + + + Selection mode + + + + + Windows + + + + + XGUI_DataTree + + + History change + + + + + XGUI_ErrorDialog + + + Application errors + + + + + XGUI_ObjectsBrowser + + + Part set + + + + + XGUI_OperationMgr + + + + Abort operation + + + + + All active operations will be aborted. + + + + + %1 operation will be aborted. + + + + + XGUI_PropertyPanel + + + + Property Panel + + + + + 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 + + + + + Preferences + + + + + Edit preferences + + + + + Exit + + + + + Exit application + + + + + + Save current file + + + + + The document is modified, save before opening another? + + + + + Select directory + + + + + Warning + + + + + Unable to open the file. + + + + + The document is modified, save before exit? + + + + + Select directory to save files... + + + + + Directories (*) + + + + + The directory already contains some files, save anyway? + + + + + 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 + + + +