From ac7039d651da2178aaff3dd2e419c8f4b76e5210 Mon Sep 17 00:00:00 2001 From: fireph <443370+fireph@users.noreply.github.com> Date: Fri, 5 Apr 2024 23:10:42 -0700 Subject: [PATCH] New: Footnote to indicate some renaming tokens support truncation (cherry picked from commit 7fc3bebc91db217a1c24ab2d01ebbc5bf03c918e) Closes #9905 --- .../MediaManagement/Naming/NamingModal.js | 42 +++++++++++++------ src/NzbDrone.Core/Localization/Core/en.json | 3 ++ 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/frontend/src/Settings/MediaManagement/Naming/NamingModal.js b/frontend/src/Settings/MediaManagement/Naming/NamingModal.js index ab7c4bc09..1d3f59386 100644 --- a/frontend/src/Settings/MediaManagement/Naming/NamingModal.js +++ b/frontend/src/Settings/MediaManagement/Naming/NamingModal.js @@ -72,15 +72,15 @@ const fileNameTokens = [ ]; const movieTokens = [ - { token: '{Movie Title}', example: 'Movie\'s Title' }, - { token: '{Movie Title:DE}', example: 'Titel des Films' }, - { token: '{Movie CleanTitle}', example: 'Movies Title' }, - { token: '{Movie TitleThe}', example: 'Movie\'s Title, The' }, - { token: '{Movie OriginalTitle}', example: 'Τίτλος ταινίας' }, - { token: '{Movie CleanOriginalTitle}', example: 'Τίτλος ταινίας' }, + { token: '{Movie Title}', example: 'Movie\'s Title', footNote: 1 }, + { token: '{Movie Title:DE}', example: 'Titel des Films', footNote: 1 }, + { token: '{Movie CleanTitle}', example: 'Movies Title', footNote: 1 }, + { token: '{Movie TitleThe}', example: 'Movie\'s Title, The', footNote: 1 }, + { token: '{Movie OriginalTitle}', example: 'Τίτλος ταινίας', footNote: 1 }, + { token: '{Movie CleanOriginalTitle}', example: 'Τίτλος ταινίας', footNote: 1 }, { token: '{Movie TitleFirstCharacter}', example: 'M' }, { token: '{Movie TitleFirstCharacter:DE}', example: 'T' }, - { token: '{Movie Collection}', example: 'The Movie Collection' }, + { token: '{Movie Collection}', example: 'The Movie Collection', footNote: 1 }, { token: '{Movie Certification}', example: 'R' }, { token: '{Release Year}', example: '2009' } ]; @@ -112,11 +112,11 @@ const mediaInfoTokens = [ ]; const releaseGroupTokens = [ - { token: '{Release Group}', example: 'Rls Grp' } + { token: '{Release Group}', example: 'Rls Grp', footNote: 1 } ]; const editionTokens = [ - { token: '{Edition Tags}', example: 'IMAX' } + { token: '{Edition Tags}', example: 'IMAX', footNote: 1 } ]; const customFormatTokens = [ @@ -268,7 +268,7 @@ class NamingModal extends Component {