mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-23 14:35:24 -07:00
Localize albums requests
This commit is contained in:
parent
2165c20f80
commit
359c9f0b82
4 changed files with 19 additions and 10 deletions
|
@ -9,7 +9,7 @@ namespace Ombi.Core.Engine
|
||||||
public string Message { get; set; }
|
public string Message { get; set; }
|
||||||
public bool IsError => !string.IsNullOrEmpty(ErrorMessage);
|
public bool IsError => !string.IsNullOrEmpty(ErrorMessage);
|
||||||
public string ErrorMessage { get; set; }
|
public string ErrorMessage { get; set; }
|
||||||
public ErrorCode ErrorCode { get; set; }
|
public ErrorCode? ErrorCode { get; set; }
|
||||||
public int RequestId { get; set; }
|
public int RequestId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ import { AuthService } from "../../../auth/auth.service";
|
||||||
import { DenyDialogComponent } from "../shared/deny-dialog/deny-dialog.component";
|
import { DenyDialogComponent } from "../shared/deny-dialog/deny-dialog.component";
|
||||||
import { NewIssueComponent } from "../shared/new-issue/new-issue.component";
|
import { NewIssueComponent } from "../shared/new-issue/new-issue.component";
|
||||||
import { IArtistSearchResult, IReleaseGroups } from "../../../interfaces/IMusicSearchResultV2";
|
import { IArtistSearchResult, IReleaseGroups } from "../../../interfaces/IMusicSearchResultV2";
|
||||||
|
import { TranslateService } from "@ngx-translate/core";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "./artist-details.component.html",
|
templateUrl: "./artist-details.component.html",
|
||||||
|
@ -26,7 +27,8 @@ export class ArtistDetailsComponent {
|
||||||
constructor(private searchService: SearchV2Service, private route: ActivatedRoute,
|
constructor(private searchService: SearchV2Service, private route: ActivatedRoute,
|
||||||
private sanitizer: DomSanitizer, private imageService: ImageService,
|
private sanitizer: DomSanitizer, private imageService: ImageService,
|
||||||
public dialog: MatDialog, private requestService: RequestService,
|
public dialog: MatDialog, private requestService: RequestService,
|
||||||
public messageService: MessageService, private auth: AuthService) {
|
public messageService: MessageService, private auth: AuthService,
|
||||||
|
private translate: TranslateService) {
|
||||||
this.route.params.subscribe((params: any) => {
|
this.route.params.subscribe((params: any) => {
|
||||||
this.artistId = params.artistId;
|
this.artistId = params.artistId;
|
||||||
this.load();
|
this.load();
|
||||||
|
@ -92,7 +94,7 @@ export class ArtistDetailsComponent {
|
||||||
.then(r => {
|
.then(r => {
|
||||||
if (r.result) {
|
if (r.result) {
|
||||||
a.monitored = true;
|
a.monitored = true;
|
||||||
this.messageService.send(r.message);
|
this.messageService.send(this.translate.instant("Requests.RequestAddedSuccessfully", {title: a.title}));
|
||||||
} else {
|
} else {
|
||||||
this.messageService.sendRequestEngineResultError(r);
|
this.messageService.sendRequestEngineResultError(r);
|
||||||
}
|
}
|
||||||
|
@ -115,7 +117,7 @@ export class ArtistDetailsComponent {
|
||||||
.then(r => {
|
.then(r => {
|
||||||
if (r.result) {
|
if (r.result) {
|
||||||
a.monitored = true;
|
a.monitored = true;
|
||||||
this.messageService.send(r.message);
|
this.messageService.send(this.translate.instant("Requests.RequestAddedSuccessfully", {title: a.title}));
|
||||||
} else {
|
} else {
|
||||||
this.messageService.sendRequestEngineResultError(r);
|
this.messageService.sendRequestEngineResultError(r);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
<div *ngIf="artist">
|
<div *ngIf="artist">
|
||||||
<div>
|
<div>
|
||||||
<strong>Type:</strong>
|
<strong>{{ 'MediaDetails.Music.Type' | translate }}</strong>
|
||||||
<div>{{artist.type}}</div>
|
<div>{{artist.type}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<strong>Country</strong>
|
<strong>{{ 'MediaDetails.Music.Country' | translate }}</strong>
|
||||||
<div>{{artist.country}}</div>
|
<div>{{artist.country}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<strong>Start Date</strong>
|
<strong>{{ 'MediaDetails.Music.StartDate' | translate }}</strong>
|
||||||
<div>{{artist.startYear}}</div>
|
<div>{{artist.startYear}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="artist.endYear">
|
<div *ngIf="artist.endYear">
|
||||||
<strong>End Date</strong>
|
<strong>{{ 'MediaDetails.Music.EndDate' | translate }}</strong>
|
||||||
<div>{{artist.endYear}}</div>
|
<div>{{artist.endYear}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -37,7 +37,8 @@
|
||||||
"Submit": "Submit",
|
"Submit": "Submit",
|
||||||
"Update": "Update",
|
"Update": "Update",
|
||||||
"tvShow": "TV Show",
|
"tvShow": "TV Show",
|
||||||
"movie": "Movie"
|
"movie": "Movie",
|
||||||
|
"album": "Album"
|
||||||
},
|
},
|
||||||
"PasswordReset": {
|
"PasswordReset": {
|
||||||
"EmailAddressPlaceholder": "Email Address",
|
"EmailAddressPlaceholder": "Email Address",
|
||||||
|
@ -344,7 +345,13 @@
|
||||||
"RequestedBy": "Requested By:",
|
"RequestedBy": "Requested By:",
|
||||||
"RequestDate": "Request Date:",
|
"RequestDate": "Request Date:",
|
||||||
"DeniedReason": "Denied Reason:",
|
"DeniedReason": "Denied Reason:",
|
||||||
"ReProcessRequest": "Re-Process Request"
|
"ReProcessRequest": "Re-Process Request",
|
||||||
|
"Music": {
|
||||||
|
"Type": "Type:",
|
||||||
|
"Country": "Country:",
|
||||||
|
"StartDate": "Start Date:",
|
||||||
|
"EndDate": "EndDate:"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"Discovery": {
|
"Discovery": {
|
||||||
"PopularTab": "Popular",
|
"PopularTab": "Popular",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue