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 1/2] 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 0cfb61e2b6..480f0af77f 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 4f734645b4..bb60eece31 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 b9c99b2471..07273ddd52 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", From 5f41eef198e171092eea64847d6925476a58b392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Carvalho?= Date: Thu, 5 Dec 2019 15:34:35 +0000 Subject: [PATCH 2/2] Revert unneeded translation --- src/strings/en-gb.json | 1 - 1 file changed, 1 deletion(-) diff --git a/src/strings/en-gb.json b/src/strings/en-gb.json index bb60eece31..4f734645b4 100644 --- a/src/strings/en-gb.json +++ b/src/strings/en-gb.json @@ -1358,7 +1358,6 @@ "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.",