From bae9ce458a3d46f4269ef2a34d679d206e24c4cd Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 1 Jun 2022 16:46:30 -0400 Subject: [PATCH] chore: pull Chinese options into localisation files --- ChatTwo/Resources/Language.Designer.cs | 12 ++++++++++++ ChatTwo/Resources/Language.resx | 6 ++++++ ChatTwo/Ui/SettingsTabs/Fonts.cs | 4 ++-- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ChatTwo/Resources/Language.Designer.cs b/ChatTwo/Resources/Language.Designer.cs index 345c480..de3b2f0 100644 --- a/ChatTwo/Resources/Language.Designer.cs +++ b/ChatTwo/Resources/Language.Designer.cs @@ -818,5 +818,17 @@ namespace ChatTwo.Resources { return ResourceManager.GetString("AutoTranslate_Completion_Key", resourceCulture); } } + + internal static string Options_EnableChineseRange_Name { + get { + return ResourceManager.GetString("Options_EnableChineseRange_Name", resourceCulture); + } + } + + internal static string Options_EnableChineseRange_Description { + get { + return ResourceManager.GetString("Options_EnableChineseRange_Description", resourceCulture); + } + } } } diff --git a/ChatTwo/Resources/Language.resx b/ChatTwo/Resources/Language.resx index 5c1cf0c..7abeb4c 100644 --- a/ChatTwo/Resources/Language.resx +++ b/ChatTwo/Resources/Language.resx @@ -509,4 +509,10 @@ Ctrl + {0} + + Enable Chinese glyphs + + + Adds support for Chinese characters in the global font. This will most likely require Dalamud's font atlas size to be increased. + diff --git a/ChatTwo/Ui/SettingsTabs/Fonts.cs b/ChatTwo/Ui/SettingsTabs/Fonts.cs index 58312c2..c43050e 100755 --- a/ChatTwo/Ui/SettingsTabs/Fonts.cs +++ b/ChatTwo/Ui/SettingsTabs/Fonts.cs @@ -91,8 +91,8 @@ public class Fonts : ISettingsTab { ImGuiUtil.HelpText(string.Format(Language.Options_JapaneseFont_Description, Plugin.PluginName)); ImGui.Spacing(); - ImGui.Checkbox("Enable Chinese glyphs", ref this.Mutable.EnableChineseRange); - ImGuiUtil.HelpText("Adds support for Chinese characters in the global font."); + ImGui.Checkbox(Language.Options_EnableChineseRange_Name, ref this.Mutable.EnableChineseRange); + ImGuiUtil.HelpText(Language.Options_EnableChineseRange_Description); ImGui.Spacing(); }