From: isn Date: Thu, 25 Jun 2015 14:55:20 +0000 (+0300) Subject: Import/Export new resources X-Git-Tag: v1.4.2~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=507eafaf4b6fa635a502e2481e6cfbda5b5a6036;p=modules%2Fhydro.git Import/Export new resources --- 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 +