Index: DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/WaterBoardImporterTests.cs =================================================================== diff -u -r4217 -r4237 --- DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/WaterBoardImporterTests.cs (.../WaterBoardImporterTests.cs) (revision 4217) +++ DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/WaterBoardImporterTests.cs (.../WaterBoardImporterTests.cs) (revision 4237) @@ -300,7 +300,7 @@ string damImportFolder = Path.GetDirectoryName(definitionFilename); Assert.That(() => WaterBoardImporter.ImportDikeRingIds(damImportFolder, dataSourceContainer, DamProjectType.Calamity, out _), - Throws.InstanceOf().With.Message.EqualTo("DataLocation is empty. Perhaps the DataSourceType is not supported.")); + Throws.InstanceOf().With.Message.EqualTo("DataLocation is empty. Perhaps the data source type is not supported.")); } [Test] Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DataPlugins/DataPluginImporter.cs =================================================================== diff -u -r4216 -r4237 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DataPlugins/DataPluginImporter.cs (.../DataPluginImporter.cs) (revision 4216) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DataPlugins/DataPluginImporter.cs (.../DataPluginImporter.cs) (revision 4237) @@ -34,6 +34,7 @@ using Deltares.Geotechnics.SurfaceLines; using Deltares.Maps; using Deltares.Standard; +using Deltares.Standard.Language; using Deltares.Standard.Logging; using GeoAPI.Geometries; using ProgressDelegate = Deltares.DamEngine.Data.Standard.Calculation.ProgressDelegate; @@ -42,7 +43,7 @@ // TODO: Import PL1-lines /// -/// ImportMode +/// ImportMode /// internal enum ImportMode { @@ -229,7 +230,7 @@ } /// - /// Gets the surface line identifier list. + /// Gets the surface line identifier list. /// /// The dike ring identifier. /// @@ -240,13 +241,13 @@ } /// - /// Gets the dike ring identifier list. + /// Gets the dike ring identifier list. /// /// public IEnumerable GetDikeRingIdList() { ImportDikeRingAndLocationData(); - return waterBoard.Dikes.Select(dike => dike.Name); + return WaterBoard.Dikes.Select(dike => dike.Name); } /// @@ -997,9 +998,9 @@ if (dataLocation == null) { - throw new DataPluginImporterException("DataLocation is empty. Perhaps the DataSourceType is not supported."); + throw new DataPluginImporterException(LocalizationManager.GetTranslatedText(GetType(), "EmptyDataLocation")); } - + if (!string.IsNullOrEmpty(DataFolder) && (!Directory.Exists(dataLocation) || !File.Exists(dataLocation))) { @@ -1010,7 +1011,7 @@ } /// - /// Imports the dike ring and location data. + /// Imports the dike ring and location data. /// /// The data source. /// @@ -1038,7 +1039,7 @@ } /// - /// Imports the data. + /// Imports the data. /// /// The data source. /// The import mode. @@ -1076,7 +1077,7 @@ } /// - /// Imports the shape file. + /// Imports the shape file. /// /// The data location. /// The location records. @@ -1102,7 +1103,7 @@ } /// - /// Imports all data. + /// Imports all data. /// /// The progress. private void ImportAllData(ProgressDelegate progress) @@ -1119,7 +1120,7 @@ } /// - /// Import all data + /// Import all data /// private void ImportData(ImportMode importMode, ProgressDelegate progress) { @@ -1163,7 +1164,7 @@ } /// - /// Adds the scenario data to dikes. + /// Adds the scenario data to dikes. /// /// The CSV importer. private void AddScenarioDataToDikes(CsvImporter csvImporter) @@ -1231,20 +1232,20 @@ /// private void ThrowIfNoDataDefinitions() { - if (DataSources == null || !DataSources.Any()) + if ((DataSources == null) || !DataSources.Any()) { - throw new DataPluginImporterException("No data sources defined"); + throw new DataPluginImporterException(LocalizationManager.GetTranslatedText(GetType(), "NoDataSourcesDefined")); } } /// - /// Check if data has been read + /// Check if data has been read /// private void ThrowIfDataNotRead() { if (!isAllDataImported) { - throw new DataPluginImporterException("Data has not been imported yet"); + throw new DataPluginImporterException(LocalizationManager.GetTranslatedText(GetType(), "DataHasNotBeenImportedYet")); } } } \ No newline at end of file Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Translations.xml =================================================================== diff -u -r4192 -r4237 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Translations.xml (.../Translations.xml) (revision 4192) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Translations.xml (.../Translations.xml) (revision 4237) @@ -871,4 +871,13 @@ + + + \ No newline at end of file