localize sort options

This commit is contained in:
Brahim Hadriche committed 2024-03-21 21:02:26 -04:00
1 parent fb0b1b8894
commit 019fde1e67
4 files changed
+49 -2

No files matched your search

@@ -257,7 +257,7 @@ function GetSortingContextMenuOptionsForItem(video as object) as object
return []
end if
title = `Sort ${feedContentNode.title} by`
title = Tr(Locale.Dialogs.SortFeedBy).replace("%1", feedContentNode.title)
sortOptions = m.sortOptions[endpoint]
return [ContextMenuUtils.CreateOption(title + "...", m.top, "ShowSortDialog", [title, sortOptions, feedContentNode])]
@@ -309,7 +309,7 @@ end function
function ShowSortDialog(title as string, sortOptions as object, feedContentNode as object)
buttons = []
for i = 0 to sortOptions.Count() - 1
buttons.Push(sortOptions[i].title)
buttons.Push(Tr(sortOptions[i].title))
end for
dialog = DialogUtils.ShowDialogButtons("", title, buttons)