From 7885824248a6f580ea9fb74cee5a20fe56cd4549 Mon Sep 17 00:00:00 2001
From: Spider <29214314+spide-r@users.noreply.github.com>
Date: Tue, 9 Apr 2024 19:21:55 -0500
Subject: [PATCH] Added Translation support for prior changes
---
ChatTwo/Resources/Language.Designer.cs | 18 ++++++++++++++++++
ChatTwo/Resources/Language.resx | 6 ++++++
ChatTwo/Ui/SettingsTabs/Display.cs | 4 ++--
3 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/ChatTwo/Resources/Language.Designer.cs b/ChatTwo/Resources/Language.Designer.cs
index c4faac5..d6749bd 100755
--- a/ChatTwo/Resources/Language.Designer.cs
+++ b/ChatTwo/Resources/Language.Designer.cs
@@ -1958,6 +1958,24 @@ namespace ChatTwo.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Override Style.
+ ///
+ internal static string Options_OverrideStyle_Name {
+ get {
+ return ResourceManager.GetString("Options_OverrideStyle_Name", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Styles.
+ ///
+ internal static string Options_OverrideStyleDropdown_Name {
+ get {
+ return ResourceManager.GetString("Options_OverrideStyleDropdown_Name", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Display messages in a more modern style..
///
diff --git a/ChatTwo/Resources/Language.resx b/ChatTwo/Resources/Language.resx
index 33959a2..5fe2004 100644
--- a/ChatTwo/Resources/Language.resx
+++ b/ChatTwo/Resources/Language.resx
@@ -502,6 +502,12 @@
If this is enabled, the Auto Translate list will be sorted alphabetically.
+
+ Override Style
+
+
+ Styles
+
Ctrl + {0}
diff --git a/ChatTwo/Ui/SettingsTabs/Display.cs b/ChatTwo/Ui/SettingsTabs/Display.cs
index f200e58..662d3a5 100755
--- a/ChatTwo/Ui/SettingsTabs/Display.cs
+++ b/ChatTwo/Ui/SettingsTabs/Display.cs
@@ -90,13 +90,13 @@ internal sealed class Display : ISettingsTab {
ImGuiUtil.OptionCheckbox(ref Mutable.ShowPopOutTitleBar, Language.Options_ShowPopOutTitleBar_Name);
ImGui.Spacing();
- ImGui.Checkbox("Override Style", ref Mutable.OverrideStyle);
+ ImGui.Checkbox(Language.Options_OverrideStyle_Name, ref Mutable.OverrideStyle);
ImGui.Spacing();
if (Mutable.OverrideStyle)
{
var currentStyle = Mutable.ChosenStyle.Equals("") ? StyleModel.GetConfiguredStyle().Name : Mutable.ChosenStyle;
- if (ImGui.BeginCombo("REMOVEME Styles", currentStyle)) {
+ if (ImGui.BeginCombo(Language.Options_OverrideStyleDropdown_Name, currentStyle)) {
foreach (var style in StyleModel.GetConfiguredStyles()) {
if (ImGui.Selectable(style.Name, this.Mutable.ChosenStyle == style.Name)) {
Mutable.ChosenStyle = style.Name;