diff --git a/Step.Config/ServerConfigController.cs b/Step.Config/ServerConfigController.cs index e560f1f2..a98f6798 100644 --- a/Step.Config/ServerConfigController.cs +++ b/Step.Config/ServerConfigController.cs @@ -312,10 +312,12 @@ namespace Step.Config .Select(x => new HeadsConfigModel() { Id = i++, // Autoincrement Id - Name = x.Element("name").Value, Type = GetHeadType(x.Element("type").Value), WarningLimit = Convert.ToInt16(x.Element("warningLimit").Value), - AlarmLimit = Convert.ToInt16(x.Element("alarmLimit").Value), + AlarmLimit = Convert.ToInt16(x.Element("alarmLimit").Value), + LocalizedNames = x.Element("localizedNames").Elements().ToDictionary( // Read localized names and convert into a dictionary + y => y.Attribute("langKey").Value, y => y.Value + ), }) .ToList(); }