Playlet is now available in English and French
This commit is contained in:
1 parent
3b622f65f3
commit
bd26e727c1
7 files changed
+353
-57
No files matched your search
@@ -1,105 +1,103 @@
|
||||
import "pkg:/components/Navigation/Navigation.bs"
|
||||
import "pkg:/source/utils/ArrayUtils.bs"
|
||||
import "pkg:/source/utils/Locale.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
function Init()
|
||||
options = {
|
||||
date: [{
|
||||
title: "Any date"
|
||||
title: Tr(Locale.SearchFilters.AnyDate)
|
||||
value: ""
|
||||
}, {
|
||||
title: "Last hour"
|
||||
title: Tr(Locale.SearchFilters.LastHour)
|
||||
value: "hour"
|
||||
}, {
|
||||
title: "Today"
|
||||
title: Tr(Locale.SearchFilters.Today)
|
||||
value: "today"
|
||||
}, {
|
||||
title: "This week"
|
||||
title: Tr(Locale.SearchFilters.ThisWeek)
|
||||
value: "week"
|
||||
}, {
|
||||
title: "This month"
|
||||
title: Tr(Locale.SearchFilters.ThisMonth)
|
||||
value: "month"
|
||||
}, {
|
||||
title: "This year"
|
||||
title: Tr(Locale.SearchFilters.ThisYear)
|
||||
value: "year"
|
||||
}]
|
||||
type: [{
|
||||
title: "Any type"
|
||||
title: Tr(Locale.SearchFilters.AnyType)
|
||||
value: ""
|
||||
}, {
|
||||
title: "Video"
|
||||
title: Tr(Locale.SearchFilters.Video)
|
||||
value: "video"
|
||||
}, {
|
||||
title: "Playlist"
|
||||
title: Tr(Locale.SearchFilters.Playlist)
|
||||
value: "playlist"
|
||||
}, {
|
||||
title: "Channel"
|
||||
title: Tr(Locale.SearchFilters.Channel)
|
||||
value: "channel"
|
||||
}, {
|
||||
title: "Movie"
|
||||
title: Tr(Locale.SearchFilters.Movie)
|
||||
value: "movie"
|
||||
}, {
|
||||
title: "Show"
|
||||
value: "show"
|
||||
}]
|
||||
duration: [{
|
||||
title: "Any duration"
|
||||
title: Tr(Locale.SearchFilters.AnyDuration)
|
||||
value: ""
|
||||
}, {
|
||||
title: "Under 4 minutes"
|
||||
title: Tr(Locale.SearchFilters.Under4Minutes)
|
||||
value: "short"
|
||||
}, {
|
||||
title: "4 - 20 minutes"
|
||||
title: Tr(Locale.SearchFilters.FourTo20Minutes)
|
||||
value: "medium"
|
||||
}, {
|
||||
title: "Over 20 minutes"
|
||||
title: Tr(Locale.SearchFilters.Over20Minutes)
|
||||
value: "long"
|
||||
}]
|
||||
features: [{
|
||||
title: "Live"
|
||||
title: Tr(Locale.Feed.Live)
|
||||
value: "live"
|
||||
}, {
|
||||
title: "4K"
|
||||
title: Tr(Locale.SearchFilters.FourK)
|
||||
value: "4k"
|
||||
}, {
|
||||
title: "HD"
|
||||
title: Tr(Locale.SearchFilters.HD)
|
||||
value: "hd"
|
||||
}, {
|
||||
title: "Subtitles/CC"
|
||||
title: Tr(Locale.SearchFilters.SubtitlesCC)
|
||||
value: "subtitles"
|
||||
}, {
|
||||
title: "Creative Commons"
|
||||
title: Tr(Locale.SearchFilters.CreativeCommons)
|
||||
value: "creative_commons"
|
||||
}, {
|
||||
title: "360°"
|
||||
title: Tr(Locale.SearchFilters.ThreeSixty)
|
||||
value: "360"
|
||||
}, {
|
||||
title: "VR180"
|
||||
title: Tr(Locale.SearchFilters.VR180)
|
||||
value: "vr180"
|
||||
}, {
|
||||
title: "3D"
|
||||
title: Tr(Locale.SearchFilters.ThreeD)
|
||||
value: "3d"
|
||||
}, {
|
||||
title: "HDR"
|
||||
title: Tr(Locale.SearchFilters.HDR)
|
||||
value: "hdr"
|
||||
}, {
|
||||
title: "Purchased"
|
||||
title: Tr(Locale.SearchFilters.Purchased)
|
||||
value: "purchased"
|
||||
}, {
|
||||
title: "Location"
|
||||
title: Tr(Locale.SearchFilters.Location)
|
||||
value: "location"
|
||||
}]
|
||||
sort_by: [{
|
||||
title: "Relevance"
|
||||
title: Tr(Locale.SearchFilters.Relevance)
|
||||
value: ""
|
||||
}, {
|
||||
title: "Upload date"
|
||||
title: Tr(Locale.SearchFilters.UploadDate)
|
||||
value: "upload_date"
|
||||
}, {
|
||||
title: "View count"
|
||||
title: Tr(Locale.SearchFilters.ViewCount)
|
||||
value: "view_count"
|
||||
}, {
|
||||
title: "Rating"
|
||||
title: Tr(Locale.SearchFilters.Rating)
|
||||
value: "rating"
|
||||
}]
|
||||
}
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
<Font id="ItemFont" uri="font:SystemFontFile" size="18" />
|
||||
<Font id="ItemFocusedFont" uri="font:BoldSystemFontFile" size="18" />
|
||||
<Rectangle
|
||||
width="1116"
|
||||
width="1200"
|
||||
height="543"
|
||||
translation="[82,84]"
|
||||
translation="[40,84]"
|
||||
color="#242424">
|
||||
|
||||
<LayoutGroup
|
||||
layoutDirection="horiz"
|
||||
translation="[35,20]">
|
||||
translation="[20,20]">
|
||||
<LayoutGroup horizAlignment="center" itemSpacings="[10,10]">
|
||||
<Label
|
||||
text="Upload date"
|
||||
@@ -36,7 +36,7 @@
|
||||
vertFocusAnimationStyle="floatingFocus"
|
||||
font="dictionary:ItemFont"
|
||||
focusedFont="dictionary:ItemFocusedFont"
|
||||
itemSize="[140,42]">
|
||||
itemSize="[170,42]">
|
||||
<ContentNode role="content" />
|
||||
</RadioButtonList>
|
||||
</LayoutGroup>
|
||||
@@ -74,7 +74,7 @@
|
||||
vertFocusAnimationStyle="floatingFocus"
|
||||
font="dictionary:ItemFont"
|
||||
focusedFont="dictionary:ItemFocusedFont"
|
||||
itemSize="[190,42]">
|
||||
itemSize="[230,42]">
|
||||
<ContentNode role="content" />
|
||||
</RadioButtonList>
|
||||
</LayoutGroup>
|
||||
@@ -112,7 +112,7 @@
|
||||
vertFocusAnimationStyle="floatingFocus"
|
||||
font="dictionary:ItemFont"
|
||||
focusedFont="dictionary:ItemFocusedFont"
|
||||
itemSize="[150,42]">
|
||||
itemSize="[190,42]">
|
||||
<ContentNode role="content" />
|
||||
</RadioButtonList>
|
||||
</LayoutGroup>
|
||||
|
||||
Reference in new issue
Block a user