Skip to content

Commit

Permalink
Add LOC entries
Browse files Browse the repository at this point in the history
Add entyies for tips.
  • Loading branch information
Yuchenjimmy authored Jan 8, 2025
1 parent def7b05 commit 22eaab2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/ui/dialogs/createunit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ function CreateDialog()
LayoutHelpers.Below(filterSaveButton, armiesGroup)
LayoutHelpers.RightOf(filterSaveButton, filterPresetCombo, 10)
LayoutHelpers.AtVerticalCenterIn(filterSaveButton, filterPresetCombo)
Tooltip.AddControlTooltip(filterSaveButton, { text = ' Save current filter as preset ' })
Tooltip.AddControlTooltip(filterSaveButton, { text = LOC("<LOC spawn_filter_save_tip>Save current filter as preset") })
filterSaveButton.OnClick = function(self, modifiers)
NameSet(function(name)
local newFilterListing = {}
Expand All @@ -1334,7 +1334,7 @@ function CreateDialog()
LayoutHelpers.Below(filterDeleteButton, armiesGroup)
LayoutHelpers.RightOf(filterDeleteButton, filterSaveButton)
LayoutHelpers.AtVerticalCenterIn(filterDeleteButton, filterPresetCombo)
Tooltip.AddControlTooltip(filterDeleteButton, { text = ' Delete current filter preset ' })
Tooltip.AddControlTooltip(filterDeleteButton, { text = LOC("<LOC spawn_filter_delete_tip>Delete current filter preset") })
filterDeleteButton.OnClick = function(self, modifiers)
local index = filterPresetCombo:GetItem()
if index >= 1 then
Expand All @@ -1352,7 +1352,7 @@ function CreateDialog()
LayoutHelpers.Below(filterClearButton, armiesGroup)
LayoutHelpers.RightOf(filterClearButton, filterDeleteButton)
LayoutHelpers.AtVerticalCenterIn(filterClearButton, filterPresetCombo)
Tooltip.AddControlTooltip(filterClearButton, { text = ' Clear all filters ' })
Tooltip.AddControlTooltip(filterClearButton, { text = LOC("<LOC spawn_filter_clear_tip>Clear all filters") })
filterClearButton.OnClick = ClearFilters

RefreshFilterList()
Expand Down

0 comments on commit 22eaab2

Please sign in to comment.