feat(i18n): localise the quick-button tooltips

The three quick-button tooltips were hard-coded English while the rest of the
UI goes through HellionStrings. All 25 resource files now carry them, machine
translated on Flo's go-ahead.

Verified: every file still parses as XML, and the base file stays English so a
missing language falls back to what was there before.
This commit is contained in:
2026-08-18 10:09:23 +02:00
parent 30c495849d
commit 2686a8f74b
27 changed files with 238 additions and 6 deletions
+6 -6
View File
@@ -511,9 +511,9 @@ internal sealed class InputBar
private void DrawQuickButtons()
{
// Tooltip text is collected here and drawn after the icon font is popped.
// Inside the push it rendered against the FontAwesome atlas, which has no
// ASCII glyphs, so every tooltip came out as an empty box.
// Collected here and drawn after the icon font is popped. Inside the push
// it rendered against the FontAwesome atlas, which has no ASCII glyphs, so
// every tooltip came out as an empty box.
string? tooltip = null;
using (_fonts.FontAwesome.Push())
@@ -521,7 +521,7 @@ internal sealed class InputBar
if (ImGui.Button(FontAwesomeIcon.SmileBeam.ToIconString()))
_symbolPicker.OpenPopup();
if (ImGui.IsItemHovered())
tooltip = "Insert symbol";
tooltip = HellionStrings.InputBar_InsertSymbol_Tooltip;
if (_themeQuickPicker is not null)
{
@@ -538,7 +538,7 @@ internal sealed class InputBar
_onOpenSettings();
}
if (ImGui.IsItemHovered())
tooltip = "Settings";
tooltip = HellionStrings.InputBar_Settings_Tooltip;
// Hides the window (1.5.6 UserHide). One-way — Enter brings it back.
// Main window only (pop-outs have their own close); last in the row.
@@ -548,7 +548,7 @@ internal sealed class InputBar
if (ImGui.Button(FontAwesomeIcon.EyeSlash.ToIconString()))
_onHideWindow();
if (ImGui.IsItemHovered())
tooltip = "Hide chat (Enter to bring back)";
tooltip = HellionStrings.InputBar_HideChat_Tooltip;
}
}