i18n: Adding new languages: Part 1 (#1882)
Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
c7fe21e74a
commit
408f004450
@@ -9,15 +9,15 @@
|
||||
<div fxLayout="column">
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>Username</mat-label>
|
||||
<mat-label>{{'labels.inputs.Username' | translate}}</mat-label>
|
||||
<input matInput required formControlName="username">
|
||||
<mat-error *ngIf="emailConfigurationForm.controls.username.hasError('required')">
|
||||
Username is <strong>required</strong>
|
||||
{{'labels.inputs.Username' | translate}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>Password</mat-label>
|
||||
<mat-label>{{'labels.inputs.Password' | translate}}</mat-label>
|
||||
<input matInput required type="{{ passwordInputType }}" formControlName="password">
|
||||
<button mat-button *ngIf="emailConfigurationForm.controls.password.value" matSuffix mat-icon-button
|
||||
(mousedown)="passwordInputType = 'text'" (mouseup)="passwordInputType = 'password'">
|
||||
@@ -25,43 +25,43 @@
|
||||
<fa-icon *ngIf="passwordInputType === 'text'" icon="eye-slash"></fa-icon>
|
||||
</button>
|
||||
<mat-error *ngIf="emailConfigurationForm.controls.password.hasError('required')">
|
||||
Password is <strong>required</strong>
|
||||
{{'labels.inputs.Password' | translate}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>Host</mat-label>
|
||||
<mat-label>{{'labels.inputs.Host' | translate}}</mat-label>
|
||||
<input matInput required formControlName="host">
|
||||
<mat-error *ngIf="emailConfigurationForm.controls.host.hasError('required')">
|
||||
Host is <strong>required</strong>
|
||||
{{'labels.inputs.Host' | translate}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>Port</mat-label>
|
||||
<mat-label>{{'labels.inputs.Port' | translate}}</mat-label>
|
||||
<input matInput type="number" required formControlName="port">
|
||||
<mat-error *ngIf="emailConfigurationForm.controls.port.hasError('required')">
|
||||
Port is <strong>required</strong>
|
||||
{{'labels.inputs.Port' | translate}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-checkbox fxFlex="48%" labelPosition="before" formControlName="useTLS" class="margin-v">
|
||||
Use TLS?
|
||||
{{'labels.inputs.Use TLS' | translate}}?
|
||||
</mat-checkbox>
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>From Email</mat-label>
|
||||
<mat-label>{{'labels.inputs.From Email' | translate}}</mat-label>
|
||||
<input matInput type="email" required formControlName="fromEmail">
|
||||
<mat-error *ngIf="emailConfigurationForm.controls.fromEmail.hasError('required')">
|
||||
From Email is <strong>required</strong>
|
||||
{{'labels.inputs.From Email' | translate}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>From Name</mat-label>
|
||||
<mat-label>{{'labels.inputs.From Name' | translate}}</mat-label>
|
||||
<input matInput required formControlName="fromName">
|
||||
<mat-error *ngIf="emailConfigurationForm.controls.fromName.hasError('required')">
|
||||
From Name is <strong>required</strong>
|
||||
{{'labels.inputs.From Name' | translate}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
@@ -69,9 +69,9 @@
|
||||
</mat-card-content>
|
||||
|
||||
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
|
||||
<button type="button" mat-raised-button [routerLink]="['../']">Cancel</button>
|
||||
<button type="button" mat-raised-button [routerLink]="['../']">{{'labels.buttons.Cancel' | translate}}</button>
|
||||
<button mat-raised-button color="primary"
|
||||
[disabled]="!emailConfigurationForm.valid || emailConfigurationForm.pristine">Submit</button>
|
||||
[disabled]="!emailConfigurationForm.valid || emailConfigurationForm.pristine">{{'labels.buttons.Submit' | translate}}</button>
|
||||
</mat-card-actions>
|
||||
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user