Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Date Show Added sort option for TV show libraries #2065

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions components/ItemGrid/ItemGrid.bs
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,13 @@ sub setTvShowsOptions(options)
]
options.sort = [
{ "Title": tr("TITLE"), "Name": "SortName" },
{ "Title": tr("IMDB_RATING"), "Name": "CommunityRating" },
{ "Title": tr("DATE_ADDED"), "Name": "DateCreated" },
{ "Title": tr("DATE_PLAYED"), "Name": "SeriesDatePlayed" },
{ "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating" },
{ "Title": tr("RELEASE_DATE"), "Name": "PremiereDate" },
{ "Title": tr("Random"), "Name": "Random" },
{ "Title": tr("IMDB_RATING"), "Name": "CommunityRating,SortName" },
{ "Title": tr("DATE_SHOW_ADDED"), "Name": "DateCreated,SortName" },
{ "Title": tr("DATE_EPISODE_ADDED"), "Name": "DateLastContentAdded,SortName" }
{ "Title": tr("DATE_PLAYED"), "Name": "SeriesDatePlayed,SortName" },
{ "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating,SortName" },
{ "Title": tr("RELEASE_DATE"), "Name": "PremiereDate,SortName" },
]
options.filter = [
{ "Title": tr("All"), "Name": "All" },
Expand Down
12 changes: 11 additions & 1 deletion locale/en_US/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
</message>
<message>
<source>IMDB_RATING</source>
<translation>IMDb Rating</translation>
<translation>Community Rating</translation>
</message>
<message>
<source>CRITIC_RATING</source>
Expand Down Expand Up @@ -1401,5 +1401,15 @@
<translation>CH</translation>
<extracomment>Abbreviation for Channel</extracomment>
</message>
<message>
<source>DATE_EPISODE_ADDED</source>
<translation>Date Episode Added</translation>
<extracomment>TV Show library sort option</extracomment>
</message>
<message>
<source>DATE_SHOW_ADDED</source>
<translation>Date Show Added</translation>
<extracomment>TV Show library sort option</extracomment>
</message>
</context>
</TS>
Loading