chore: pull glyph range text into localisation files

This commit is contained in:
Anna 2022-06-01 17:17:01 -04:00
parent 82169d7334
commit f464e4e63d
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
3 changed files with 20 additions and 2 deletions

View File

@ -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);
}
}
}
}

View File

@ -515,4 +515,10 @@
<data name="Options_EnableChineseRange_Description" xml:space="preserve">
<value>Adds support for Chinese characters in the global font. This will most likely require Dalamud's font atlas size to be increased.</value>
</data>
<data name="Options_ExtraGlyphs_Name" xml:space="preserve">
<value>Extra font glyphs</value>
</data>
<data name="Options_ExtraGlyphs_Description" xml:space="preserve">
<value>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.</value>
</data>
</root>

View File

@ -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<ExtraGlyphRanges>()) {