From 8459edc421bb7e764179ff4389b61ea215969a03 Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Fri, 8 Mar 2019 11:30:05 +0000 Subject: [PATCH] Added a bunch of new translations needed for the new UI --- .../card/discover-card-details.component.html | 20 ++++++------- .../src/app/discover/discover.component.html | 6 ++-- .../movie/movie-details.component.html | 6 ++-- .../cast-carousel.component.html | 10 +++---- .../deny-dialog/deny-dialog.component.html | 2 +- .../src/app/my-nav/nav-search.component.html | 2 +- src/Ombi/wwwroot/translations/en.json | 28 ++++++++++++++++++- 7 files changed, 50 insertions(+), 24 deletions(-) diff --git a/src/Ombi/ClientApp/src/app/discover/card/discover-card-details.component.html b/src/Ombi/ClientApp/src/app/discover/card/discover-card-details.component.html index 38a33e201..943ba7e06 100644 --- a/src/Ombi/ClientApp/src/app/discover/card/discover-card-details.component.html +++ b/src/Ombi/ClientApp/src/app/discover/card/discover-card-details.component.html @@ -49,7 +49,7 @@
- Availability: + {{'Discovery.CardDetails.Availability' | translate}}:
- Studio: + {{'Discovery.CardDetails.Studio' | translate}}: {{movie.productionCompanies[0].name}} - Network: + {{'Discovery.CardDetails.Network' | translate}}: {{tv.network.name}} - Unknown + {{'Discovery.CardDetails.UnknownNetwork' | translate}}
- Request Status: + {{'Discovery.CardDetails.RequestStatus' | translate}}: @@ -77,21 +77,21 @@
- Director: + {{'Discovery.CardDetails.Director' | translate}}: {{movie.credits.crew[0].name}} Director: {{tvCreator}}
- In Cinemas: + {{'Discovery.CardDetails.InCinemas' | translate}}: {{movie.releaseDate | amLocal | amDateFormat: 'LL'}} - First Aired: + {{'Discovery.CardDetails.FirstAired' | translate}}: {{tv.firstAired | amLocal | amDateFormat: 'LL'}}
- Writer: + {{'Discovery.CardDetails.Writer' | translate}}: {{movie.credits.crew[1].name}} - Exec Producer: + {{'Discovery.CardDetails.ExecProducer' | translate}}: {{tvProducer}}
diff --git a/src/Ombi/ClientApp/src/app/discover/discover.component.html b/src/Ombi/ClientApp/src/app/discover/discover.component.html index bd0f06be0..e7500d811 100644 --- a/src/Ombi/ClientApp/src/app/discover/discover.component.html +++ b/src/Ombi/ClientApp/src/app/discover/discover.component.html @@ -3,11 +3,11 @@
+ class="btn grow" color="primary">{{'Discovery.PopularTab' | translate}} + mat-raised-button class="btn grow" color="primary">{{'Discovery.TrendingTab' | translate}} + mat-raised-button class="btn grow" color="primary">{{'Discovery.UpcomingTab' | translate}}
diff --git a/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html b/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html index e3483ab92..9d7b22706 100644 --- a/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html +++ b/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html @@ -98,7 +98,7 @@ - Recommendations + {{'MediaDetails.RecommendationsTitle' | translate}} @@ -120,7 +120,7 @@ - Similar + {{'MediaDetails.SimilarTitle' | translate}} @@ -142,7 +142,7 @@ - Videos + {{'MediaDetails.VideosTitle' | translate}} diff --git a/src/Ombi/ClientApp/src/app/media-details/components/shared/cast-carousel/cast-carousel.component.html b/src/Ombi/ClientApp/src/app/media-details/components/shared/cast-carousel/cast-carousel.component.html index 310c710ea..bf94c89a4 100644 --- a/src/Ombi/ClientApp/src/app/media-details/components/shared/cast-carousel/cast-carousel.component.html +++ b/src/Ombi/ClientApp/src/app/media-details/components/shared/cast-carousel/cast-carousel.component.html @@ -1,5 +1,5 @@ - Cast + {{'MediaDetails.Casts.CastTitle' | translate}} @@ -10,12 +10,12 @@
- Character: {{item.character}} - Character: {{item.character.name}} + {{'MediaDetails.Casts.Character' | translate}}: {{item.character}} + {{'MediaDetails.Casts.Character' | translate}}: {{item.character.name}}
- Actor: {{item.name}} - Actor: {{item.person.name}} + {{'MediaDetails.Casts.Actor' | translate}}: {{item.name}} + {{'MediaDetails.Casts.Actor' | translate}}: {{item.person.name}}
diff --git a/src/Ombi/ClientApp/src/app/media-details/components/shared/deny-dialog/deny-dialog.component.html b/src/Ombi/ClientApp/src/app/media-details/components/shared/deny-dialog/deny-dialog.component.html index e6c319c24..5863b76eb 100644 --- a/src/Ombi/ClientApp/src/app/media-details/components/shared/deny-dialog/deny-dialog.component.html +++ b/src/Ombi/ClientApp/src/app/media-details/components/shared/deny-dialog/deny-dialog.component.html @@ -1,4 +1,4 @@ -

Deny Reason

+

{{ 'Requests.DenyReason' | translate}}

diff --git a/src/Ombi/ClientApp/src/app/my-nav/nav-search.component.html b/src/Ombi/ClientApp/src/app/my-nav/nav-search.component.html index 28345969f..02a144d9e 100644 --- a/src/Ombi/ClientApp/src/app/my-nav/nav-search.component.html +++ b/src/Ombi/ClientApp/src/app/my-nav/nav-search.component.html @@ -1,3 +1,3 @@ - diff --git a/src/Ombi/wwwroot/translations/en.json b/src/Ombi/wwwroot/translations/en.json index fb9d5dcbd..025bc7a07 100644 --- a/src/Ombi/wwwroot/translations/en.json +++ b/src/Ombi/wwwroot/translations/en.json @@ -129,6 +129,7 @@ "MarkAvailable":"Mark Available", "Remove":"Remove", "Deny":"Deny", + "DenyReason":"Deny Reason", "Season":"Season:", "GridTitle":"Title", "AirDate":"AirDate", @@ -190,6 +191,31 @@ "VotesTab": "Votes Needed" }, "MediaDetails": { - "Denied": "Denied" + "Denied": "Denied", + "RecommendationsTitle":"Recommendations", + "SimilarTitle":"Similar", + "VideosTitle":"Videos", + "Casts": { + "CastTitle":"Cast", + "Character":"Character", + "Actor":"Actor" + }, + "Discovery": { + "PopularTab":"Popular", + "TrendingTab":"Trending", + "UpcomingTab":"Upcoming", + "CardDetails":{ + "Availability":"Availability", + "Studio":"Studio", + "Network":"Network", + "UnknownNetwork":"Unknown", + "RequestStatus":"Request Status", + "Director":"Director", + "InCinemas":"In Cinemas", + "FirstAired":"First Aired", + "Writer":"Writer", + "ExecProducer":"Exec Producer" + } + } } }