localize sort options
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user