Fix: Missing labels in the report views

This commit is contained in:
Jose Alberto Hernandez
2024-04-15 09:05:09 -06:00
committed by Jose Alberto Hernandez
parent e09fccf14b
commit cdc9d74122
26 changed files with 46 additions and 26 deletions
@@ -71,7 +71,7 @@
</div> </div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column"> <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button> <button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div> </div>
</mat-card-content> </mat-card-content>
+10 -10
View File
@@ -57,9 +57,9 @@ export class KeyboardShortcutsConfiguration {
// Create Client - ctrl + c // Create Client - ctrl + c
{ {
title: 'Create Client', title: 'Create Client',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: false,
altKey: false, altKey: true,
key: 'c', key: 'c',
route: 'clients/create' route: 'clients/create'
}, },
@@ -120,18 +120,18 @@ export class KeyboardShortcutsConfiguration {
// Accounting - ctrl + a // Accounting - ctrl + a
{ {
title: 'Accounting', title: 'Accounting',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: false,
altKey: false, altKey: true,
key: 'a', key: 'a',
route: 'accounting' route: 'accounting'
}, },
// Save/Submit Forms - ctrl + s // Save/Submit Forms - ctrl + s
{ {
title: 'Save/Submit Forms', title: 'Save/Submit Forms',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: false,
altKey: false, altKey: true,
key: 's', key: 's',
route: '', route: '',
id: 'submit' id: 'submit'
@@ -139,9 +139,9 @@ export class KeyboardShortcutsConfiguration {
// Cancel - ctrl + x // Cancel - ctrl + x
{ {
title: 'Cancel', title: 'Cancel',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: false,
altKey: false, altKey: true,
key: 'x', key: 'x',
route: '', route: '',
id: 'cancel' id: 'cancel'
@@ -149,9 +149,9 @@ export class KeyboardShortcutsConfiguration {
// Help - ctrl + h // Help - ctrl + h
{ {
title: 'Help', title: 'Help',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: false,
altKey: false, altKey: true,
key: 'h', key: 'h',
route: '', route: '',
id: 'help' id: 'help'
@@ -11,7 +11,7 @@
<td fxFlex="25%" class="left"> <td fxFlex="25%" class="left">
<div [ngClass]="itemStatus(activeTransferData.status)"> <div [ngClass]="itemStatus(activeTransferData.status)">
<fa-icon icon="stop"></fa-icon> <fa-icon icon="stop"></fa-icon>
<span class="m-l-10 status">{{activeTransferData.status}}</span> <span class="m-l-10 external-asset-owner-status">{{activeTransferData.status}}</span>
</div> </div>
</td> </td>
<td fxFlex="25%"> <td fxFlex="25%">
@@ -33,7 +33,7 @@
margin: 1%; margin: 1%;
} }
.status { .external-asset-owner-status {
color: black; color: black;
} }
@@ -124,7 +124,7 @@
</div> </div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column"> <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button> <button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div> </div>
</mat-card-content> </mat-card-content>
@@ -32,7 +32,7 @@
</div> </div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column"> <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button> <button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div> </div>
</mat-card-content> </mat-card-content>
+5 -1
View File
@@ -1,15 +1,19 @@
import { Pipe, PipeTransform } from '@angular/core'; import { Pipe, PipeTransform } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
@Pipe({ @Pipe({
name: 'yesNo' name: 'yesNo'
}) })
export class YesnoPipe implements PipeTransform { export class YesnoPipe implements PipeTransform {
constructor(private translateService: TranslateService) { }
transform(value: boolean, ...args: unknown[]): string { transform(value: boolean, ...args: unknown[]): string {
if (value == null) { if (value == null) {
return null; return null;
} }
return value ? 'Yes' : 'No'; const result = value ? 'Yes' : 'No';
return this.translateService.instant('labels.buttons.' + result);
} }
} }
@@ -141,7 +141,7 @@
</div> </div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column"> <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button> <button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div> </div>
</mat-card-content> </mat-card-content>
@@ -41,7 +41,7 @@
<div class="alert" *ngIf="!hideOutput && toBeExportedToRepo"> <div class="alert" *ngIf="!hideOutput && toBeExportedToRepo">
<div class="message"> <div class="message">
<i class="fa fa-exclamation-circle alert-check"></i> <i class="fa fa-exclamation-circle alert-check"></i>
{{'labels.text.The report request has been sent and the report will be exported to file repository' | translate}} {{'labels.text.The report request' | translate}}
</div> </div>
</div> </div>
@@ -87,7 +87,7 @@
</div> </div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column"> <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../../']">{{ 'Back' | <button type="button" mat-raised-button color="primary" [routerLink]="['../../']">{{ 'labels.buttons.Back' |
translate}}</button> translate}}</button>
</div> </div>
</mat-card-content> </mat-card-content>
@@ -121,7 +121,7 @@
</div> </div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column"> <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button> <button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div> </div>
</mat-card-content> </mat-card-content>
@@ -75,7 +75,7 @@
</div> </div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column"> <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button> <button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div> </div>
</mat-card-content> </mat-card-content>
+1
View File
@@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Výdajový účet (DR)", "Expense Account (DR)": "Výdajový účet (DR)",
"Expenses from Goodwill Credit": "Výdaje z Goodwill Credit", "Expenses from Goodwill Credit": "Výdaje z Goodwill Credit",
"Expiry Date": "Datum vypršení platnosti", "Expiry Date": "Datum vypršení platnosti",
"Export to FIle": "Export do FILE",
"Extend Repayment Period": "Prodloužit dobu splácení", "Extend Repayment Period": "Prodloužit dobu splácení",
"External Asset Owner": "Externí vlastník aktiv", "External Asset Owner": "Externí vlastník aktiv",
"External ID": "Externí ID", "External ID": "Externí ID",
+1
View File
@@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Spesenkonto (DR)", "Expense Account (DR)": "Spesenkonto (DR)",
"Expenses from Goodwill Credit": "Aufwendungen aus Goodwill-Guthaben", "Expenses from Goodwill Credit": "Aufwendungen aus Goodwill-Guthaben",
"Expiry Date": "Verfallsdatum", "Expiry Date": "Verfallsdatum",
"Export to FIle": "In eine Datei exportieren",
"Extend Repayment Period": "Verlängern Sie die Rückzahlungsfrist", "Extend Repayment Period": "Verlängern Sie die Rückzahlungsfrist",
"External Asset Owner": "Externer Asset-Eigentümer", "External Asset Owner": "Externer Asset-Eigentümer",
"External ID": "Externe ID", "External ID": "Externe ID",
+1
View File
@@ -1293,6 +1293,7 @@
"Expense Account (DR)": "Expense Account (DR)", "Expense Account (DR)": "Expense Account (DR)",
"Expenses from Goodwill Credit": "Expenses from Goodwill Credit", "Expenses from Goodwill Credit": "Expenses from Goodwill Credit",
"Expiry Date": "Expiry Date", "Expiry Date": "Expiry Date",
"Export to FIle": "Export to FIle",
"Extend Repayment Period": "Extend Repayment Period", "Extend Repayment Period": "Extend Repayment Period",
"External Asset Owner": "External Asset Owner", "External Asset Owner": "External Asset Owner",
"External ID": "External ID", "External ID": "External ID",
+5 -4
View File
@@ -961,12 +961,12 @@
"Alt": "Alt.", "Alt": "Alt.",
"Amortization": "Amortización", "Amortization": "Amortización",
"Amortization Type": "Tipo de amortización", "Amortization Type": "Tipo de amortización",
"Amount": "Cantidad", "Amount": "Monto",
"Amount Collected": "Monto recaudado", "Amount Collected": "Monto recaudado",
"Amount Paid": "Cantidad pagada", "Amount Paid": "Monto pagado",
"Amount Pending / Disbursed": "Monto Pendiente / Desembolsado", "Amount Pending / Disbursed": "Monto Pendiente / Desembolsado",
"Amount Range": "Rango de cantidad", "Amount Range": "Rango de Monto",
"Amount Recieved/Returned": "Cantidad recibida/devuelta", "Amount Recieved/Returned": "Monto recibida/devuelta",
"Amount to be Reserved": "Monto a reservar", "Amount to be Reserved": "Monto a reservar",
"Annual Fees Transaction Date": "Fecha de transacción de comisiones anuales", "Annual Fees Transaction Date": "Fecha de transacción de comisiones anuales",
"Applies To": "Se aplica a", "Applies To": "Se aplica a",
@@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Cuenta de gastos (DR)", "Expense Account (DR)": "Cuenta de gastos (DR)",
"Expenses from Goodwill Credit": "Gastos del crédito de buena voluntad", "Expenses from Goodwill Credit": "Gastos del crédito de buena voluntad",
"Expiry Date": "Fecha de Caducidad", "Expiry Date": "Fecha de Caducidad",
"Export to FIle": "Exportar Archivo",
"Extend Repayment Period": "Ampliar el período de pago", "Extend Repayment Period": "Ampliar el período de pago",
"External Asset Owner": "Propietario de activos externos", "External Asset Owner": "Propietario de activos externos",
"External ID": "Id externo", "External ID": "Id externo",
+1
View File
@@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Compte de dépenses (DR)", "Expense Account (DR)": "Compte de dépenses (DR)",
"Expenses from Goodwill Credit": "Dépenses liées au crédit de bonne volonté", "Expenses from Goodwill Credit": "Dépenses liées au crédit de bonne volonté",
"Expiry Date": "Date d'expiration", "Expiry Date": "Date d'expiration",
"Export to FIle": "Exporter vers un fichier",
"Extend Repayment Period": "Prolonger la période de remboursement", "Extend Repayment Period": "Prolonger la période de remboursement",
"External Asset Owner": "Propriétaire de l'actif externe", "External Asset Owner": "Propriétaire de l'actif externe",
"External ID": "ID externe", "External ID": "ID externe",
+1
View File
@@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Conto spese (DR)", "Expense Account (DR)": "Conto spese (DR)",
"Expenses from Goodwill Credit": "Spese derivanti dal credito di avviamento", "Expenses from Goodwill Credit": "Spese derivanti dal credito di avviamento",
"Expiry Date": "Data di scadenza", "Expiry Date": "Data di scadenza",
"Export to FIle": "Esporta su file",
"Extend Repayment Period": "Estendere il periodo di rimborso", "Extend Repayment Period": "Estendere il periodo di rimborso",
"External Asset Owner": "Proprietario della risorsa esterna", "External Asset Owner": "Proprietario della risorsa esterna",
"External ID": "ID esterno", "External ID": "ID esterno",
+1
View File
@@ -1295,6 +1295,7 @@
"Expense Account (DR)": "비용 계정(DR)", "Expense Account (DR)": "비용 계정(DR)",
"Expenses from Goodwill Credit": "영업권 신용으로 인한 비용", "Expenses from Goodwill Credit": "영업권 신용으로 인한 비용",
"Expiry Date": "만료일", "Expiry Date": "만료일",
"Export to FIle": "파일로 내보내기",
"Extend Repayment Period": "상환기간 연장", "Extend Repayment Period": "상환기간 연장",
"External Asset Owner": "외부 자산 소유자", "External Asset Owner": "외부 자산 소유자",
"External ID": "외부 ID", "External ID": "외부 ID",
+1
View File
@@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Išlaidų sąskaita (DR)", "Expense Account (DR)": "Išlaidų sąskaita (DR)",
"Expenses from Goodwill Credit": "Išlaidos iš prestižo kredito", "Expenses from Goodwill Credit": "Išlaidos iš prestižo kredito",
"Expiry Date": "Galiojimo pabaigos data", "Expiry Date": "Galiojimo pabaigos data",
"Export to FIle": "Eksportuoti į failą",
"Extend Repayment Period": "Prailginti grąžinimo laikotarpį", "Extend Repayment Period": "Prailginti grąžinimo laikotarpį",
"External Asset Owner": "Išorinis turto savininkas", "External Asset Owner": "Išorinis turto savininkas",
"External ID": "Išorinis ID", "External ID": "Išorinis ID",
+1
View File
@@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Izdevumu konts (DR)", "Expense Account (DR)": "Izdevumu konts (DR)",
"Expenses from Goodwill Credit": "Izdevumi no nemateriālās vērtības kredīta", "Expenses from Goodwill Credit": "Izdevumi no nemateriālās vērtības kredīta",
"Expiry Date": "Derīguma termiņš", "Expiry Date": "Derīguma termiņš",
"Export to FIle": "Eksportēt uz failu",
"Extend Repayment Period": "Pagarināt atmaksas periodu", "Extend Repayment Period": "Pagarināt atmaksas periodu",
"External Asset Owner": "Ārējais īpašuma īpašnieks", "External Asset Owner": "Ārējais īpašuma īpašnieks",
"External ID": "Ārējais ID", "External ID": "Ārējais ID",
+1
View File
@@ -1294,6 +1294,7 @@
"Expense Account (DR)": "व्यय खाता (DR)", "Expense Account (DR)": "व्यय खाता (DR)",
"Expenses from Goodwill Credit": "गुडविल क्रेडिटबाट खर्च", "Expenses from Goodwill Credit": "गुडविल क्रेडिटबाट खर्च",
"Expiry Date": "म्याद सकिने मिति", "Expiry Date": "म्याद सकिने मिति",
"Export to FIle": "फाइलमा निर्यात गर्नुहोस्",
"Extend Repayment Period": "पुन: भुक्तानी अवधि विस्तार गर्नुहोस्", "Extend Repayment Period": "पुन: भुक्तानी अवधि विस्तार गर्नुहोस्",
"External Asset Owner": "बाह्य सम्पत्ति मालिक", "External Asset Owner": "बाह्य सम्पत्ति मालिक",
"External ID": "बाह्य आईडी", "External ID": "बाह्य आईडी",
+1
View File
@@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Conta de Despesas (DR)", "Expense Account (DR)": "Conta de Despesas (DR)",
"Expenses from Goodwill Credit": "Despesas de Crédito Goodwill", "Expenses from Goodwill Credit": "Despesas de Crédito Goodwill",
"Expiry Date": "Data de validade", "Expiry Date": "Data de validade",
"Export to FIle": "Exportar arquivo",
"Extend Repayment Period": "Estender o período de reembolso", "Extend Repayment Period": "Estender o período de reembolso",
"External Asset Owner": "Proprietário de ativo externo", "External Asset Owner": "Proprietário de ativo externo",
"External ID": "ID externo", "External ID": "ID externo",
+1
View File
@@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Akaunti ya Gharama (DR)", "Expense Account (DR)": "Akaunti ya Gharama (DR)",
"Expenses from Goodwill Credit": "Gharama kutoka kwa Mikopo ya Nia Njema", "Expenses from Goodwill Credit": "Gharama kutoka kwa Mikopo ya Nia Njema",
"Expiry Date": "Tarehe ya mwisho wa matumizi", "Expiry Date": "Tarehe ya mwisho wa matumizi",
"Export to FIle": "Hamisha kwa FILE",
"Extend Repayment Period": "Kuongeza Muda wa Kulipa", "Extend Repayment Period": "Kuongeza Muda wa Kulipa",
"External Asset Owner": "Mmiliki wa Mali ya Nje", "External Asset Owner": "Mmiliki wa Mali ya Nje",
"External ID": "Kitambulisho cha Nje", "External ID": "Kitambulisho cha Nje",
+1 -1
View File
@@ -15,7 +15,7 @@ export const environment = {
fineractPlatformTenantIds: window['env']['fineractPlatformTenantIds'] || 'default', fineractPlatformTenantIds: window['env']['fineractPlatformTenantIds'] || 'default',
// For connecting to others servers running elsewhere update the base API URL // For connecting to others servers running elsewhere update the base API URL
baseApiUrls: window['env']['fineractApiUrls'] || baseApiUrls: window['env']['fineractApiUrls'] ||
'https://dev.mifos.io,https://demo.mifos.io,https://qa.mifos.io,https://staging.mifos.io,https://mobile.mifos.io,https://demo.fineract.dev,https://localhost:8443', 'https://dev.mifos.io,https://demo.mifos.io,https://qa.mifos.io,https://staging.mifos.io,https://mobile.mifos.io,https://demo.fineract.dev,https://localhost:8443,http://localhost:8443',
// For connecting to server running elsewhere set the base API URL // For connecting to server running elsewhere set the base API URL
baseApiUrl: window['env']['baseApiUrl'] || 'https://demo.fineract.dev', baseApiUrl: window['env']['baseApiUrl'] || 'https://demo.fineract.dev',
allowServerSwitch: env.allow_switching_backend_instance, allowServerSwitch: env.allow_switching_backend_instance,
+4
View File
@@ -238,4 +238,8 @@ body.dark-theme {
} }
} }
.external-asset-owner-status {
color: white;
}
} }