From 507eafaf4b6fa635a502e2481e6cfbda5b5a6036 Mon Sep 17 00:00:00 2001 From: isn Date: Thu, 25 Jun 2015 17:55:20 +0300 Subject: [PATCH] Import/Export new resources --- src/HYDROGUI/HYDROGUI_ExportFileOp.cxx | 7 +++---- src/HYDROGUI/resources/HYDROGUI_msg_en.ts | 8 ++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx b/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx index e5dcd7ff..a902cdad 100644 --- a/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx @@ -94,7 +94,7 @@ void HYDROGUI_ExportFileOp::startOperation() } if (!aPolyXYSeq.IsEmpty() && !aPoly3DSeq.IsEmpty()) - SUIT_MessageBox::warning( module()->getApp()->desktop(), "Export Polyline", "Cannot export polylines of different kind"); + SUIT_MessageBox::warning( module()->getApp()->desktop(), tr( "EXPORT_TO_SHAPE_FILE" ), tr("ERROR_POLYLINES_OF_DIFF_KIND")); else { QString aName = ""; @@ -134,12 +134,11 @@ void HYDROGUI_ExportFileOp::startOperation() SHPClose( hSHPHandle ); if (!aNonExpList.empty()) { - QString aMessage = "The next entities cannot be exported:\n"; + QString aMessage = tr("CANNOT_BE_EXPORTED") + "\n"; foreach (QString anNonExpEntName, aNonExpList) aMessage += anNonExpEntName + "\n"; - SUIT_MessageBox::warning( module()->getApp()->desktop(), "Export warning", aMessage); + SUIT_MessageBox::warning( module()->getApp()->desktop(), tr( "EXPORT_TO_SHAPE_FILE" ), aMessage); } - //TODO pint aNonExpList commit(); } else diff --git a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts index 7f5cf26d..559e29b3 100644 --- a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts +++ b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts @@ -2322,6 +2322,14 @@ file cannot be correctly imported for an Obstacle definition. SHP_FILTER Shape Files (*.shp) + + CANNOT_BE_EXPORTED + The next entities cannot be exported: + + + ERROR_POLYLINES_OF_DIFF_KIND + Cannot export polylines of different kind + -- 2.39.2