mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Localize settings search
This commit is contained in:
parent
3aa5aa4a82
commit
162c0b5f5d
1 changed files with 4 additions and 4 deletions
|
|
@ -150,7 +150,7 @@ internal sealed class SettingsWindow : Window
|
|||
public override void Draw()
|
||||
{
|
||||
ImGui.SetNextItemWidth(-1);
|
||||
ImGui.InputTextWithHint("###searchInput"u8, "Search for settings..."u8, ref this.searchInput, 100);
|
||||
ImGui.InputTextWithHint("###searchInput"u8, Loc.Localize("DalamudSettingsSearchPlaceholder", "Search for settings..."), ref this.searchInput, 100);
|
||||
ImGui.Spacing();
|
||||
|
||||
var windowSize = ImGui.GetWindowSize();
|
||||
|
|
@ -218,7 +218,7 @@ internal sealed class SettingsWindow : Window
|
|||
settingsTab.OnOpen();
|
||||
}
|
||||
|
||||
// Don't add padding for the about tab(credits)
|
||||
// Don't add padding for the About tab (credits)
|
||||
{
|
||||
using var padding = ImRaii.PushStyle(
|
||||
ImGuiStyleVar.WindowPadding,
|
||||
|
|
@ -247,7 +247,7 @@ internal sealed class SettingsWindow : Window
|
|||
|
||||
private void DrawSearchResults()
|
||||
{
|
||||
using var tab = ImRaii.TabItem("Search Results"u8);
|
||||
using var tab = ImRaii.TabItem(Loc.Localize("DalamudSettingsSearchResults", "Search Results"));
|
||||
if (!tab) return;
|
||||
|
||||
var any = false;
|
||||
|
|
@ -280,7 +280,7 @@ internal sealed class SettingsWindow : Window
|
|||
}
|
||||
|
||||
if (!any)
|
||||
ImGui.TextColored(ImGuiColors.DalamudGrey, "No results found..."u8);
|
||||
ImGui.TextColored(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsNoSearchResultsFound", "No results found..."));
|
||||
}
|
||||
|
||||
private void Save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue