chore: pull glyph range text into localisation files

This commit is contained in:
Anna
2022-06-01 17:17:01 -04:00
parent 744d9e1941
commit 41f91b4661
3 changed files with 20 additions and 2 deletions
+12
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);
}
}
}
}
+6
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>
+2 -2
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>()) {