]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Import/Export new resources
authorisn <isn@opencascade.com>
Thu, 25 Jun 2015 14:55:20 +0000 (17:55 +0300)
committerisn <isn@opencascade.com>
Thu, 25 Jun 2015 14:55:20 +0000 (17:55 +0300)
src/HYDROGUI/HYDROGUI_ExportFileOp.cxx
src/HYDROGUI/resources/HYDROGUI_msg_en.ts

index e5dcd7ffa6aff785a0e1859de2ca611b2d869e96..a902cdadcc5c87d775cc34c8c445129a48983939 100644 (file)
@@ -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
index 7f5cf26d9b0670a827c57901e705bfe1273368bb..559e29b3be309d6434ecf4eb2536946838dd301b 100644 (file)
@@ -2322,6 +2322,14 @@ file cannot be correctly imported for an Obstacle definition.</translation>
       <source>SHP_FILTER</source>
       <translation>Shape Files (*.shp)</translation>
     </message>
+    <message>
+      <source>CANNOT_BE_EXPORTED</source>
+      <translation>The next entities cannot be exported:</translation>
+    </message>
+    <message>
+      <source>ERROR_POLYLINES_OF_DIFF_KIND</source>
+      <translation>Cannot export polylines of different kind</translation>
+    </message>
   </context>
   
   <context>