diff --git a/src/components/IssueDetails/index.tsx b/src/components/IssueDetails/index.tsx index ad329eae7..90cfb494c 100644 --- a/src/components/IssueDetails/index.tsx +++ b/src/components/IssueDetails/index.tsx @@ -33,6 +33,8 @@ import { issueOptions } from '../IssueModal/constants'; import Transition from '../Transition'; import IssueComment from './IssueComment'; import IssueDescription from './IssueDescription'; +import { MediaServerType } from '../../../server/constants/server'; +import useSettings from '../../hooks/useSettings'; const messages = defineMessages({ openedby: '#{issueId} opened {relativeTime} by {username}', @@ -43,8 +45,8 @@ const messages = defineMessages({ reopenissue: 'Reopen Issue', reopenissueandcomment: 'Reopen with Comment', issuepagetitle: 'Issue', - playonplex: 'Play on Plex', - play4konplex: 'Play in 4K on Plex', + playonplex: 'Play on {mediaServerName}', + play4konplex: 'Play in 4K on {mediaServerName}', openinarr: 'Open in {arr}', openin4karr: 'Open in 4K {arr}', toasteditdescriptionsuccess: 'Issue description edited successfully!', @@ -96,6 +98,7 @@ const IssueDetails: React.FC = () => { const issueOption = issueOptions.find( (opt) => opt.issueType === issueData?.issueType ); + const settings = useSettings(); if (!data && !error) { return ; @@ -362,7 +365,15 @@ const IssueDetails: React.FC = () => { buttonType="ghost" > - {intl.formatMessage(messages.playonplex)} + + {intl.formatMessage(messages.playonplex, { + mediaServerName: + settings.currentSettings.mediaServerType === + MediaServerType.PLEX + ? 'Plex' + : 'Jellyfin', + })} + )} {issueData?.media.serviceUrl && hasPermission(Permission.ADMIN) && ( @@ -395,7 +406,15 @@ const IssueDetails: React.FC = () => { buttonType="ghost" > - {intl.formatMessage(messages.play4konplex)} + + {intl.formatMessage(messages.play4konplex, { + mediaServerName: + settings.currentSettings.mediaServerType === + MediaServerType.PLEX + ? 'Plex' + : 'Jellyfin', + })} + )} {issueData?.media.serviceUrl4k && @@ -598,7 +617,15 @@ const IssueDetails: React.FC = () => { buttonType="ghost" > - {intl.formatMessage(messages.playonplex)} + + {intl.formatMessage(messages.playonplex, { + mediaServerName: + settings.currentSettings.mediaServerType === + MediaServerType.PLEX + ? 'Plex' + : 'Jellyfin', + })} + )} {issueData?.media.serviceUrl && hasPermission(Permission.ADMIN) && ( @@ -631,7 +658,15 @@ const IssueDetails: React.FC = () => { buttonType="ghost" > - {intl.formatMessage(messages.play4konplex)} + + {intl.formatMessage(messages.play4konplex, { + mediaServerName: + settings.currentSettings.mediaServerType === + MediaServerType.PLEX + ? 'Plex' + : 'Jellyfin', + })} + )} {issueData?.media.serviceUrl4k && hasPermission(Permission.ADMIN) && ( diff --git a/src/i18n/locale/ca.json b/src/i18n/locale/ca.json index 4cba18d59..8e7f08731 100644 --- a/src/i18n/locale/ca.json +++ b/src/i18n/locale/ca.json @@ -901,14 +901,14 @@ "components.IssueList.IssueItem.problemepisode": "Episodi afectat", "components.IssueDetails.problemepisode": "Episodi afectat", "components.IssueDetails.openedby": "#{issueId} oberta {relativeTime} per {username}", - "components.IssueDetails.play4konplex": "Veure en 4K a Plex", + "components.IssueDetails.play4konplex": "Veure en 4K a {mediaServerName}", "components.IssueDetails.reopenissue": "Torna a obrir la incidència", "components.IssueDetails.season": "Temporada {seasonNumber}", "components.IssueList.IssueItem.unknownissuetype": "Desconegut", "components.IssueList.IssueItem.viewissue": "Veure incidència", "components.IssueModal.CreateIssueModal.allepisodes": "Tots els episodis", "components.IssueModal.CreateIssueModal.allseasons": "Totes les temporades", - "components.IssueDetails.playonplex": "Veure a Plex", + "components.IssueDetails.playonplex": "Veure a {mediaServerName}", "components.IssueList.IssueItem.opened": "Oberta", "components.IssueList.issues": "Incidències", "components.IssueModal.CreateIssueModal.reportissue": "Informar d'una incidència", diff --git a/src/i18n/locale/da.json b/src/i18n/locale/da.json index ef6d2ce6c..d706e0871 100644 --- a/src/i18n/locale/da.json +++ b/src/i18n/locale/da.json @@ -171,13 +171,13 @@ "components.IssueModal.CreateIssueModal.validationMessageRequired": "Du skal give en beskrivelse", "components.PermissionEdit.viewrequestsDescription": "Giv tilladelse til at se medieforespørgsler indsendt af andre brugere.", "components.RequestButton.declinerequest": "Afvis Forespørgsel", - "components.IssueDetails.playonplex": "Afspil i Plex", + "components.IssueDetails.playonplex": "Afspil i {mediaServerName}", "components.IssueDetails.problemseason": "Berørt Sæson", "components.IssueDetails.issuetype": "Type", "components.IssueDetails.nocomments": "Ingen kommentarer.", "components.IssueDetails.openedby": "#{issueId} åbnet {relativeTime} af {username}", "components.IssueDetails.openin4karr": "Åbn i 4K {arr}", - "components.IssueDetails.play4konplex": "Afspil i 4K i Plex", + "components.IssueDetails.play4konplex": "Afspil i 4K i {mediaServerName}", "components.IssueDetails.reopenissue": "Genåbn Problem", "components.IssueDetails.reopenissueandcomment": "Genåbn med Kommentar", "components.IssueDetails.toasteditdescriptionsuccess": "Problembeskrivelse er blevet redigeret!", diff --git a/src/i18n/locale/de.json b/src/i18n/locale/de.json index 42d62665b..0b8aa07b5 100644 --- a/src/i18n/locale/de.json +++ b/src/i18n/locale/de.json @@ -903,8 +903,8 @@ "components.IssueDetails.nocomments": "Keine Kommentare.", "components.IssueDetails.openedby": "#{issueId} geöffnet {relativeTime} von {username}", "components.IssueDetails.openin4karr": "In {arr} 4K öffnen", - "components.IssueDetails.play4konplex": "Auf Plex in 4K abspielen", - "components.IssueDetails.playonplex": "Auf Plex abspielen", + "components.IssueDetails.play4konplex": "Auf {mediaServerName} in 4K abspielen", + "components.IssueDetails.playonplex": "Auf {mediaServerName} abspielen", "components.IssueDetails.problemepisode": "Betroffene Episode", "components.IssueDetails.problemseason": "Betroffene Staffeln", "components.IssueDetails.reopenissue": "Problem erneut öffnen", diff --git a/src/i18n/locale/en.json b/src/i18n/locale/en.json index 067d7177b..9373d0df3 100644 --- a/src/i18n/locale/en.json +++ b/src/i18n/locale/en.json @@ -55,8 +55,8 @@ "components.IssueDetails.openedby": "#{issueId} opened {relativeTime} by {username}", "components.IssueDetails.openin4karr": "Open in 4K {arr}", "components.IssueDetails.openinarr": "Open in {arr}", - "components.IssueDetails.play4konplex": "Play in 4K on Plex", - "components.IssueDetails.playonplex": "Play on Plex", + "components.IssueDetails.play4konplex": "Play in 4K on {mediaServerName}", + "components.IssueDetails.playonplex": "Play on {mediaServerName}", "components.IssueDetails.problemepisode": "Affected Episode", "components.IssueDetails.problemseason": "Affected Season", "components.IssueDetails.reopenissue": "Reopen Issue", diff --git a/src/i18n/locale/es.json b/src/i18n/locale/es.json index a3ea74f92..f4ec6c68c 100644 --- a/src/i18n/locale/es.json +++ b/src/i18n/locale/es.json @@ -976,8 +976,8 @@ "components.UserProfile.UserSettings.UserNotificationSettings.pushoverApplicationTokenTip": "Registrar una aplicaicón para su uso con {applicationTitle}", "components.UserProfile.UserSettings.UserNotificationSettings.pushoverApplicationToken": "API Token de Aplicación", "components.IssueDetails.openin4karr": "Abrir en {arr} 4K", - "components.IssueDetails.play4konplex": "Ver en 4K en Plex", - "components.IssueDetails.playonplex": "Ver en Plex", + "components.IssueDetails.play4konplex": "Ver en 4K en {mediaServerName}", + "components.IssueDetails.playonplex": "Ver en {mediaServerName}", "components.IssueList.IssueItem.seasons": "{seasonCount, plural, one {Temporada} other {Temporadas}}", "components.IssueList.IssueItem.episodes": "{episodeCount, plural, one {Episodio} other {Episodios}}", "components.IssueModal.CreateIssueModal.extras": "Extras", diff --git a/src/i18n/locale/fr.json b/src/i18n/locale/fr.json index 9b6fd8932..2c846c2cf 100644 --- a/src/i18n/locale/fr.json +++ b/src/i18n/locale/fr.json @@ -963,8 +963,8 @@ "components.Settings.SettingsJobsCache.jobScheduleEditFailed": "Un problème est survenu lors de l'enregistrement de la tâche.", "components.Settings.SettingsJobsCache.editJobScheduleSelectorMinutes": "Toutes les {jobScheduleMinutes, plural, one {minute} other {{jobScheduleMinutes} minutes}}", "components.IssueDetails.openin4karr": "Ouvrir en 4K {arr}", - "components.IssueDetails.play4konplex": "Lire sur Plex en 4K", - "components.IssueDetails.playonplex": "Lire sur Plex", + "components.IssueDetails.play4konplex": "Lire sur {mediaServerName} en 4K", + "components.IssueDetails.playonplex": "Lire sur {mediaServerName}", "components.UserProfile.UserSettings.UserNotificationSettings.pushbulletAccessToken": "Jeton d'accès", "components.IssueList.IssueItem.seasons": "{seasonCount, plural, one {Saison} other {Saisons}}", "components.NotificationTypeSelector.adminissuereopenedDescription": "Être notifié lorsqu'un problème est ré-ouvert par d'autres utilisateurs.", diff --git a/src/i18n/locale/it.json b/src/i18n/locale/it.json index c6514465d..f6d43506f 100644 --- a/src/i18n/locale/it.json +++ b/src/i18n/locale/it.json @@ -931,10 +931,10 @@ "components.ManageSlideOver.manageModalTitle": "Gestisci {mediaType}", "components.ManageSlideOver.mark4kavailable": "Segna come disponibile in 4K", "components.IssueDetails.openinarr": "Apri in {arr}", - "components.IssueDetails.playonplex": "Guarda su Plex", + "components.IssueDetails.playonplex": "Guarda su {mediaServerName}", "components.ManageSlideOver.openarr": "Apri in {arr}", "components.ManageSlideOver.openarr4k": "Apri in 4K {arr}", - "components.IssueDetails.play4konplex": "Guarda in 4K su Plex", + "components.IssueDetails.play4konplex": "Guarda in 4K su {mediaServerName}", "components.IssueDetails.openin4karr": "Apri in 4k {arr}", "components.IssueList.IssueItem.episodes": "{episodeCount, plural, one {Episodio} other {Episodi}}", "components.PermissionEdit.createissuesDescription": "Concedi il permesso di segnalare problemi con i contenuti.", diff --git a/src/i18n/locale/nb_NO.json b/src/i18n/locale/nb_NO.json index 31e4ea244..86f69ca57 100644 --- a/src/i18n/locale/nb_NO.json +++ b/src/i18n/locale/nb_NO.json @@ -671,7 +671,7 @@ "components.ManageSlideOver.tvshow": "serier", "components.PermissionEdit.viewissuesDescription": "Gi tillatelse til å vise avvik som er rapportert av andre brukere.", "components.IssueDetails.allepisodes": "Alle Episoder", - "components.IssueDetails.playonplex": "Spill av med Plex", + "components.IssueDetails.playonplex": "Spill av med {mediaServerName}", "components.IssueDetails.problemseason": "Gjelder Sessong", "components.IssueDetails.reopenissue": "Åpne Avvik", "components.IssueDetails.commentplaceholder": "Legg til kommentar…", @@ -719,7 +719,7 @@ "components.IssueDetails.nocomments": "Ingen Kommentar.", "components.IssueDetails.openedby": "#{issueId} ble registert {relativeTime} av {username}", "components.IssueDetails.openin4karr": "Vis i 4K {arr}", - "components.IssueDetails.play4konplex": "Spill av i 4K med Plex", + "components.IssueDetails.play4konplex": "Spill av i 4K med {mediaServerName}", "components.IssueDetails.problemepisode": "Gjelder Episode", "components.IssueList.IssueItem.seasons": "{seasonCount, plural, one {Sessong} other {Sessonger}}", "components.NotificationTypeSelector.adminissuecommentDescription": "Bli varslet når andre brukere kommenterer på avvik.", diff --git a/src/i18n/locale/nl.json b/src/i18n/locale/nl.json index 5ff780de5..70ac3d065 100644 --- a/src/i18n/locale/nl.json +++ b/src/i18n/locale/nl.json @@ -975,8 +975,8 @@ "components.UserProfile.UserSettings.UserNotificationSettings.validationPushbulletAccessToken": "Je moet een toegangstoken opgeven", "components.UserProfile.UserSettings.UserNotificationSettings.validationPushoverUserKey": "Je moet een geldige gebruikers- of groepssleutel opgeven", "components.UserProfile.UserSettings.UserNotificationSettings.pushbulletsettingssaved": "Instellingen voor Pushbullet-meldingen succesvol opgeslagen!", - "components.IssueDetails.playonplex": "Afspelen op Plex", - "components.IssueDetails.play4konplex": "Afspelen in 4K op Plex", + "components.IssueDetails.playonplex": "Afspelen op {mediaServerName}", + "components.IssueDetails.play4konplex": "Afspelen in 4K op {mediaServerName}", "components.IssueDetails.openin4karr": "Openen in 4K {arr}", "components.IssueList.IssueItem.episodes": "{episodeCount, plural, one {aflevering} other {afleveringen}}", "components.IssueList.IssueItem.seasons": "{seasonCount, plural, one {seizoen} other {seizoenen}}", diff --git a/src/i18n/locale/pl.json b/src/i18n/locale/pl.json index 4ba34ee49..4089a50b5 100644 --- a/src/i18n/locale/pl.json +++ b/src/i18n/locale/pl.json @@ -141,7 +141,7 @@ "components.IssueDetails.deleteissue": "Usuń problem", "components.MovieDetails.budget": "Budżet", "components.MovieDetails.mark4kavailable": "Oznacz jako dostępne w 4K", - "components.IssueDetails.play4konplex": "Odtwarzanie w 4K na platformie Plex", + "components.IssueDetails.play4konplex": "Odtwarzanie w 4K na platformie {mediaServerName}", "components.ManageSlideOver.movie": "film", "components.IssueDetails.reopenissue": "Otwórz ponownie problem", "components.MovieDetails.recommendations": "Rekomendacje", @@ -427,7 +427,7 @@ "components.Settings.RadarrModal.loadingrootfolders": "Ładowanie folderów głównych…", "components.Settings.RadarrModal.defaultserver": "Domyślny serwer", "components.Settings.RadarrModal.validationProfileRequired": "Musisz wybrać profil jakości", - "components.IssueDetails.playonplex": "Odtwarzaj na Plex", + "components.IssueDetails.playonplex": "Odtwarzaj na {mediaServerName}", "components.IssueList.IssueItem.episodes": "{episodeCount, plural, one {Odcinek} other {Odcinki}}", "components.IssueList.IssueItem.seasons": "{seasonCount, plural, one {sezon} other {sezony}}", "components.NotificationTypeSelector.mediaapproved": "Prośba zatwierdzona", diff --git a/src/i18n/locale/pt_BR.json b/src/i18n/locale/pt_BR.json index efe48934b..847e81f74 100644 --- a/src/i18n/locale/pt_BR.json +++ b/src/i18n/locale/pt_BR.json @@ -893,10 +893,10 @@ "components.IssueDetails.toasteditdescriptionfailed": "Algo deu errado ao editar a descrição do problema.", "components.IssueDetails.toastissuedeleted": "Problema apagado com sucesso!", "components.IssueDetails.openin4karr": "Abrir em {arr} 4K", - "components.IssueDetails.playonplex": "Assistir no Plex", + "components.IssueDetails.playonplex": "Assistir no {mediaServerName}", "components.IssueDetails.season": "Temporada {seasonNumber}", "components.IssueDetails.toasteditdescriptionsuccess": "Descrição do problema alterada com sucesso!", - "components.IssueDetails.play4konplex": "Assistir em 4K no Plex", + "components.IssueDetails.play4konplex": "Assistir em 4K no {mediaServerName}", "components.IssueDetails.toastissuedeletefailed": "Algo deu errado ao apagar problema.", "components.IssueDetails.toaststatusupdated": "Estado do problema atualizado com sucesso!", "components.IssueList.IssueItem.episodes": "{episodeCount, plural, one {Espisódio} other {Episódios}}", diff --git a/src/i18n/locale/ru.json b/src/i18n/locale/ru.json index 37804519b..a4fe8355a 100644 --- a/src/i18n/locale/ru.json +++ b/src/i18n/locale/ru.json @@ -927,7 +927,7 @@ "i18n.resolved": "Решённые", "components.IssueDetails.openedby": "#{issueId} открыта {relativeTime} пользователем {username}", "components.IssueDetails.openin4karr": "Открыть в 4К {arr}", - "components.IssueDetails.play4konplex": "Воспроизвести в Plex в 4К", + "components.IssueDetails.play4konplex": "Воспроизвести в {mediaServerName} в 4К", "components.IssueDetails.problemseason": "Затронутый сезон", "components.IssueDetails.reopenissue": "Снова открыть проблему", "components.IssueDetails.season": "Сезон {seasonNumber}", @@ -964,7 +964,7 @@ "components.IssueDetails.deleteissue": "Удалить проблему", "components.IssueDetails.issuetype": "Тип", "components.IssueDetails.leavecomment": "Комментарий", - "components.IssueDetails.playonplex": "Воспроизвести в Plex", + "components.IssueDetails.playonplex": "Воспроизвести в {mediaServerName}", "components.IssueDetails.reopenissueandcomment": "Снова открыть с комментарием", "components.IssueList.IssueItem.issuestatus": "Статус", "components.IssueList.IssueItem.seasons": "{seasonCount, plural, one {Сезон} other {Сезоны}}", diff --git a/src/i18n/locale/sq.json b/src/i18n/locale/sq.json index 56778fb0f..91b45b1df 100644 --- a/src/i18n/locale/sq.json +++ b/src/i18n/locale/sq.json @@ -90,8 +90,8 @@ "components.IssueDetails.openedby": "#{issueId} hapur {relativeTime} nga {username}", "components.IssueDetails.openin4karr": "Hape në 4K {arr}", "components.IssueDetails.openinarr": "Hape në {arr}", - "components.IssueDetails.play4konplex": "Luaje në 4K në Plex", - "components.IssueDetails.playonplex": "Luaje në Plex", + "components.IssueDetails.play4konplex": "Luaje në 4K në {mediaServerName}", + "components.IssueDetails.playonplex": "Luaje në {mediaServerName}", "components.IssueDetails.problemepisode": "Episodi i ndikuar", "components.IssueDetails.problemseason": "Sezoni i ndikuar", "components.IssueDetails.reopenissue": "Rihap Problemin", diff --git a/src/i18n/locale/sr.json b/src/i18n/locale/sr.json index 21fb9307a..69b022e0e 100644 --- a/src/i18n/locale/sr.json +++ b/src/i18n/locale/sr.json @@ -353,7 +353,7 @@ "components.IssueDetails.nocomments": "Nema komentara.", "components.IssueDetails.openin4karr": "Otvori u 4K {arr}", "components.IssueDetails.openinarr": "Otvori u {arr}", - "components.IssueDetails.playonplex": "Pusti na Plexu", + "components.IssueDetails.playonplex": "Pusti na {mediaServerName}u", "components.IssueList.IssueItem.issuetype": "Tip", "components.IssueDetails.season": "Sezona {seasonNumber}", "components.IssueList.IssueItem.opened": "Otvoren", @@ -415,7 +415,7 @@ "components.RequestModal.autoapproval": "Automatsko odobrenje", "components.Settings.Notifications.encryptionNone": "Nijedan", "components.Settings.SettingsJobsCache.runnow": "Pokreni sada", - "components.IssueDetails.play4konplex": "Pusti u 4K na Plexu", + "components.IssueDetails.play4konplex": "Pusti u 4K na {mediaServerName}u", "components.IssueList.issues": "Problemi", "components.IssueModal.issueAudio": "Audio", "components.PermissionEdit.viewrequests": "Pogledaj zahteve", diff --git a/src/i18n/locale/sv.json b/src/i18n/locale/sv.json index c94c2ffc8..4f68359f6 100644 --- a/src/i18n/locale/sv.json +++ b/src/i18n/locale/sv.json @@ -891,8 +891,8 @@ "components.IssueDetails.unknownissuetype": "Okänd", "components.IssueDetails.openedby": "#{issueId} öppnades {relativeTime} av {username}", "components.IssueDetails.openin4karr": "Öppna i 4K {arr}", - "components.IssueDetails.play4konplex": "Spela upp i 4K på Plex", - "components.IssueDetails.playonplex": "Spela på Plex", + "components.IssueDetails.play4konplex": "Spela upp i 4K på {mediaServerName}", + "components.IssueDetails.playonplex": "Spela på {mediaServerName}", "components.IssueDetails.problemseason": "Påverkad säsong", "components.IssueDetails.reopenissue": "Återöppna problemet", "components.IssueDetails.reopenissueandcomment": "Återöppna med en kommentar", diff --git a/src/i18n/locale/zh_Hans.json b/src/i18n/locale/zh_Hans.json index 5de0f3f19..c48d04c9b 100644 --- a/src/i18n/locale/zh_Hans.json +++ b/src/i18n/locale/zh_Hans.json @@ -880,9 +880,9 @@ "components.IssueDetails.problemseason": "有问题的季数", "components.IssueDetails.toasteditdescriptionfailed": "编辑 issue 描述时出错。", "components.IssueDetails.toastissuedeletefailed": "删除 issue 时出错。", - "components.IssueDetails.play4konplex": "在 Plex 中播放 4K", + "components.IssueDetails.play4konplex": "在 {mediaServerName} 中播放 4K", "components.IssueDetails.openin4karr": "在 4K {arr} 中打开", - "components.IssueDetails.playonplex": "在 Plex 上播放", + "components.IssueDetails.playonplex": "在 {mediaServerName} 上播放", "components.IssueDetails.problemepisode": "有问题的集数", "components.IssueDetails.toasteditdescriptionsuccess": "Issue 描述编辑成功!", "components.IssueDetails.toaststatusupdated": "Issue 状态更新成功!", diff --git a/src/i18n/locale/zh_Hant.json b/src/i18n/locale/zh_Hant.json index b9071000d..ca1a73136 100644 --- a/src/i18n/locale/zh_Hant.json +++ b/src/i18n/locale/zh_Hant.json @@ -972,8 +972,8 @@ "components.UserProfile.UserSettings.UserNotificationSettings.pushoverUserKey": "使用者或群組令牌", "components.UserProfile.UserSettings.UserNotificationSettings.validationPushoverUserKey": "請輸入有效的使用者或群組令牌", "components.IssueDetails.openin4karr": "開啟 4K {arr} 伺服器", - "components.IssueDetails.play4konplex": "在 Plex 上觀看 4K 版", - "components.IssueDetails.playonplex": "在 Plex 上觀看", + "components.IssueDetails.play4konplex": "在 {mediaServerName} 上觀看 4K 版", + "components.IssueDetails.playonplex": "在 {mediaServerName} 上觀看", "components.IssueList.IssueItem.episodes": "集數", "components.IssueList.IssueItem.seasons": "季數", "components.IssueDetails.closeissue": "關閉問題",