Skip to content

Commit

Permalink
Fix: Missing labels in the report views
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Alberto Hernandez authored and alberto-art3ch committed Apr 15, 2024
1 parent e09fccf commit cdc9d74
Show file tree
Hide file tree
Showing 26 changed files with 46 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</div>

<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>
</mat-card-content>

Expand Down
20 changes: 10 additions & 10 deletions src/app/keyboards-shortcut-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export class KeyboardShortcutsConfiguration {
// Create Client - ctrl + c
{
title: 'Create Client',
ctrlKey: true,
ctrlKey: false,
shiftKey: false,
altKey: false,
altKey: true,
key: 'c',
route: 'clients/create'
},
Expand Down Expand Up @@ -120,38 +120,38 @@ export class KeyboardShortcutsConfiguration {
// Accounting - ctrl + a
{
title: 'Accounting',
ctrlKey: true,
ctrlKey: false,
shiftKey: false,
altKey: false,
altKey: true,
key: 'a',
route: 'accounting'
},
// Save/Submit Forms - ctrl + s
{
title: 'Save/Submit Forms',
ctrlKey: true,
ctrlKey: false,
shiftKey: false,
altKey: false,
altKey: true,
key: 's',
route: '',
id: 'submit'
},
// Cancel - ctrl + x
{
title: 'Cancel',
ctrlKey: true,
ctrlKey: false,
shiftKey: false,
altKey: false,
altKey: true,
key: 'x',
route: '',
id: 'cancel'
},
// Help - ctrl + h
{
title: 'Help',
ctrlKey: true,
ctrlKey: false,
shiftKey: false,
altKey: false,
altKey: true,
key: 'h',
route: '',
id: 'help'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h3>{{"labels.heading.Active Asset Transfer" | translate}}</h3>
<td fxFlex="25%" class="left">
<div [ngClass]="itemStatus(activeTransferData.status)">
<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>
</td>
<td fxFlex="25%">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
margin: 1%;
}

.status {
.external-asset-owner-status {
color: black;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
</div>

<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>
</mat-card-content>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</div>

<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>
</mat-card-content>

Expand Down
6 changes: 5 additions & 1 deletion src/app/pipes/yesno.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import { Pipe, PipeTransform } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';

@Pipe({
name: 'yesNo'
})
export class YesnoPipe implements PipeTransform {

constructor(private translateService: TranslateService) { }

transform(value: boolean, ...args: unknown[]): string {
if (value == null) {
return null;
}
return value ? 'Yes' : 'No';
const result = value ? 'Yes' : 'No';
return this.translateService.instant('labels.buttons.' + result);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
</div>

<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>
</mat-card-content>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<div class="alert" *ngIf="!hideOutput && toBeExportedToRepo">
<div class="message">
<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>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
</div>

<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>
</div>
</mat-card-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
</div>

<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>
</mat-card-content>

Expand Down
2 changes: 1 addition & 1 deletion src/app/users/view-user/view-user.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</div>

<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>
</mat-card-content>

Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/cs-CS.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Výdajový účet (DR)",
"Expenses from Goodwill Credit": "Výdaje z Goodwill Credit",
"Expiry Date": "Datum vypršení platnosti",
"Export to FIle": "Export do FILE",
"Extend Repayment Period": "Prodloužit dobu splácení",
"External Asset Owner": "Externí vlastník aktiv",
"External ID": "Externí ID",
Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Spesenkonto (DR)",
"Expenses from Goodwill Credit": "Aufwendungen aus Goodwill-Guthaben",
"Expiry Date": "Verfallsdatum",
"Export to FIle": "In eine Datei exportieren",
"Extend Repayment Period": "Verlängern Sie die Rückzahlungsfrist",
"External Asset Owner": "Externer Asset-Eigentümer",
"External ID": "Externe ID",
Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,7 @@
"Expense Account (DR)": "Expense Account (DR)",
"Expenses from Goodwill Credit": "Expenses from Goodwill Credit",
"Expiry Date": "Expiry Date",
"Export to FIle": "Export to FIle",
"Extend Repayment Period": "Extend Repayment Period",
"External Asset Owner": "External Asset Owner",
"External ID": "External ID",
Expand Down
9 changes: 5 additions & 4 deletions src/assets/translations/es-MX.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,12 +961,12 @@
"Alt": "Alt.",
"Amortization": "Amortización",
"Amortization Type": "Tipo de amortización",
"Amount": "Cantidad",
"Amount": "Monto",
"Amount Collected": "Monto recaudado",
"Amount Paid": "Cantidad pagada",
"Amount Paid": "Monto pagado",
"Amount Pending / Disbursed": "Monto Pendiente / Desembolsado",
"Amount Range": "Rango de cantidad",
"Amount Recieved/Returned": "Cantidad recibida/devuelta",
"Amount Range": "Rango de Monto",
"Amount Recieved/Returned": "Monto recibida/devuelta",
"Amount to be Reserved": "Monto a reservar",
"Annual Fees Transaction Date": "Fecha de transacción de comisiones anuales",
"Applies To": "Se aplica a",
Expand Down Expand Up @@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Cuenta de gastos (DR)",
"Expenses from Goodwill Credit": "Gastos del crédito de buena voluntad",
"Expiry Date": "Fecha de Caducidad",
"Export to FIle": "Exportar Archivo",
"Extend Repayment Period": "Ampliar el período de pago",
"External Asset Owner": "Propietario de activos externos",
"External ID": "Id externo",
Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Compte de dépenses (DR)",
"Expenses from Goodwill Credit": "Dépenses liées au crédit de bonne volonté",
"Expiry Date": "Date d'expiration",
"Export to FIle": "Exporter vers un fichier",
"Extend Repayment Period": "Prolonger la période de remboursement",
"External Asset Owner": "Propriétaire de l'actif externe",
"External ID": "ID externe",
Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/it-IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Conto spese (DR)",
"Expenses from Goodwill Credit": "Spese derivanti dal credito di avviamento",
"Expiry Date": "Data di scadenza",
"Export to FIle": "Esporta su file",
"Extend Repayment Period": "Estendere il periodo di rimborso",
"External Asset Owner": "Proprietario della risorsa esterna",
"External ID": "ID esterno",
Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/ko-KO.json
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@
"Expense Account (DR)": "비용 계정(DR)",
"Expenses from Goodwill Credit": "영업권 신용으로 인한 비용",
"Expiry Date": "만료일",
"Export to FIle": "파일로 내보내기",
"Extend Repayment Period": "상환기간 연장",
"External Asset Owner": "외부 자산 소유자",
"External ID": "외부 ID",
Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/lt-LT.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Išlaidų sąskaita (DR)",
"Expenses from Goodwill Credit": "Išlaidos iš prestižo kredito",
"Expiry Date": "Galiojimo pabaigos data",
"Export to FIle": "Eksportuoti į failą",
"Extend Repayment Period": "Prailginti grąžinimo laikotarpį",
"External Asset Owner": "Išorinis turto savininkas",
"External ID": "Išorinis ID",
Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/lv-LV.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Izdevumu konts (DR)",
"Expenses from Goodwill Credit": "Izdevumi no nemateriālās vērtības kredīta",
"Expiry Date": "Derīguma termiņš",
"Export to FIle": "Eksportēt uz failu",
"Extend Repayment Period": "Pagarināt atmaksas periodu",
"External Asset Owner": "Ārējais īpašuma īpašnieks",
"External ID": "Ārējais ID",
Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/ne-NE.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@
"Expense Account (DR)": "व्यय खाता (DR)",
"Expenses from Goodwill Credit": "गुडविल क्रेडिटबाट खर्च",
"Expiry Date": "म्याद सकिने मिति",
"Export to FIle": "फाइलमा निर्यात गर्नुहोस्",
"Extend Repayment Period": "पुन: भुक्तानी अवधि विस्तार गर्नुहोस्",
"External Asset Owner": "बाह्य सम्पत्ति मालिक",
"External ID": "बाह्य आईडी",
Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Conta de Despesas (DR)",
"Expenses from Goodwill Credit": "Despesas de Crédito Goodwill",
"Expiry Date": "Data de validade",
"Export to FIle": "Exportar arquivo",
"Extend Repayment Period": "Estender o período de reembolso",
"External Asset Owner": "Proprietário de ativo externo",
"External ID": "ID externo",
Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/sw-SW.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@
"Expense Account (DR)": "Akaunti ya Gharama (DR)",
"Expenses from Goodwill Credit": "Gharama kutoka kwa Mikopo ya Nia Njema",
"Expiry Date": "Tarehe ya mwisho wa matumizi",
"Export to FIle": "Hamisha kwa FILE",
"Extend Repayment Period": "Kuongeza Muda wa Kulipa",
"External Asset Owner": "Mmiliki wa Mali ya Nje",
"External ID": "Kitambulisho cha Nje",
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const environment = {
fineractPlatformTenantIds: window['env']['fineractPlatformTenantIds'] || 'default',
// For connecting to others servers running elsewhere update the base API URL
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
baseApiUrl: window['env']['baseApiUrl'] || 'https://demo.fineract.dev',
allowServerSwitch: env.allow_switching_backend_instance,
Expand Down
4 changes: 4 additions & 0 deletions src/theme/_dark_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,8 @@ body.dark-theme {
}
}

.external-asset-owner-status {
color: white;
}

}

0 comments on commit cdc9d74

Please sign in to comment.