Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add L10N for GameCollections.cs #586

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions ClientCore/CnCNet5/GameCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Reflection;
using Rampastring.Tools;
using SixLabors.ImageSharp;
using ClientCore.Extensions;

namespace ClientCore.CnCNet5
{
Expand Down Expand Up @@ -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)
},

Expand All @@ -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)
},

Expand All @@ -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)
},

Expand All @@ -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)
},

Expand All @@ -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)
},

Expand All @@ -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)
},

Expand All @@ -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
},
Expand All @@ -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
},
Expand All @@ -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
},
Expand All @@ -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)
},

Expand All @@ -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)
},

Expand All @@ -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
}
Expand All @@ -202,7 +203,7 @@ public void Initialize()
{
ChatChannel = "#cncnet",
InternalName = "cncnet",
UIName = "General CnCNet Chat",
UIName = "General CnCNet Chat".L10N("Client:Core:GeneralCnCNetChat"),
Flactine marked this conversation as resolved.
Show resolved Hide resolved
AlwaysEnabled = true,
Texture = AssetLoader.TextureFromImage(cncnetIcon)
}
Expand Down
Loading