From b14efa1f838a8818f120e742bb41f4bf8ac229f0 Mon Sep 17 00:00:00 2001 From: Flactine <1716455702@qq.com> Date: Tue, 26 Nov 2024 09:39:19 +0800 Subject: [PATCH] Add L10N for GameCollections.cs --- ClientCore/CnCNet5/GameCollection.cs | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/ClientCore/CnCNet5/GameCollection.cs b/ClientCore/CnCNet5/GameCollection.cs index b5b792438..81e184411 100644 --- a/ClientCore/CnCNet5/GameCollection.cs +++ b/ClientCore/CnCNet5/GameCollection.cs @@ -6,6 +6,7 @@ using System.Reflection; using Rampastring.Tools; using SixLabors.ImageSharp; +using ClientCore.Extensions; namespace ClientCore.CnCNet5 { @@ -65,7 +66,7 @@ public void Initialize() GameBroadcastChannel = "#cncnet-dta-games", InternalName = "dta", RegistryInstallPath = "HKCU\\Software\\TheDawnOfTheTiberiumAge", - UIName = "Dawn of the Tiberium Age", + UIName = "Dawn of the Tiberium Age".L10N("Client:Core:DawnoftheTiberiumAge"), Texture = AssetLoader.TextureFromImage(dtaIcon) }, @@ -76,7 +77,7 @@ public void Initialize() GameBroadcastChannel = "#cncnet-ti-games", InternalName = "ti", RegistryInstallPath = "HKCU\\Software\\TwistedInsurrection", - UIName = "Twisted Insurrection", + UIName = "Twisted Insurrection".L10N("Client:Core:TwistedInsurrection"), Texture = AssetLoader.TextureFromImage(tiIcon) }, @@ -87,7 +88,7 @@ public void Initialize() GameBroadcastChannel = "#cncnet-mo-games", InternalName = "mo", RegistryInstallPath = "HKCU\\Software\\MentalOmega", - UIName = "Mental Omega", + UIName = "Mental Omega".L10N("Client:Core:MentalOmega"), Texture = AssetLoader.TextureFromImage(moIcon) }, @@ -98,7 +99,7 @@ public void Initialize() GameBroadcastChannel = "#redres-games", InternalName = "rr", RegistryInstallPath = "HKLM\\Software\\RedResurrection", - UIName = "YR Red-Resurrection", + UIName = "YR Red-Resurrection".L10N("Client:Core:YRRedResurrection"), Texture = AssetLoader.TextureFromImage(rrIcon) }, @@ -109,7 +110,7 @@ public void Initialize() GameBroadcastChannel = "#rote-games", InternalName = "re", RegistryInstallPath = "HKLM\\Software\\RiseoftheEast", - UIName = "Rise of the East", + UIName = "Rise of the East".L10N("Client:Core:RiseoftheEast"), Texture = AssetLoader.TextureFromImage(reIcon) }, @@ -120,7 +121,7 @@ public void Initialize() GameBroadcastChannel = "#cncreloaded-games", InternalName = "cncr", RegistryInstallPath = "HKCU\\Software\\CnCReloaded", - UIName = "C&C: Reloaded", + UIName = "C&C: Reloaded".L10N("Client:Core:CnCReloaded"), Texture = AssetLoader.TextureFromImage(cncrIcon) }, @@ -131,7 +132,7 @@ public void Initialize() GameBroadcastChannel = "#cncnet-td-games", InternalName = "td", RegistryInstallPath = "HKLM\\Software\\Westwood\\Tiberian Dawn", - UIName = "Tiberian Dawn", + UIName = "Tiberian Dawn".L10N("Client:Core:TiberianDawn"), Texture = AssetLoader.TextureFromImage(tdIcon), Supported = false }, @@ -143,7 +144,7 @@ public void Initialize() GameBroadcastChannel = "#cncnet-ra-games", InternalName = "ra", RegistryInstallPath = "HKLM\\Software\\Westwood\\Red Alert", - UIName = "Red Alert", + UIName = "Red Alert".L10N("Client:Core:RedAlert"), Texture = AssetLoader.TextureFromImage(raIcon), Supported = false }, @@ -155,7 +156,7 @@ public void Initialize() GameBroadcastChannel = "#cncnet-d2k-games", InternalName = "d2k", RegistryInstallPath = "HKLM\\Software\\Westwood\\Dune 2000", - UIName = "Dune 2000", + UIName = "Dune 2000".L10N("Client:Core:Dune2000"), Texture = AssetLoader.TextureFromImage(d2kIcon), Supported = false }, @@ -167,7 +168,7 @@ public void Initialize() GameBroadcastChannel = "#cncnet-ts-games", InternalName = "ts", RegistryInstallPath = "HKLM\\Software\\Westwood\\Tiberian Sun", - UIName = "Tiberian Sun", + UIName = "Tiberian Sun".L10N("Client:Core:TiberianSun"), Texture = AssetLoader.TextureFromImage(tsIcon) }, @@ -178,7 +179,7 @@ public void Initialize() GameBroadcastChannel = "#cncnet-yr-games", InternalName = "yr", RegistryInstallPath = "HKLM\\Software\\Westwood\\Yuri's Revenge", - UIName = "Yuri's Revenge", + UIName = "Yuri's Revenge".L10N("Client:Core:YurisRevenge"), Texture = AssetLoader.TextureFromImage(yrIcon) }, @@ -189,7 +190,7 @@ public void Initialize() GameBroadcastChannel = "#cncnet-ss-games", InternalName = "ss", RegistryInstallPath = "HKLM\\Software\\Westwood\\Sole Survivor", - UIName = "Sole Survivor", + UIName = "Sole Survivor".L10N("Client:Core:SoleSurvivor"), Texture = AssetLoader.TextureFromImage(ssIcon), Supported = false } @@ -202,7 +203,7 @@ public void Initialize() { ChatChannel = "#cncnet", InternalName = "cncnet", - UIName = "General CnCNet Chat", + UIName = "General CnCNet Chat".L10N("Client:Core:GeneralCnCNetChat"), AlwaysEnabled = true, Texture = AssetLoader.TextureFromImage(cncnetIcon) }