Localize difficulty settings.

This commit is contained in:
Matthias Mailänder
2023-04-23 15:35:17 +02:00
committed by Gustas
parent af6330b1bd
commit 4f7a01a291
190 changed files with 623 additions and 524 deletions

View File

@@ -13,6 +13,7 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using OpenRA.Activities;
using OpenRA.FileSystem;
using OpenRA.GameRules;
@@ -551,7 +552,7 @@ namespace OpenRA.Traits
Description = map.GetLocalisedString(description);
IsVisible = visible;
DisplayOrder = displayorder;
Values = values;
Values = values.ToDictionary(v => v.Key, v => map.GetLocalisedString(v.Value));
DefaultValue = defaultValue;
IsLocked = locked;
}