From f464e4e63d3ded8dfef2a8a166be2c36af2caf0c Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Wed, 1 Jun 2022 17:17:01 -0400 Subject: [PATCH] chore: pull glyph range text 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 de3b2f0..16853c8 100644 --- a/ChatTwo/Resources/Language.Designer.cs +++ b/ChatTwo/Resources/Language.Designer.cs @@ -830,5 +830,17 @@ namespace ChatTwo.Resources { return ResourceManager.GetString("Options_EnableChineseRange_Description", resourceCulture); } } + + internal static string Options_ExtraGlyphs_Name { + get { + return ResourceManager.GetString("Options_ExtraGlyphs_Name", resourceCulture); + } + } + + internal static string Options_ExtraGlyphs_Description { + get { + return ResourceManager.GetString("Options_ExtraGlyphs_Description", resourceCulture); + } + } } } diff --git a/ChatTwo/Resources/Language.resx b/ChatTwo/Resources/Language.resx index 7abeb4c..152734d 100644 --- a/ChatTwo/Resources/Language.resx +++ b/ChatTwo/Resources/Language.resx @@ -515,4 +515,10 @@ Adds support for Chinese characters in the global font. This will most likely require Dalamud's font atlas size to be increased. + + Extra font glyphs + + + Extra glyphs can be added to {0}'s font global font by enabling the checkboxes below. This will likely require increasing Dalamud's font atlas size. + diff --git a/ChatTwo/Ui/SettingsTabs/Fonts.cs b/ChatTwo/Ui/SettingsTabs/Fonts.cs index 97ea014..db14ee8 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(); - if (ImGui.CollapsingHeader("Extra font glyphs")) { - ImGuiUtil.HelpText("Extra glyphs can be added to {0}'s font global font by enabling the checkboxes below. This will likely require increasing Dalamud's font atlas size."); + if (ImGui.CollapsingHeader(Language.Options_ExtraGlyphs_Name)) { + ImGuiUtil.HelpText(string.Format(Language.Options_ExtraGlyphs_Description, Plugin.PluginName)); var range = (int) this.Mutable.ExtraGlyphRanges; foreach (var extra in Enum.GetValues()) {