From 13ef4ae94710a07d3073fe0b988af0a8a4463664 Mon Sep 17 00:00:00 2001 From: Skye <22365940+Skyedra@users.noreply.github.com> Date: Sat, 30 Sep 2023 03:30:21 -0700 Subject: [PATCH] translation - code note for future todo --- SS14.Launcher/Localization/LocalizationManager.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SS14.Launcher/Localization/LocalizationManager.cs b/SS14.Launcher/Localization/LocalizationManager.cs index 41f02102..b6d40a3b 100644 --- a/SS14.Launcher/Localization/LocalizationManager.cs +++ b/SS14.Launcher/Localization/LocalizationManager.cs @@ -76,8 +76,8 @@ private bool LoadSystemDefault() private void LoadTestCulture() { - var sergalTextCultureInfo = new Language("sergal", "Sergal"); - LoadLanguage(sergalTextCultureInfo); + var sergalLanguage = new Language("sergal", "Sergal"); + LoadLanguage(sergalLanguage); } /// @@ -253,6 +253,8 @@ private void UpdateCurrentLanguageDisplayString() { if (activeCatalog != null) { + // TODO - replace with some kind of lookup or something, since this doesn't work for test languages + // (it shows Invariant culture) currentLanguageDisplayString = activeCatalog.CultureInfo.DisplayName; return; }