Skip to content

Commit

Permalink
Translations for InteractiveSearchRow
Browse files Browse the repository at this point in the history
Closes #4077
  • Loading branch information
mynameisbogdan committed Mar 9, 2024
1 parent 29c77ec commit 468f3ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions frontend/src/InteractiveSearch/InteractiveSearchRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ function getDownloadTooltip(isGrabbing, isGrabbed, grabError) {
if (isGrabbing) {
return '';
} else if (isGrabbed) {
return 'Added to downloaded queue';
return translate('AddedToDownloadQueue');
} else if (grabError) {
return grabError;
}

return 'Add to downloaded queue';
return translate('AddToDownloadQueue');
}

class InteractiveSearchRow extends Component {
Expand Down Expand Up @@ -236,7 +236,9 @@ class InteractiveSearchRow extends Component {
isOpen={this.state.isConfirmGrabModalOpen}
kind={kinds.WARNING}
title={translate('GrabRelease')}
message={translate('GrabReleaseMessageText', [title])}
message={translate('GrabReleaseUnknownArtistOrAlbumMessageText', {
title
})}
confirmLabel={translate('Grab')}
onConfirm={this.onGrabConfirm}
onCancel={this.onGrabCancel}
Expand Down
4 changes: 3 additions & 1 deletion src/NzbDrone.Core/Localization/Core/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
"AddReleaseProfile": "Add Release Profile",
"AddRemotePathMapping": "Add Remote Path Mapping",
"AddRootFolder": "Add Root Folder",
"AddToDownloadQueue": "Add to download queue",
"Added": "Added",
"AddedArtistSettings": "Added Artist Settings",
"AddedToDownloadQueue": "Added to download queue",
"AddingTag": "Adding tag",
"AfterManualRefresh": "After Manual Refresh",
"Age": "Age",
Expand Down Expand Up @@ -512,7 +514,7 @@
"Grab": "Grab",
"GrabId": "Grab ID",
"GrabRelease": "Grab Release",
"GrabReleaseMessageText": "{appName} was unable to determine which artist and album this release was for. {appName} may be unable to automatically import this release. Do you want to grab '{0}'?",
"GrabReleaseUnknownArtistOrAlbumMessageText": "{appName} was unable to determine which artist and album this release was for. {appName} may be unable to automatically import this release. Do you want to grab '{title}'?",
"GrabSelected": "Grab Selected",
"Grabbed": "Grabbed",
"Group": "Group",
Expand Down

0 comments on commit 468f3ac

Please sign in to comment.