i18n: Adding new languages: Part 1 (#1882)

Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
José Alberto Hernández
2023-10-22 20:18:05 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent c7fe21e74a
commit 408f004450
432 changed files with 38051 additions and 44613 deletions
@@ -1,7 +1,7 @@
<div class="m-b-20" fxLayoutAlign="end">
<mat-button-toggle-group aria-label="Select Chart Type">
<mat-button-toggle value="Bar" (click) = "setBarChart(inputData)">Bar Chart</mat-button-toggle>
<mat-button-toggle value="Pie" (click) = "setPieChart(inputData)">Pie Chart</mat-button-toggle>
<mat-button-toggle value="Bar" (click) = "setBarChart(inputData)">{{"labels.buttons.Bar Chart" | translate}}</mat-button-toggle>
<mat-button-toggle value="Pie" (click) = "setPieChart(inputData)">{{"labels.buttons.Pie Chart" | translate}}</mat-button-toggle>
</mat-button-toggle-group>
</div>
@@ -14,7 +14,7 @@
<mat-label>{{param.label}}</mat-label>
<input matInput required [formControlName]="param.name">
<mat-error *ngIf="reportForm.controls[param.name].hasError('required')">
{{param.label}} is <strong>required</strong>
{{param.label}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
</mat-error>
</mat-form-field>
@@ -25,7 +25,7 @@
<mat-datepicker-toggle matSuffix [for]="runReportDatePicker"></mat-datepicker-toggle>
<mat-datepicker #runReportDatePicker></mat-datepicker>
<mat-error *ngIf="reportForm.controls[param.name].hasError('required')">
{{param.label}} is <strong>required</strong>
{{param.label}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
</mat-error>
</mat-form-field>
@@ -37,7 +37,7 @@
</mat-option>
</mat-select>
<mat-error *ngIf="reportForm.controls[param.name].hasError('required')">
{{param.label}} is <strong>required</strong>
{{param.label}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
</mat-error>
</mat-form-field>
@@ -46,7 +46,7 @@
</ng-container>
<mat-form-field fxFlex>
<mat-label>{{ 'Decimal Places' | translate }}</mat-label>
<mat-label>{{"labels.inputs.Decimal Places" | translate}}</mat-label>
<mat-select [formControl]="decimalChoice">
<mat-option value="0">0</mat-option>
<mat-option value="1">1</mat-option>
@@ -57,30 +57,30 @@
</mat-form-field>
<mat-form-field fxFlex *ngIf="isPentahoReport()">
<mat-label>{{ 'Output Type' | translate }}</mat-label>
<mat-label>{{'labels.inputs.Output Type' | translate}}</mat-label>
<mat-select required formControlName="outputType">
<mat-option *ngFor="let option of outputTypeOptions" [value]="option.value">
{{option.name | translate}}
{{ "labels.inputs." + option.name | translate}}
</mat-option>
</mat-select>
<mat-error *ngIf="reportForm.controls['outputType'].hasError('required')">
Report Output Type is <strong>required</strong>
{{ "labels.text.Report Output Type" | translate }} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
</mat-error>
</mat-form-field>
<div fxFlex="98%" *ngIf="exportToS3Allowed" >
<mat-checkbox labelPosition="after" formControlName="exportOutputToS3">
Export output data to S3 repository [{{exportToS3Repository}}]
{{ "labels.text.Export output data to S3 repository" | translate }} [{{exportToS3Repository}}]
</mat-checkbox>
</div>
</mat-card-content>
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
<button type="button" mat-raised-button [routerLink]="['/reports']">Cancel</button>
<button type="button" mat-raised-button [routerLink]="['/reports']">{{"labels.buttons.Cancel" | translate}}</button>
<button mat-raised-button color="primary" [disabled]="!reportForm.valid" id="runreport">
<fa-icon icon="file-export" class="m-r-10"></fa-icon>
{{ 'Run Report' | translate }}
{{"labels.buttons.Run Report" | translate}}
</button>
</mat-card-actions>
@@ -96,7 +96,7 @@
<div class="m-b-20">
<button mat-raised-button color="primary" (click)="isCollapsed = false">
{{ 'Parameters' | translate }}
{{'labels.buttons.Parameters' | translate}}
</button>
</div>
@@ -4,8 +4,8 @@
<div class="m-b-10" *ngIf="dataObject.report.type === 'Table'" fxLayoutAlign="end">
<button mat-raised-button color="primary" (click)="exportFile()" [disabled]="notExistsReportData"
matToolTip="Export the data to CSV file">
Export CSV
matToolTip="{{'labels.text.Export the data to CSV file' | translate}}">
{{'labels.buttons.Export CSV' | translate}}
</button>
</div>
@@ -29,7 +29,7 @@
<div class="alert" [hidden]="!notExistsReportData">
<div class="message">
<i class="fa fa-exclamation-circle alert-check"></i>
No report data was generated
{{'labels.text.No report data was generated' | translate}}
</div>
</div>
</div>
@@ -37,7 +37,7 @@
<div class="alert" *ngIf="!hideOutput && toBeExportedToRepo">
<div class="message">
<i class="fa fa-exclamation-circle alert-check"></i>
The report request has been sent and the report will be exported to file repository
{{'labels.text.The report request has been sent and the report will be exported to file repository' | translate}}
</div>
</div>
@@ -47,7 +47,7 @@
<div class="back-button" *ngIf="!hideOutput">
<button type="button" color="primary" mat-raised-button [routerLink]="['../..']">
<fa-icon icon="arrow-left" class="m-r-10"></fa-icon>Back</button>
<fa-icon icon="arrow-left" class="m-r-10"></fa-icon>{{"labels.buttons.Back" | translate}}</button>
</div>
</div>