From 44ec998690e61ee9557202abae8d15272108eaa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Carvalho?= Date: Thu, 5 Dec 2019 10:21:26 +0000 Subject: [PATCH] Add option to randomly sort music albums --- src/controllers/music/musicalbums.js | 3 +++ src/strings/en-gb.json | 1 + src/strings/en-us.json | 1 + 3 files changed, 5 insertions(+) diff --git a/src/controllers/music/musicalbums.js b/src/controllers/music/musicalbums.js index 0cfb61e2b..480f0af77 100644 --- a/src/controllers/music/musicalbums.js +++ b/src/controllers/music/musicalbums.js @@ -241,6 +241,9 @@ define(["layoutManager", "playbackManager", "loading", "events", "libraryBrowser }, { name: Globalize.translate("OptionReleaseDate"), id: "ProductionYear,PremiereDate,SortName" + }, { + name: Globalize.translate("OptionRandom"), + id: "Random,SortName" }], callback: function () { getQuery().StartIndex = 0; diff --git a/src/strings/en-gb.json b/src/strings/en-gb.json index 4f734645b..bb60eece3 100644 --- a/src/strings/en-gb.json +++ b/src/strings/en-gb.json @@ -1358,6 +1358,7 @@ "RefreshQueued": "Refresh queued.", "Play": "Play", "PasswordResetProviderHelp": "Choose a Password Reset Provider to be used when this user requests a password reset", + "OptionRandom": "Random", "OptionTuesday": "Tuesday", "OptionReleaseDate": "Release Date", "OptionDisplayFolderViewHelp": "Display folders alongside your other media libraries. This can be useful if you'd like to have a plain folder view.", diff --git a/src/strings/en-us.json b/src/strings/en-us.json index b9c99b247..07273ddd5 100644 --- a/src/strings/en-us.json +++ b/src/strings/en-us.json @@ -1158,6 +1158,7 @@ "OptionProfileVideoAudio": "Video Audio", "OptionProtocolHls": "HTTP Live Streaming", "OptionProtocolHttp": "HTTP", + "OptionRandom": "Random", "OptionRegex": "Regex", "OptionReleaseDate": "Release Date", "OptionReportByteRangeSeekingWhenTranscoding": "Report that the server supports byte seeking when transcoding",