Skip to content

Commit

Permalink
translation of cob-workflow and workflow-jobs files inside manage-job…
Browse files Browse the repository at this point in the history
…s in system modules
  • Loading branch information
Omar-Nabil authored and alberto-art3ch committed Jun 18, 2024
1 parent 11bee25 commit b2a1848
Show file tree
Hide file tree
Showing 18 changed files with 152 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div class="container m-b-20 space-top" fxLayout="row" fxLayoutGap="20px">
<div #cobCatchUpStatus>
<h2 class="no-m">COB Catch-Up is:<span class="m-l-20 m-r-20">{{ isCatchUpRunning ? 'Running' : 'Inactive' }}</span>
<h2 class="no-m">{{'labels.heading.COB Catch-Up is' | translate}}:<span class="m-l-20 m-r-20">{{ isCatchUpRunning ? ( 'labels.catalogs.Running' | translate ) : ('labels.catalogs.Inactive' | translate)}}</span>
</h2>
</div>
<button mat-raised-button class="activate" (click)="runCatchUp()" *ngIf="!isCatchUpRunning">
<fa-icon icon="times-circle" class="m-r-10"></fa-icon>
Run Catch-Up
{{'labels.buttons.Run Catch-Up' | translate}}
</button>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@
</ng-container>

<ng-container matColumnDef="loanId">
<th mat-header-cell *matHeaderCellDef> Loan Id </th>
<th mat-header-cell *matHeaderCellDef> {{"labels.inputs.Loan Id" | translate}} </th>
<td mat-cell *matCellDef="let loan" class="view-details"> {{loan.loanId}} </td>
</ng-container>

<ng-container matColumnDef="lockPlacedOn">
<th mat-header-cell *matHeaderCellDef> Lock Placed On </th>
<th mat-header-cell *matHeaderCellDef> {{"labels.inputs.Lock Placed On" | translate}} </th>
<td mat-cell *matCellDef="let loan" class="view-details"> {{loan.lockPlacedOn | datetimeFormat}} </td>
</ng-container>

<ng-container matColumnDef="lockOwner">
<th mat-header-cell *matHeaderCellDef> Lock Owner </th>
<th mat-header-cell *matHeaderCellDef> {{"labels.inputs.Lock Owner" | translate}} </th>
<td mat-cell *matCellDef="let loan" class="view-details"> {{loan.lockOwner}} </td>
</ng-container>

<ng-container matColumnDef="error">
<th mat-header-cell *matHeaderCellDef> Error </th>
<th mat-header-cell *matHeaderCellDef> {{"labels.inputs.Error" | translate}} </th>
<td mat-cell *matCellDef="let loan" class="view-details"> {{loan.error}} </td>
</ng-container>

<ng-container matColumnDef="details">
<th mat-header-cell *matHeaderCellDef> Details </th>
<th mat-header-cell *matHeaderCellDef> {{"labels.heading.Details" | translate}} </th>
<td mat-cell *matCellDef="let loan" class="view-details">
<button mat-icon-button class="error-log" matTooltip="Error details" (click)="showDetails(loan)" matTooltipPosition="left">
<fa-icon icon="exclamation-circle" size="lg"></fa-icon>
Expand All @@ -75,7 +75,7 @@

<div class="message">
<i class="fa fa-exclamation-circle alert-check"></i>
No loan locked available.
{{"labels.text.No loan locked available" | translate}}.
</div>

</div>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { MatDialog } from '@angular/material/dialog';
import { MatPaginator } from '@angular/material/paginator';
import { MatTableDataSource } from '@angular/material/table';
import { ActivatedRoute, Router } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { LoansService } from 'app/loans/loans.service';
import { ErrorDialogComponent } from 'app/shared/error-dialog/error-dialog.component';
import { SystemService } from 'app/system/system.service';
Expand Down Expand Up @@ -49,13 +50,15 @@ export class LoanLockedComponent implements OnInit {
* @param {LoansService} loansService Loans Service
* @param {Router} router Router for navigation.
* @param {MatDialog} dialog Dialog reference.
* @param {TranslateService} translateService Translate Service.
*/
constructor(private route: ActivatedRoute,
private router: Router,
private loansService: LoansService,
private systemService: SystemService,
private tasksService: TasksService,
private dialog: MatDialog) {
private dialog: MatDialog,
private translateService:TranslateService) {
}

ngOnInit(): void {
Expand Down Expand Up @@ -107,9 +110,9 @@ export class LoanLockedComponent implements OnInit {
/** The label for the checkbox on the passed row */
checkboxLabel(row?: any): string {
if (!row) {
return `${this.isAllSelected() ? 'select' : 'deselect'} all`;
return `${this.isAllSelected() ? this.translateService.instant('labels.text.select') : this.translateService.instant('labels.text.deselect')} ${this.translateService.instant('labels.text.All')}`;
}
return `${this.selection.isSelected(row) ? 'deselect' : 'select'} row ${row.position + 1}`;
return `${this.selection.isSelected(row) ? this.translateService.instant('labels.text.deselect') : this.translateService.instant('labels.text.select')} ${this.translateService.instant('labels.text.row')} ${row.position + 1}`;
}

showDetails(loan: any) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<svg:g class="link-midpoint" *ngIf="link.midPoint"
[attr.transform]="'translate(' + link.midPoint.x + ',' + link.midPoint.y + ')'">
<ellipse rx="30" ry="10" />
<svg:text alignment-baseline="central">{{ link.data.linkText }}</svg:text>
<svg:text alignment-baseline="central">{{ link.data.linkText | translateKey:'text' }}</svg:text>
</svg:g>
</ng-template>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<div class="container space-top" fxLayout="row wrap" fxLayoutGap="2%" fxLayout.lt-md="column">

<mat-form-field fxFlex="31%">
<mat-label>Job Name</mat-label>
<mat-label>{{'labels.inputs.Job Name' | translate}}</mat-label>
<mat-select [formControl]="jobName" (selectionChange)="getWorkflowJobSteps($event.value)">
<mat-option *ngFor="let job of jobNameOptions" [value]="job">
{{ job }}
{{ job | translateKey:'catalogs' }}
</mat-option>
</mat-select>
</mat-form-field>

<div class="action-button" fxLayoutGap="25px" *ngIf="jobStepsData.length > 0">
<button mat-raised-button color="primary" (click)="addJobStep()">
<fa-icon icon="plus" class="m-r-10"></fa-icon>Link Job Step
<fa-icon icon="plus" class="m-r-10"></fa-icon>{{ 'labels.buttons.Link Job Step' | translate}}
</button>
</div>

Expand All @@ -21,17 +21,17 @@
(cdkDropListDropped)="dropTable($event)">

<ng-container matColumnDef="stepName">
<th mat-header-cell *matHeaderCellDef> Step Name </th>
<th mat-header-cell *matHeaderCellDef> {{ 'labels.inputs.Step Name' | translate}} </th>
<td mat-cell *matCellDef="let jobStep"> {{ jobStep.stepName }} </td>
</ng-container>

<ng-container matColumnDef="stepOrder">
<th mat-header-cell *matHeaderCellDef> Order </th>
<th mat-header-cell *matHeaderCellDef> {{ 'labels.inputs.Order' | translate }} </th>
<td mat-cell *matCellDef="let jobStep"> {{ jobStep.order }} </td>
</ng-container>

<ng-container matColumnDef="actions">
<th mat-header-cell *matHeaderCellDef> Actions </th>
<th mat-header-cell *matHeaderCellDef> {{ "labels.inputs.Actions" | translate}} </th>
<td mat-cell *matCellDef="let row; let rowIndex = index">
<button type="button" mat-icon-button color="warn" (click)="removeJobStep(rowIndex)" matTooltip="Delete"
matTooltipPosition="left">
Expand All @@ -48,10 +48,10 @@
<div *ngIf="stepOrderHasChanged" fxLayout="row" class="container margin-t space-top" fxLayout.xs="column"
fxLayoutAlign="center" fxLayoutGap="2%">
<button mat-raised-button [routerLink]="['../']">
Cancel
{{"labels.buttons.Cancel" | translate}}
</button>
<button mat-raised-button color="primary" (click)="saveChanges()">
Apply Changes
{{"labels.buttons.Apply Changes" | translate}}
</button>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, OnInit, ViewChild } from '@angular/core';
import { UntypedFormControl, Validators } from '@angular/forms';
import { MatDialog } from '@angular/material/dialog';
import { MatTable } from '@angular/material/table';
import { TranslateService } from '@ngx-translate/core';
import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.component';
import { FormDialogComponent } from 'app/shared/form-dialog/form-dialog.component';
import { FormfieldBase } from 'app/shared/form-dialog/formfield/model/formfield-base';
Expand Down Expand Up @@ -32,7 +33,8 @@ export class WorkflowJobsComponent implements OnInit {
displayedColumns: string[] = ['stepName', 'stepOrder', 'actions'];

constructor(private systemService: SystemService,
public dialog: MatDialog) {}
public dialog: MatDialog,
private translateService:TranslateService) {}

ngOnInit(): void {
this.systemService.getWorkflowJobNames().toPromise()
Expand Down Expand Up @@ -71,7 +73,7 @@ export class WorkflowJobsComponent implements OnInit {
*/
removeJobStep(index: number) {
const dialogRef = this.dialog.open(DeleteDialogComponent, {
data: { deleteContext: `this` }
data: { deleteContext: this.translateService.instant('labels.text.this') }
});
dialogRef.afterClosed().subscribe((response: any) => {
if (response.delete) {
Expand Down Expand Up @@ -108,16 +110,19 @@ export class WorkflowJobsComponent implements OnInit {
}

if (this.jobAvailableStepsData.length > 0) {
for (let index = 0; index < this.jobAvailableStepsData.length; index++) {
this.jobAvailableStepsData[index].stepDescription = this.translateService.instant(`labels.catalogs.${this.jobAvailableStepsData[index].stepDescription}`)
}
const frmFields: FormfieldBase[] = [
new SelectBase({
controlName: 'stepName',
label: 'Step',
label: this.translateService.instant('labels.text.Step'),
options: { label: 'stepDescription', value: 'stepName', data: this.jobAvailableStepsData },
order: 1
})
];
const data = {
title: 'Add Job Step to Workflow',
title: this.translateService.instant('labels.text.Add Job Step to Workflow'),
layout: { addButtonText: 'Add' },
formfields: frmFields
};
Expand Down
10 changes: 10 additions & 0 deletions src/assets/translations/cs-CS.json
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@
"cash_mgmt": "cash_mgmt",
"collection_sheet": "kolekce_list",
"configuration": "konfigurace",
"Check Due Installments": "Zkontrolovat splatné splátky",
"Execute external asset owner transfer": "Provést převod vlastníka externího majetku",
"datatable": "datová tabulka",
"externalservices": "externí služby",
"infrastructure": "infrastruktura",
Expand All @@ -550,10 +552,12 @@
"Savings": "Savings",
"Shares": "Shares",
"Regular": "Regular",
"Running": "Běh",
"Account transfer": "Account transfer",
"Flat": "Flat",
"GROUP": "SKUPINA",
"LOAN": "PŮJČKA",
"LOAN_CLOSE_OF_BUSINESS": "LOAN_CLOSE_OF_BUSINESS",
"SAVINGS": "ÚSPORY",
"SHARES": "PODÍLE",
"% Amount": "% Amount",
Expand Down Expand Up @@ -2553,6 +2557,7 @@
"Add": "Přidat",
"Add Role": "Přidat roli",
"Add customized reports and edit core reports": "Můžete přidávat přizpůsobené přehledy a upravovat základní přehledy pro vaši organizaci.",
"Add Job Step to Workflow": "Přidejte krok úlohy do pracovního postupu",
"Add new extra fields to any entity": "Přidejte nová další pole do libovolné entity ve formě datové tabulky",
"Add new loan product or modify or inactivate loan product": "Přidejte nový úvěrový produkt nebo upravte či deaktivujte úvěrový produkt",
"Add new office or modify or deactivate office": "Přidejte novou kancelář nebo upravte nebo deaktivujte kancelář nebo upravte hierarchii",
Expand Down Expand Up @@ -2717,6 +2722,7 @@
"Delete clients signature": "Jste si jisti, že chcete smazat tento klientský podpis?",
"Delinquency Buckets": "Delikvence kbelíky",
"Delinquency Ranges": "Rozsahy delikvence",
"deselect": "zrušit výběr",
"Documents": "Dokumenty",
"Dropdown self service user administrative portal": "Rozbalovací nabídka poskytuje přístup k samoobslužnému portálu pro správu uživatelů, konfiguraci aplikací a správě úloh.",
"Dropdown system reports": "Rozbalovací nabídka poskytuje přístup ke všem typům systémových zpráv včetně výchozích zpráv poskytovaných Migos a systémových zpráv, které budou vyvíjeny organizací.",
Expand Down Expand Up @@ -2938,6 +2944,7 @@
"Provisioning Criteria": "Kritéria poskytování",
"Provisioning Entries": "Poskytování záznamů",
"Provisioning criteria definitions": "Vyplňte všechny definice kritérií poskytování.",
"Precedes of": "Předchází",
"Recurring Deposit Account Charges": "Opakované poplatky za vkladový účet",
"Recurring Deposit Account Interest Rate Chart": "Graf úrokových sazeb pro opakující se vkladový účet",
"Recurring Deposit Account Standing Instructions": "Pokyny k trvalému vkladovému účtu",
Expand All @@ -2955,6 +2962,7 @@
"Reports": "Zprávy",
"Reschedule Loan": "Přeplánovat půjčku",
"Revert this transaction?": "Opravdu chcete tuto transakci vrátit?",
"row": "řádek",
"Roles and Permissions": "Role a oprávnění",
"Roles and Permissions allow the administrator to control access": "Role a oprávnění umožňují správci řídit přístup k Mifos na základě toho, jaké role jsou přiřazeny uživatelům a jaká oprávnění jsou přiřazena rolím.",
"S3 Amazon Service Configuration": "Konfigurace služby S3 Amazon",
Expand All @@ -2978,6 +2986,7 @@
"Search by user": "Hledat uživatelem",
"Search by Text": "Vyhledávání podle textu",
"Section Buttons": "Tato sekce obsahuje uživatelské jméno, fotografii uživatele, uživatelská nastavení a tlačítko pro odhlášení.",
"select": "vybrat",
"Selection you can create new drop-downs and edit": "Z tohoto výběru můžete vytvářet nové rozevírací seznamy a upravovat jejich hodnoty a také upravovat hodnoty pro kódy a rozevírací seznamy generované systémem.",
"Self Service": "Samoobsluha",
"Self Service App Configuration": "Konfigurace samoobslužné aplikace",
Expand Down Expand Up @@ -3009,6 +3018,7 @@
"Standing Instructions": "Stálé instrukce",
"Standing Instructions History": "Historie stálých instrukcí",
"Start filling the details": "Kliknutím začněte vyplňovat podrobnosti. * pole označení jsou nezbytná.",
"Step": "Krok",
"Supports Loan charges, Savings & deposits": "Tato možnost umožňuje vytvářet nové poplatky. Podporuje poplatky za úvěr, poplatky za spoření a vklady a poplatky za klienty.",
"System": "Systém",
"Table": "Stůl",
Expand Down
10 changes: 10 additions & 0 deletions src/assets/translations/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@
"cash_mgmt": "cash_mgmt",
"collection_sheet": "Sammlungsblatt",
"configuration": "Aufbau",
"Check Due Installments": "Fällige Raten prüfen",
"Execute external asset owner transfer": "Übertragung des externen Vermögensinhabers ausführen",
"datatable": "Datentabelle",
"externalservices": "externe Dienste",
"infrastructure": "Infrastruktur",
Expand All @@ -550,10 +552,12 @@
"Savings": "Ersparnisse",
"Shares": "Anteile",
"Regular": "Regulär",
"Running": "Läuft",
"Account transfer": "Kontoübertragung",
"Flat": "Wohnung",
"GROUP": "GRUPPE",
"LOAN": "DARLEHEN",
"LOAN_CLOSE_OF_BUSINESS": "LOAN_CLOSE_OF_BUSINESS",
"SAVINGS": "ERSPARNISSE",
"SHARES": "ANTEILE",
"% Amount": "Menge",
Expand Down Expand Up @@ -2553,6 +2557,7 @@
"Add": "Hinzufügen",
"Add Role": "Rolle hinzufügen",
"Add customized reports and edit core reports": "Sie können benutzerdefinierte Berichte hinzufügen und Kernberichte für Ihre Organisation bearbeiten.",
"Add Job Step to Workflow": "Jobschritt zum Workflow hinzufügen",
"Add new extra fields to any entity": "Fügen Sie jeder Entität neue zusätzliche Felder in Form einer Datentabelle hinzu",
"Add new loan product or modify or inactivate loan product": "Neues Kreditprodukt hinzufügen oder Kreditprodukt ändern oder deaktivieren",
"Add new office or modify or deactivate office": "Neues Büro hinzufügen oder Büro ändern oder deaktivieren oder Hierarchie ändern",
Expand Down Expand Up @@ -2716,6 +2721,7 @@
"Delete clients signature": "Sind Sie sicher, dass Sie die Signatur dieses Kunden löschen möchten?",
"Delinquency Buckets": "Kriminalitätseimer",
"Delinquency Ranges": "Zahlungsverzugsbereiche",
"deselect": "Abwählen",
"Documents": "Unterlagen",
"Dropdown self service user administrative portal": "Dropdown bietet Zugriff auf das Self-Service-Benutzerverwaltungsportal, die App-Konfiguration und die Aufgabenverwaltung.",
"Dropdown system reports": "Dropdown bietet Zugriff auf alle Arten von Systemberichten, einschließlich der von den Migos bereitgestellten Standardberichte und Systemberichte, die von der Organisation entwickelt werden.",
Expand Down Expand Up @@ -2937,6 +2943,7 @@
"Provisioning Criteria": "Bereitstellungskriterien",
"Provisioning Entries": "Bereitstellungseinträge",
"Provisioning criteria definitions": "Bitte füllen Sie alle Definitionen der Bereitstellungskriterien aus.",
"Precedes of": "Präzedenzfälle von",
"Recurring Deposit Account Charges": "Wiederkehrende Kontogebühren",
"Recurring Deposit Account Interest Rate Chart": "Zinssatztabelle für wiederkehrende Einlagenkonten",
"Recurring Deposit Account Standing Instructions": "Anweisungen zum Kontostand für wiederkehrende Einlagen",
Expand All @@ -2954,6 +2961,7 @@
"Reports": "Berichte",
"Reschedule Loan": "Darlehen umschulden",
"Revert this transaction?": "Sind Sie sicher, dass Sie diese Transaktion rückgängig machen möchten?",
"row": "Reihe",
"Roles and Permissions": "Rollen und Berechtigungen",
"Roles and Permissions allow the administrator to control access": "Mit Rollen und Berechtigungen kann der Administrator den Zugriff auf Mifos basierend auf den den Benutzern zugewiesenen Rollen und den den Rollen zugewiesenen Berechtigungen steuern.",
"S3 Amazon Service Configuration": "S3 Amazon Service-Konfiguration",
Expand All @@ -2977,6 +2985,7 @@
"Search by Text": "Suche nach Text",
"Search by user": "Suche nach Benutzern",
"Section Buttons": "Dieser Abschnitt enthält den Benutzernamen, das Benutzerfoto, die Benutzereinstellungen und die Schaltfläche zum Abmelden.",
"select": "wählen",
"Selection you can create new drop-downs and edit": "Von dieser Auswahl aus können Sie neue Dropdowns erstellen und deren Werte bearbeiten sowie die Werte für vom System generierte Codes und Dropdowns bearbeiten.",
"Self Service": "Selbstbedienung",
"Self Service App Configuration": "Self-Service-App-Konfiguration",
Expand Down Expand Up @@ -3008,6 +3017,7 @@
"Standing Instructions": "Ständige Anweisungen",
"Standing Instructions History": "Ständige Anweisungen Geschichte",
"Start filling the details": "Klicken Sie hier, um mit dem Ausfüllen der Details zu beginnen. * Markierungsfelder sind erforderlich.",
"Step": "Schritt",
"Supports Loan charges, Savings & deposits": "Mit dieser Option können Sie neue Gebühren erstellen. Es unterstützt Kreditgebühren, Spar- und Einlagengebühren sowie Kundengebühren.",
"System": "System",
"Table": "Tisch",
Expand Down
Loading

0 comments on commit b2a1848

Please sign in to comment.