Hi,
I am translating DotSpatial.Symbology.Forms and I made changes in the FeatureLayerActions.cs and the SymbologyFormsMessageStrings.resx
Here my changes to localize the message box output
```
public void ExportData(IFeatureLayer e)
{
using (var frmExport = new ExportFeature())
{
frmExport.Filename = e.DataSet.Filename;
if (ShowDialog(frmExport) != DialogResult.OK) return;
// Create a FeatureSet of features that the client wants exported
FeatureSet fs = null;
switch (frmExport.FeaturesIndex)
{
case 0:
fs = (FeatureSet) e.DataSet;
break;
case 1:
fs = e.Selection.ToFeatureSet();
break;
case 2:
var features = e.DataSet.Select(e.MapFrame.ViewExtents);
fs = new FeatureSet(features) {Projection = e.Projection};
break;
}
if (fs.Features.Count == 0)
{
fs.CopyTableSchema(e.DataSet);
fs.FeatureType = e.DataSet.FeatureType;
}
fs.SaveAs(frmExport.Filename, true);
if (MessageBox.Show(Owner, SymbologyFormsMessageStrings.ExportFeature_Features_Load,
SymbologyFormsMessageStrings.ExportFeature_Features_Exported,
MessageBoxButtons.YesNo) == DialogResult.Yes)
{
LoadFeatureSetAsLayer(e, fs, Path.GetFileNameWithoutExtension(frmExport.Filename));
}
}
}
```
And this 2 strings in the .resx file
ExportFeature_Features_Exported The layer was exported.
ExportFeature_Features_Load Do you want to load the shapefile?
I have a Problem if I need to use a Code page file .cpg thogether with my .shp file.
In this case the .cpg file is not exported too and the data in the exported file are shown with wrong coding.
Any idea how to change the Code to Export the cpg file too?
I am translating DotSpatial.Symbology.Forms and I made changes in the FeatureLayerActions.cs and the SymbologyFormsMessageStrings.resx
Here my changes to localize the message box output
```
public void ExportData(IFeatureLayer e)
{
using (var frmExport = new ExportFeature())
{
frmExport.Filename = e.DataSet.Filename;
if (ShowDialog(frmExport) != DialogResult.OK) return;
// Create a FeatureSet of features that the client wants exported
FeatureSet fs = null;
switch (frmExport.FeaturesIndex)
{
case 0:
fs = (FeatureSet) e.DataSet;
break;
case 1:
fs = e.Selection.ToFeatureSet();
break;
case 2:
var features = e.DataSet.Select(e.MapFrame.ViewExtents);
fs = new FeatureSet(features) {Projection = e.Projection};
break;
}
if (fs.Features.Count == 0)
{
fs.CopyTableSchema(e.DataSet);
fs.FeatureType = e.DataSet.FeatureType;
}
fs.SaveAs(frmExport.Filename, true);
if (MessageBox.Show(Owner, SymbologyFormsMessageStrings.ExportFeature_Features_Load,
SymbologyFormsMessageStrings.ExportFeature_Features_Exported,
MessageBoxButtons.YesNo) == DialogResult.Yes)
{
LoadFeatureSetAsLayer(e, fs, Path.GetFileNameWithoutExtension(frmExport.Filename));
}
}
}
```
And this 2 strings in the .resx file
ExportFeature_Features_Exported The layer was exported.
ExportFeature_Features_Load Do you want to load the shapefile?
I have a Problem if I need to use a Code page file .cpg thogether with my .shp file.
In this case the .cpg file is not exported too and the data in the exported file are shown with wrong coding.
Any idea how to change the Code to Export the cpg file too?