i18n: Adding new languages: Part 2 (#1885)

Co-authored-by: radhathakare <radhathakare322@gmail.com>
This commit is contained in:
José Alberto Hernández
2023-10-25 22:42:07 -06:00
committed by GitHub
co-authored by radhathakare
parent 408f004450
commit 3c625d81c4
177 changed files with 36476 additions and 35908 deletions
@@ -13,56 +13,56 @@
<mat-icon matListIcon>
<fa-icon icon="building" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Offices</h4>
<h4 matLine>{{'labels.heading.Offices' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Users']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="user" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Users</h4>
<h4 matLine>{{'labels.heading.Users' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Groups']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="users" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Groups</h4>
<h4 matLine>{{'labels.heading.Groups' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Loan Accounts']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="money-bill-alt" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Loan Accounts</h4>
<h4 matLine>{{'labels.heading.Loan Accounts' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Savings Accounts']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="money-bill-alt" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Savings Accounts</h4>
<h4 matLine>{{'labels.heading.Savings Accounts' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Fixed Deposit Accounts']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="money-bill-alt" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Fixed Deposit Accounts</h4>
<h4 matLine>{{'labels.heading.Fixed Deposit Accounts' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Chart of Accounts']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="money-bill-alt" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Chart of Accounts</h4>
<h4 matLine>{{'labels.heading.Chart of Accounts' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Share Accounts']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="money-bill-alt" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Share Accounts</h4>
<h4 matLine>{{'labels.heading.Share Accounts' | translate }}</h4>
</mat-list-item>
</mat-nav-list>
@@ -77,7 +77,7 @@
<mat-icon matListIcon>
<fa-icon icon="user" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Employees</h4>
<h4 matLine>{{'labels.heading.Employees' | translate }}</h4>
</mat-list-item>
@@ -85,56 +85,56 @@
<mat-icon matListIcon>
<fa-icon icon="user" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Clients</h4>
<h4 matLine>{{'labels.heading.Clients' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Centers']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="users" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Centers</h4>
<h4 matLine>{{'labels.heading.Centers' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Loan Repayments']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="chevron-right" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Loan Repayments</h4>
<h4 matLine>{{'labels.heading.Loan Repayments' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Savings Transactions']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="chevron-right" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Savings Transactions</h4>
<h4 matLine>{{'labels.heading.Savings Transactions' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Fixed Deposit Transactions']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="chevron-right" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Fixed Deposit Transactions</h4>
<h4 matLine>{{'labels.heading.Fixed Deposit Transactions' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Recurring Deposit Transactions']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="chevron-right" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Recurring Deposit Transactions</h4>
<h4 matLine>{{'labels.heading.Recurring Deposit Transactions' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Journal Entries']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="chevron-right" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Journal Entries</h4>
<h4 matLine>{{'labels.heading.Journal Entries' | translate }}</h4>
</mat-list-item>
<mat-list-item [routerLink]="['Guarantors']" *mifosxHasPermission="'READ_OFFICE'">
<mat-icon matListIcon>
<fa-icon icon="chevron-right" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Guarantors</h4>
<h4 matLine>{{'labels.heading.Guarantors' | translate }}</h4>
</mat-list-item>
</mat-nav-list>
@@ -4,7 +4,7 @@
<mat-card fxLayout="column" fxLayoutGap="2%" fxFlex="50%">
<h3><strong>{{bulkImport.name}} Template</strong></h3>
<h3><strong>{{bulkImport.name}} {{ 'labels.heading.Template' | translate }}</strong></h3>
<form [formGroup]="bulkImportForm">
@@ -12,7 +12,7 @@
<div *ngIf="bulkImport.formFields >= 1">
<mat-form-field fxFlex>
<mat-label>Office</mat-label>
<mat-label>{{ 'labels.inputs.Office' | translate }}</mat-label>
<mat-select formControlName="officeId">
<mat-option *ngFor="let office of officeData" [value]="office.id">
{{ office.name }}
@@ -23,7 +23,7 @@
<div *ngIf="bulkImport.formFields >= 2">
<mat-form-field fxFlex>
<mat-label>Staff</mat-label>
<mat-label>{{ 'labels.inputs.Staff' | translate }}</mat-label>
<mat-select formControlName="staffId">
<mat-option *ngFor="let staff of staffData" [value]="staff.id">
{{ staff.displayName }}
@@ -34,10 +34,10 @@
<div *ngIf="bulkImport.formFields === 3">
<mat-form-field fxFlex>
<mat-label>Legal Form</mat-label>
<mat-label>{{ 'labels.inputs.Legal Form' | translate }}</mat-label>
<mat-select required formControlName="legalForm">
<mat-option value="Entity">Entity</mat-option>
<mat-option value="Person">Person</mat-option>
<mat-option value="Entity">{{ 'labels.inputs.Entity' | translate }}</mat-option>
<mat-option value="Person">{{ 'labels.inputs.Person' | translate }}</mat-option>
</mat-select>
</mat-form-field>
</div>
@@ -48,7 +48,7 @@
<div fxFlex="13%">
<button mat-raised-button color="primary" (click)="downloadTemplate()" *mifosxHasPermission="bulkImport.permission">
<i class="fa fa-download"></i>&nbsp;&nbsp;Download
<i class="fa fa-download"></i>&nbsp;&nbsp;{{'labels.buttons.Download' | translate }}
</button>
</div>
@@ -58,15 +58,15 @@
<h3><strong>{{bulkImport.name}}</strong></h3>
<h4>Select Excel File</h4>
<h4>{{'labels.heading.Select Excel File' | translate }}</h4>
<mifosx-file-upload flex="75%" (change)="onFileSelect($event)" acceptFilter=".xls,.xlsx"></mifosx-file-upload>
<mat-hint *ngIf="bulkImport.name === 'Clients'">Please retain the value Entity/Person in the filename.</mat-hint>
<mat-hint *ngIf="bulkImport.name === 'Clients'">{{ 'labels.text.Please retain the value Entity/Person in the filename.' | translate }}</mat-hint>
<div fxFlex="13%">
<button mat-raised-button color="primary" [disabled]="!template" (click)="uploadTemplate()">
<i class="fa fa-upload"></i>&nbsp;&nbsp;Upload
<i class="fa fa-upload"></i>&nbsp;&nbsp;{{'labels.buttons.Upload' | translate }}
</button>
</div>
@@ -79,12 +79,12 @@
<mat-card>
<div>
<h3 class="documents"><strong>Documents</strong></h3>
<h3 class="documents"><strong>{{ 'labels.heading.Documents' | translate }}</strong></h3>
</div>
<div class="m-b-10" fxLayoutAlign="end">
<button mat-raised-button color="primary" (click)="refreshDocuments()">
<i class="fa fa-repeat"></i>&nbsp;&nbsp;Refresh
<i class="fa fa-repeat"></i>&nbsp;&nbsp;{{'labels.buttons.Refresh' | translate }}
</button>
</div>
@@ -93,42 +93,42 @@
<table #importsTable mat-table [dataSource]="dataSource" matSort>
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Name </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{ 'labels.inputs.name' | translate }} </th>
<td mat-cell *matCellDef="let import"> {{ import.name }} </td>
</ng-container>
<ng-container matColumnDef="importTime">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Import Time </th>
<td mat-cell *matCellDef="let import"> {{ import.importTime | dateFormat }} </td>
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{ 'labels.inputs.Import Time' | translate }} </th>
<td mat-cell *matCellDef="let import"> {{ import.importTime | dateFormat }} </td>
</ng-container>
<ng-container matColumnDef="endTime">
<th mat-header-cell *matHeaderCellDef mat-sort-header> End Time </th>
<td mat-cell *matCellDef="let import"> {{ import.endTime | dateFormat }} </td>
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{ 'labels.inputs.End Time' | translate }} </th>
<td mat-cell *matCellDef="let import"> {{ import.endTime | dateFormat }} </td>
</ng-container>
<ng-container matColumnDef="completed">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Completed </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{ 'labels.inputs.Completed' | translate }} </th>
<td mat-cell *matCellDef="let import"> {{ import.completed }} </td>
</ng-container>
<ng-container matColumnDef="totalRecords">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Total Records </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{ 'labels.inputs.Total Records' | translate }} </th>
<td mat-cell *matCellDef="let import"> {{ import.totalRecords }} </td>
</ng-container>
<ng-container matColumnDef="successCount">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Success Count </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{ 'labels.inputs.Success Count' | translate }} </th>
<td mat-cell *matCellDef="let import"> {{ import.successCount }} </td>
</ng-container>
<ng-container matColumnDef="failureCount">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Failure Count </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{ 'labels.inputs.Failure Count' | translate }} </th>
<td mat-cell *matCellDef="let import"> {{ import.failureCount }} </td>
</ng-container>
<ng-container matColumnDef="download">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Download </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{ 'labels.inputs.Download' | translate }} </th>
<td mat-cell *matCellDef="let import">
<button mat-icon-button (click)="downloadDocument(import.name, import.importId)" *mifosxHasPermission="'READ_DOCUMENT'">
<fa-icon icon="cloud-download-alt"></fa-icon>