From d535fec23193ecf78cd7d9ee6a3d359a72d8a7c9 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 24 Jun 2016 20:44:15 +0300 Subject: [PATCH] Added translations and some debug --- .../ConstructionPlugin_msg_en.ts | 34 ++-- src/ExchangePlugin/ExchangePlugin_msg_en.ts | 2 +- src/ParametersPlugin/CMakeLists.txt | 5 +- .../ParametersPlugin_msg_en.ts | 18 ++ .../ParametersPlugin_msg_ru.ts | 13 -- src/SketchPlugin/SketchPlugin_msg_en.ts | 168 +++++++++--------- 6 files changed, 115 insertions(+), 125 deletions(-) create mode 100755 src/ParametersPlugin/ParametersPlugin_msg_en.ts diff --git a/src/ConstructionPlugin/ConstructionPlugin_msg_en.ts b/src/ConstructionPlugin/ConstructionPlugin_msg_en.ts index b0c27641d..851eb5f72 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_msg_en.ts +++ b/src/ConstructionPlugin/ConstructionPlugin_msg_en.ts @@ -5,27 +5,23 @@ Axis CylindricalFace - GeomValidators_Face: The attribute with the %1 type is not processed - + The axis by face references to not acceptable shape type. The type should be: %1 CylindricalFace - GeomValidators_Face: The shape is not a face. - - - - CylindricalFace - GeomValidators_Face: The shape is not a face. - + The axis by face can be created only on a face CylindricalFace - GeomValidators_Face: The shape is not a plane. - + The axis by face can be created only on a planar face CylindricalFace - GeomValidators_Face: The shape is not a cylinder. - + The axis by face can be created only on a cylindrical face CylindricalFace - GeomValidators_Face: The shape is not an available face. - + The axis by a face cannot be created on the selected face @@ -33,27 +29,23 @@ Plane planeFace - GeomValidators_Face: The attribute with the %1 type is not processed - - - - planeFace - GeomValidators_Face: The shape is not a face. - + The plane references to not acceptable shape type. The type should be: %1 planeFace - GeomValidators_Face: The shape is not a face. - + The plane can be created only on a face planeFace - GeomValidators_Face: The shape is not a plane. - + The plane can be created only on a planar face planeFace - GeomValidators_Face: The shape is not a cylinder. - + The plane can be created only on a cylindrical face planeFace - GeomValidators_Face: The shape is not an available face. - + The plane cannot be created on the selected face @@ -61,15 +53,15 @@ Point Model_FeatureValidator: Attribute "x" is not initialized. - + Select the x coordinate Model_FeatureValidator: Attribute "y" is not initialized. - + Select the y coordinate Model_FeatureValidator: Attribute "z" is not initialized. - + Select the z coordinate diff --git a/src/ExchangePlugin/ExchangePlugin_msg_en.ts b/src/ExchangePlugin/ExchangePlugin_msg_en.ts index 4a367ef19..7c7304c50 100644 --- a/src/ExchangePlugin/ExchangePlugin_msg_en.ts +++ b/src/ExchangePlugin/ExchangePlugin_msg_en.ts @@ -30,7 +30,7 @@ selection_list - GeomValidators_Finite: Infinite result is selected. - + Olny finitive shapes can be exported diff --git a/src/ParametersPlugin/CMakeLists.txt b/src/ParametersPlugin/CMakeLists.txt index d9f8b4b6e..d1cdf512e 100644 --- a/src/ParametersPlugin/CMakeLists.txt +++ b/src/ParametersPlugin/CMakeLists.txt @@ -57,6 +57,7 @@ ADD_DEFINITIONS(-DPARAMETERSPLUGIN_EXPORTS -DHAVE_DEBUG_PYTHON ${CAS_DEFINITIONS SET(TEXT_RESOURCES ParametersPlugin_msg_ru.ts + ParametersPlugin_msg_en.ts ) # QT4_CREATE_TRANSLATION(QM_RESOURCES @@ -73,13 +74,13 @@ SET(PROJECT_AUTOMOC 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}) +ADD_LIBRARY(ParametersPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_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 ${XML_RESOURCES} ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}) INSTALL(FILES ${QM_RESOURCES} DESTINATION ${SHAPER_INSTALL_QM_RESOURCES}) ADD_UNIT_TESTS(TestParameterCreation.py diff --git a/src/ParametersPlugin/ParametersPlugin_msg_en.ts b/src/ParametersPlugin/ParametersPlugin_msg_en.ts new file mode 100755 index 000000000..1fa991f47 --- /dev/null +++ b/src/ParametersPlugin/ParametersPlugin_msg_en.ts @@ -0,0 +1,18 @@ + + + + + + Parameter + + Model_FeatureValidator: Attribute "variable" is not initialized. + Set the variable name + + + Model_FeatureValidator: Attribute "expression" is not initialized. + Set the expression + + + + + diff --git a/src/ParametersPlugin/ParametersPlugin_msg_ru.ts b/src/ParametersPlugin/ParametersPlugin_msg_ru.ts index 07041b259..fb0398fab 100644 --- a/src/ParametersPlugin/ParametersPlugin_msg_ru.ts +++ b/src/ParametersPlugin/ParametersPlugin_msg_ru.ts @@ -74,17 +74,4 @@ - - Parameter - - Model_FeatureValidator: Attribute "variable" is not initialized. - - - - Model_FeatureValidator: Attribute "expression" is not initialized. - - - - - diff --git a/src/SketchPlugin/SketchPlugin_msg_en.ts b/src/SketchPlugin/SketchPlugin_msg_en.ts index c4f54fec7..e02d576f7 100644 --- a/src/SketchPlugin/SketchPlugin_msg_en.ts +++ b/src/SketchPlugin/SketchPlugin_msg_en.ts @@ -14,27 +14,23 @@ External - GeomValidators_Face: The attribute with the %1 type is not processed - + Only attribute selection can be used for the sketch face, not %1 External - GeomValidators_Face: The shape is not a face. - - - - External - GeomValidators_Face: The shape is not a face. - + Sketch can be created only on a face External - GeomValidators_Face: The shape is not a plane. - + Sketch can be created only on a planar face External - GeomValidators_Face: The shape is not a cylinder. - + Sketch can be created only on a cylindrical face External - GeomValidators_Face: The shape is not an available face. - + Sketch cannot be created on the selected face @@ -69,17 +65,13 @@ Select a radius distance - - CircleRadius - GeomValidators_Positive: Double is not positive. - - CircleRadius - GeomValidators_Positive: Integer is not initialized. - + Integer radius is not initialized CircleRadius - GeomValidators_Positive: Integer is not positive. - + Integer radius must be set @@ -100,27 +92,27 @@ ConstraintEntityA - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1 - + The constraint argument does not contain element with acceptable shape type. The type should be one of the next: %1 ConstraintEntityA - GeomValidators_ShapeType: It has reference to an empty attribute - + The constraint argument refers to nothing - ConstraintEntityA - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\" - + ConstraintEntityA - GeomValidators_ShapeType: Shape type is "%1", it should be "%2" + The constraint argument refers to %1 but must be %2 ConstraintEntityA - GeomValidators_ShapeType: The attribute with the %1 type is not processed - + The constraint argument of type %1 is not supported ConstraintEntityA - GeomValidators_ShapeType: The result is empty - + The constraint argument refers to not existing item ConstraintEntityA - GeomValidators_ShapeType: The shape is empty - + The constraint argument refers to the empty shape @@ -145,27 +137,27 @@ ConstraintEntityB - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1 - + The second line references to not acceptable shape type. The type should be: %1 ConstraintEntityB - GeomValidators_ShapeType: It has reference to an empty attribute - + The second line refers to nothing - ConstraintEntityB - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\" - + ConstraintEntityB - GeomValidators_ShapeType: Shape type is "%1", it should be "%2" + The second line refers to %1 but must be %2 ConstraintEntityB - GeomValidators_ShapeType: The attribute with the %1 type is not processed - + The second line of type %1 is not supported ConstraintEntityB - GeomValidators_ShapeType: The result is empty - + The second line refers to not existing item ConstraintEntityB - GeomValidators_ShapeType: The shape is empty - + The second line refers to the empty shape @@ -190,15 +182,15 @@ ConstraintValue - GeomValidators_Positive: Double is not positive. - + Radius must be positive ConstraintValue - GeomValidators_Positive: Integer is not initialized. - + Integer radius must be set ConstraintValue - GeomValidators_Positive: Integer is not positive. - + Integer radius must be positive @@ -219,27 +211,27 @@ ConstraintEntityA - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1 - + The first line references to not acceptable shape type. The type should be: %1 ConstraintEntityA - GeomValidators_ShapeType: It has reference to an empty attribute - + The first line refers to nothing - ConstraintEntityA - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\" - + ConstraintEntityA - GeomValidators_ShapeType: Shape type is "%1", it should be "%2" + The first line refers to %1 but must be %2 ConstraintEntityA - GeomValidators_ShapeType: The attribute with the %1 type is not processed - + The first line of type %1 is not supported ConstraintEntityA - GeomValidators_ShapeType: The result is empty - + The first line refers to not existing item ConstraintEntityA - GeomValidators_ShapeType: The shape is empty - + The first line refers to the empty shape @@ -291,7 +283,7 @@ Attribute "RectEndPoint" is locked by modification value in the viewer. - Select a end point of the rectangle + Select an end point of the rectangle Attribute "RectStartPoint" is locked by modification value in the viewer. @@ -300,11 +292,11 @@ Model_FeatureValidator: Attribute "RectStartPoint" is not initialized. - + Select a first point of the rectangle Model_FeatureValidator: Attribute "RectEndPoint" is not initialized. - + Select an end point of the rectangle @@ -357,15 +349,15 @@ ArcRadius - GeomValidators_Positive: Double is not positive. - + Acr radius must e positive ArcRadius - GeomValidators_Positive: Integer is not initialized. - + Integer arc radius must be set ArcRadius - GeomValidators_Positive: Integer is not positive. - + Integer arc radius must be positive @@ -386,27 +378,27 @@ ConstraintEntityA - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1 - + The mirror line references to not acceptable shape type. The type should be: %1 ConstraintEntityA - GeomValidators_ShapeType: It has reference to an empty attribute - + The mirror line refers to nothing - ConstraintEntityA - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\" - + ConstraintEntityA - GeomValidators_ShapeType: Shape type is "%1", it should be "%2" + The mirror line refers to %1 but must be %2 ConstraintEntityA - GeomValidators_ShapeType: The attribute with the %1 type is not processed - + The mirror line of type %1 is not supported ConstraintEntityA - GeomValidators_ShapeType: The result is empty - + The mirror line refers to not existing item ConstraintEntityA - GeomValidators_ShapeType: The shape is empty - + The mirror line refers to the empty shape @@ -427,19 +419,19 @@ MultiRotationObjects - GeomValidators_Positive: Double is not initialized. - + The total number of rotated objects is not set MultiRotationObjects - GeomValidators_Positive: Double is not positive. - + The total number of rotated objects must be positive MultiRotationObjects - GeomValidators_Positive: Integer is not initialized. - + The total number of rotated objects is not set MultiRotationObjects - GeomValidators_Positive: Integer is not positive. - + The total number of rotated objects must be positive @@ -464,19 +456,19 @@ MultiTranslationObjects - GeomValidators_Positive: Double is not initialized. - + The total number of translated objects is not set MultiTranslationObjects - GeomValidators_Positive: Double is not positive. - + The total number of translated objects must be positive MultiTranslationObjects - GeomValidators_Positive: Integer is not initialized. - + The total number of translated objects is not set MultiTranslationObjects - GeomValidators_Positive: Integer is not positive. - + The total number of translated objects must be positive @@ -497,7 +489,7 @@ ConstraintEntityB - SketchPlugin_ExternalValidator: Both features, attribute and attribute in parameter, are external. - + An angle can not be created between two external objects @@ -522,7 +514,7 @@ ConstraintEntityB - SketchPlugin_ExternalValidator: Both features, attribute and attribute in parameter, are external. - + A coincidence can not be created between two external objects @@ -542,7 +534,7 @@ ConstraintValue - GeomValidators_Positive: Double is not initialized. - Distance value is not positive + Distance value must be set Model_FeatureValidator: Attribute "ConstraintEntityA" is not initialized. @@ -555,15 +547,15 @@ ConstraintValue - GeomValidators_Positive: Double is not positive. - + Distance value must be positive ConstraintValue - GeomValidators_Positive: Integer is not initialized. - + Integer distance value must be set ConstraintValue - GeomValidators_Positive: Integer is not positive. - + Integer distance value must be positive @@ -592,7 +584,7 @@ ConstraintEntityB - SketchPlugin_ExternalValidator: Both features, attribute and attribute in parameter, are external. - + An equality can not be set between two external objects @@ -608,7 +600,7 @@ ConstraintValue - GeomValidators_Positive: Double is not initialized. - Length value is not positive + Set the length value Model_FeatureValidator: Attribute "ConstraintEntityA" is not initialized. @@ -617,15 +609,15 @@ ConstraintValue - GeomValidators_Positive: Double is not positive. - + Length value is not positive ConstraintValue - GeomValidators_Positive: Integer is not initialized. - + Set the integer length value ConstraintValue - GeomValidators_Positive: Integer is not positive. - + Integer length value is not positive @@ -654,7 +646,7 @@ ConstraintEntityB - SketchPlugin_ExternalValidator: Both features, attribute and attribute in parameter, are external. - + An middle can not be set for two external objects @@ -679,7 +671,7 @@ ConstraintEntityB - SketchPlugin_ExternalValidator: Both features, attribute and attribute in parameter, are external. - + An parallel can not be set between two external objects @@ -696,27 +688,27 @@ ConstraintEntityA - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1 - + The fixed constraint references to not acceptable shape type. The type should be: %1 ConstraintEntityA - GeomValidators_ShapeType: It has reference to an empty attribute - + The fixed constraint refers to nothing - ConstraintEntityA - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\" - + ConstraintEntityA - GeomValidators_ShapeType: Shape type is "%1", it should be "%2" + The fixed constraint refers to %1 but must be %2 ConstraintEntityA - GeomValidators_ShapeType: The attribute with the %1 type is not processed - + The fixed constraint of type %1 is not supported ConstraintEntityA - GeomValidators_ShapeType: The result is empty - + The fixed constraint refers to not existing item ConstraintEntityA - GeomValidators_ShapeType: The shape is empty - + The fixed constraint refers to the empty shape @@ -748,35 +740,35 @@ SketchConstraintFillet ConstraintValue - GeomValidators_Positive: Double is not initialized. - + Set the fillet radius ConstraintValue - GeomValidators_Positive: Double is not positive. - + The fillet radius must be positive ConstraintValue - GeomValidators_Positive: Integer is not initialized. - + Set the integer fillet radius ConstraintValue - GeomValidators_Positive: Integer is not positive. - + The integer fillet radius must be positive - SketchConstraintFillet + SketchProjection ExternalFeature - SketchPlugin_ProjectionValidator: The attribute with the %1 type is not processed - + An argument of type %1 of the projection feature is not supported ExternalFeature - SketchPlugin_ProjectionValidator: The attribute %1 should be an edge - + The projected item must be an edge ExternalFeature - SketchPlugin_ProjectionValidator: There is no sketch referring to the current feature - + The projection feature has no sketch -- 2.39.2