Localize harcoded texts

pull/4356/head
Florian Dupret 3 years ago
parent e527a7e77d
commit e8e4ad1571

@ -1,17 +1,17 @@
<div class="small-middle-container"> <div class="small-middle-container">
<mat-tab-group> <mat-tab-group>
<div class="buttons"> <div class="buttons">
<mat-tab label="Movies"> <mat-tab label="{{ 'NavigationBar.Filter.Movies' | translate }}">
<ng-template matTabContent> <ng-template matTabContent>
<movies-grid (onOpenOptions)="onOpenOptions($event)"></movies-grid> <movies-grid (onOpenOptions)="onOpenOptions($event)"></movies-grid>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
<mat-tab label="TV Shows"> <mat-tab label="{{ 'NavigationBar.Filter.TvShows' | translate }}">
<ng-template matTabContent> <ng-template matTabContent>
<tv-grid (onOpenOptions)="onOpenOptions($event)"></tv-grid> <tv-grid (onOpenOptions)="onOpenOptions($event)"></tv-grid>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
<mat-tab label="Albums"> <mat-tab label="{{ 'NavigationBar.Filter.Music' | translate }}">
<ng-template matTabContent> <ng-template matTabContent>
<albums-grid (onOpenOptions)="onOpenOptions($event)"></albums-grid> <albums-grid (onOpenOptions)="onOpenOptions($event)"></albums-grid>
</ng-template> </ng-template>

@ -1,6 +1,6 @@
<form [formGroup]="form" (ngSubmit)="onSubmit()" *ngIf="form"> <form [formGroup]="form" (ngSubmit)="onSubmit()" *ngIf="form">
<h1 id="advancedOptionsTitle"> <h1 id="advancedOptionsTitle">
<i class="fas fa-sliders-h"></i> Advanced Search <i class="fas fa-sliders-h"></i> {{ "Search.AdvancedSearchHeader" | translate }}
</h1> </h1>
<hr /> <hr />
<div class="alert alert-info" role="alert"> <div class="alert alert-info" role="alert">
@ -14,25 +14,26 @@
<div class="row"> <div class="row">
<div style="margin: 2%;"> <div style="margin: 2%;">
<span>Please choose what type of media you are searching for:</span> <span>{{ "Search.AdvancedSearchInstructions" | translate }}</span>
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<div class="md-form-field"> <div class="md-form-field">
<mat-radio-group formControlName="type" aria-label="Select an option"> <mat-radio-group formControlName="type" aria-label="Select an option">
<mat-radio-button value="movie">Movies </mat-radio-button> <mat-radio-button value="movie">{{ "NavigationBar.Filter.Movies" | translate }} </mat-radio-button>
<mat-radio-button style="padding-left: 5px;" value="tv">TV Shows </mat-radio-button> <mat-radio-button style="padding-left: 5px;" value="tv">{{ "NavigationBar.Filter.TvShows" | translate }} </mat-radio-button>
</mat-radio-group> </mat-radio-group>
</div> </div>
</div> </div>
<div class="col-md-12" style="margin-top:1%"> <div class="col-md-12" style="margin-top:1%">
<mat-form-field appearance="outline" floatLabel=auto> <mat-form-field appearance="outline" floatLabel=auto>
<mat-label>Year of Release</mat-label> <mat-label>{{ "Search.YearOfRelease" | translate }}</mat-label>
<input matInput id="releaseYear" name="releaseYear" formControlName="releaseYear"> <input matInput id="releaseYear" name="releaseYear" formControlName="releaseYear">
</mat-form-field> </mat-form-field>
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<mat-label>{{ "Search.YearOfRelease" | translate }}</mat-label>
<genre-select [form]="form" [mediaType]="form.controls.type.value"></genre-select> <genre-select [form]="form" [mediaType]="form.controls.type.value"></genre-select>
</div> </div>
@ -41,7 +42,7 @@
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<span style="margin: 1%;">Please note that Keyword Searching is very hit and miss due to the inconsistent data in TheMovieDb</span> <span style="margin: 1%;">{{ "Search.KeywordSearchingDisclaimer" | translate }}</span>
<keyword-search [form]="form"></keyword-search> <keyword-search [form]="form"></keyword-search>
</div> </div>

@ -1,6 +1,6 @@
<mat-form-field appearance="outline" floatLabel=auto class="example-chip-list"> <mat-form-field appearance="outline" floatLabel=auto class="example-chip-list">
<mat-label>Genres</mat-label> <mat-label>{{ "MediaDetails.Genres" | translate }}</mat-label>
<mat-chip-list #chipList aria-label="Fruit selection"> <mat-chip-list #chipList aria-label="Fruit selection">
<mat-chip <mat-chip
*ngFor="let word of form.controls.genreIds.value" *ngFor="let word of form.controls.genreIds.value"

@ -1,5 +1,5 @@
<mat-form-field class="example-chip-list" appearance="outline" floatLabel=auto> <mat-form-field class="example-chip-list" appearance="outline" floatLabel=auto>
<mat-label>Keywords</mat-label> <mat-label>{{ "Filter.Keywords" | translate }}</mat-label>
<mat-chip-list #chipList aria-label="Fruit selection"> <mat-chip-list #chipList aria-label="Fruit selection">
<mat-chip <mat-chip
*ngFor="let word of form.controls.keywordIds.value" *ngFor="let word of form.controls.keywordIds.value"

@ -1,5 +1,5 @@
<mat-form-field class="example-chip-list" appearance="outline" floatLabel=auto> <mat-form-field class="example-chip-list" appearance="outline" floatLabel=auto>
<mat-label>Watch Providers</mat-label> <mat-label>{{ 'Filter.WatchProviders' | translate }}</mat-label>
<mat-chip-list #chipList aria-label="Fruit selection"> <mat-chip-list #chipList aria-label="Fruit selection">
<mat-chip <mat-chip
*ngFor="let word of form.controls.watchProviders.value" *ngFor="let word of form.controls.watchProviders.value"

@ -90,6 +90,7 @@
"TvTab": "TV Shows", "TvTab": "TV Shows",
"MusicTab": "Music", "MusicTab": "Music",
"AdvancedSearch":"You can fill in any of the below to discover new media. All of the results are sorted by popularity", "AdvancedSearch":"You can fill in any of the below to discover new media. All of the results are sorted by popularity",
"AdvancedSearchHeader":"Advanced Search",
"Suggestions": "Suggestions", "Suggestions": "Suggestions",
"NoResults": "Sorry, we didn't find any results!", "NoResults": "Sorry, we didn't find any results!",
"DigitalDate": "Digital Release: {{date}}", "DigitalDate": "Digital Release: {{date}}",
@ -123,7 +124,10 @@
"SubmitRequest": "Submit Request", "SubmitRequest": "Submit Request",
"Season": "Season {{seasonNumber}}", "Season": "Season {{seasonNumber}}",
"SelectAllInSeason": "Select All in Season {{seasonNumber}}" "SelectAllInSeason": "Select All in Season {{seasonNumber}}"
} },
"AdvancedSearchInstructions": "Please choose what type of media you are searching for:",
"YearOfRelease": "Year of Release",
"KeywordSearchingDisclaimer": "Please note that Keyword Searching is very hit and miss due to the inconsistent data in TheMovieDb"
}, },
"Requests": { "Requests": {
"Title": "Requests", "Title": "Requests",
@ -231,7 +235,9 @@
"FilterHeaderAvailability": "Availability", "FilterHeaderAvailability": "Availability",
"FilterHeaderRequestStatus": "Status", "FilterHeaderRequestStatus": "Status",
"Approved": "Approved", "Approved": "Approved",
"PendingApproval": "Pending Approval" "PendingApproval": "Pending Approval",
"WatchProviders": "Watch Providers",
"Keywords": "Keywords"
}, },
"UserManagment": { "UserManagment": {
"TvRemaining": "TV: {{remaining}}/{{total}} remaining", "TvRemaining": "TV: {{remaining}}/{{total}} remaining",

Loading…
Cancel
Save