Index: DamClients/DamUI/trunk/src/Dam/Tests/StiImporter/StiFileValidatorTest.cs =================================================================== diff -u -r3008 -r3019 --- DamClients/DamUI/trunk/src/Dam/Tests/StiImporter/StiFileValidatorTest.cs (.../StiFileValidatorTest.cs) (revision 3008) +++ DamClients/DamUI/trunk/src/Dam/Tests/StiImporter/StiFileValidatorTest.cs (.../StiFileValidatorTest.cs) (revision 3019) @@ -113,7 +113,7 @@ var messages = fileValidator.Validate(); // Then - string expectedErrorMessage = $"{propertyName} data in '{filePath}' is of a version of D-Geo Stability that is not supported and cannot be read"; + string expectedErrorMessage = $"{propertyName} data in '{filePath}' is of a version of D-Geo Stability that is not supported and cannot be read."; CollectionAssert.AreEqual(new[] { expectedErrorMessage Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/StiImporter/StiFileValidator.cs =================================================================== diff -u -r3008 -r3019 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/StiImporter/StiFileValidator.cs (.../StiFileValidator.cs) (revision 3008) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/StiImporter/StiFileValidator.cs (.../StiFileValidator.cs) (revision 3019) @@ -24,6 +24,7 @@ using System.IO; using System.Linq; using Deltares.Geotechnics.IO.Importers; +using Deltares.Standard.Language; namespace Deltares.Dam.Data.StiImporter { @@ -77,21 +78,22 @@ { if (fileInfo.DSerieFileType != DSerieFileType.DGeoStability) { + string messageFormat = LocalizationManager.GetTranslatedText(this, "ValidateStiFileNotAStiFile"); return new[] { - $"{filePath} is not a D-Geo Stability file (*.sti)." + string.Format(messageFormat, filePath) }; } var messages = new List(); if (!IsVersionValid(fileInfo.SoilVersionNumber, HighestSupportedSoilVersion)) { - messages.Add(GenerateUnsupportedVersionMessage("Soil")); + messages.Add(GenerateUnsupportedVersionMessage(LocalizationManager.GetTranslatedText(this, "SoilDataName"))); } if (!IsVersionValid(fileInfo.GeometryVersionNumber, HighestSupportedGeometryVersion)) { - messages.Add(GenerateUnsupportedVersionMessage("Geometry")); + messages.Add(GenerateUnsupportedVersionMessage(LocalizationManager.GetTranslatedText(this, "GeometryDataName"))); } return messages; @@ -118,7 +120,8 @@ private string GenerateUnsupportedVersionMessage(string propertyName) { - return($"{propertyName} data in '{filePath}' is of a version of D-Geo Stability that is not supported and cannot be read"); + string messageFormat = LocalizationManager.GetTranslatedText(this, "ValidateStiFileUnsupportedVersion"); + return string.Format(messageFormat, propertyName, filePath); } private static bool IsVersionValid(int versionNumber, int highestSupportedVersionNumber) Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Translations.xml =================================================================== diff -u -r3017 -r3019 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Translations.xml (.../Translations.xml) (revision 3017) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Translations.xml (.../Translations.xml) (revision 3019) @@ -581,4 +581,8 @@ + + + + \ No newline at end of file Index: DamClients/DamUI/trunk/src/Dam/Tests/StiImporter/StiFileReaderTest.cs =================================================================== diff -u -r3018 -r3019 --- DamClients/DamUI/trunk/src/Dam/Tests/StiImporter/StiFileReaderTest.cs (.../StiFileReaderTest.cs) (revision 3018) +++ DamClients/DamUI/trunk/src/Dam/Tests/StiImporter/StiFileReaderTest.cs (.../StiFileReaderTest.cs) (revision 3019) @@ -73,7 +73,7 @@ Assert.That(call, Throws.Exception.TypeOf() .With.Message.EqualTo($"'{filePath}' is an unsupported file.")); - string expectedMessage = $"Soil data in '{filePath}' is of a version of D-Geo Stability that is not supported and cannot be read"; + string expectedMessage = $"Soil data in '{filePath}' is of a version of D-Geo Stability that is not supported and cannot be read."; CollectionAssert.AreEqual(new[] { expectedMessage