Skip to content

Commit

Permalink
Translate url type for indexer description
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Jul 15, 2023
1 parent 5d73c6a commit 041a7c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/Indexer/Info/IndexerInfoModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ function IndexerInfoModalContent(props: IndexerInfoModalContentProps) {
{baseUrl.replace(/(:\/\/)api\./, '$1')}
</Link>
</DescriptionListItemDescription>
<DescriptionListItemTitle>{`${
protocol === 'usenet' ? 'Newznab' : 'Torznab'
} Url`}</DescriptionListItemTitle>
<DescriptionListItemTitle>
{protocol === 'usenet'
? translate('NewznabUrl')
: translate('TorznabUrl')}
</DescriptionListItemTitle>
<DescriptionListItemDescription>
{`${window.location.origin}${window.Prowlarr.urlBase}/${id}/api`}
</DescriptionListItemDescription>
Expand Down
2 changes: 2 additions & 0 deletions src/NzbDrone.Core/Localization/Core/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@
"Name": "Name",
"NetCore": ".NET",
"New": "New",
"NewznabUrl": "Newznab Url",
"NextExecution": "Next Execution",
"No": "No",
"NoBackupsAreAvailable": "No backups are available",
Expand Down Expand Up @@ -487,6 +488,7 @@
"Tomorrow": "Tomorrow",
"Torrent": "Torrent",
"Torrents": "Torrents",
"TorznabUrl": "Torznab Url",
"TotalHostGrabs": "Total Host Grabs",
"TotalHostQueries": "Total Host Queries",
"TotalIndexerQueries": "Total Indexer Queries",
Expand Down

0 comments on commit 041a7c5

Please sign in to comment.