From c64eea7872f1925c3743ce85c9e7eca3ec5b343b Mon Sep 17 00:00:00 2001 From: JovialFeline Date: Thu, 25 Jul 2024 18:48:40 -0400 Subject: [PATCH] Fix untranslated factions in GameInfoStats --- OpenRA.Mods.Common/Widgets/Logic/Ingame/GameInfoStatsLogic.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/GameInfoStatsLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/GameInfoStatsLogic.cs index fa503b561b..6f1b3cebaa 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/GameInfoStatsLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/GameInfoStatsLogic.cs @@ -260,7 +260,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic : TranslationProvider.GetString(pp.Faction.Name); } else + { flag.GetImageName = () => pp.DisplayFaction.InternalName; + factionName = TranslationProvider.GetString(factionName); + } WidgetUtils.TruncateLabelToTooltip(item.Get("FACTION"), factionName);