Skip to content

Commit 4673726

Browse files
committed
WEB-893: Replace hardcoded 'Reload Settings' strings with translate pipe in login component
1 parent f82ad09 commit 4673726

15 files changed

Lines changed: 20 additions & 7 deletions

src/app/login/login.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ <h1 class="hero-title-minimal">{{ 'APP_NAME' | translate }}</h1>
170170
mat-icon-button
171171
(click)="reloadSettings()"
172172
class="reload-button"
173-
title="Reload Settings"
174-
matTooltip="Reload Settings"
175-
attr.aria-label="Reload Settings"
173+
[title]="'labels.buttons.Reload Settings' | translate"
174+
matTooltip="{{ 'labels.buttons.Reload Settings' | translate }}"
175+
[attr.aria-label]="'labels.buttons.Reload Settings' | translate"
176176
>
177177
<mifosx-m3-icon name="refresh"></mifosx-m3-icon>
178178
</button>

src/app/login/login.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/** Angular Imports */
1010
import { Component, OnInit, OnDestroy, inject } from '@angular/core';
1111
import { Router } from '@angular/router';
12-
1312
/** rxjs Imports */
1413

1514
import { Subscription } from 'rxjs';
@@ -46,7 +45,7 @@ import { MatMenuTrigger, MatMenu, MatMenuItem } from '@angular/material/menu';
4645
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
4746
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
4847
import { M3IconComponent } from '../shared/m3-ui/m3-icon/m3-icon.component';
49-
48+
import { MatTooltip } from '@angular/material/tooltip';
5049
import { VersionService } from '../system/version.service';
5150

5251
/**
@@ -69,7 +68,8 @@ import { VersionService } from '../system/version.service';
6968
FaIconComponent,
7069
MatMenu,
7170
MatMenuItem,
72-
M3IconComponent
71+
M3IconComponent,
72+
MatTooltip
7373
]
7474
})
7575
export class LoginComponent implements OnInit, OnDestroy {

src/assets/translations/cs-CS.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@
541541
"Remove": "Odstranit",
542542
"Request OTP": "Požádejte o OTP",
543543
"Reschedule": "Přeplánovat",
544+
"Reload Settings": "Reload Settings",
544545
"Resend OTP": "Znovu odeslat jednorázové heslo",
545546
"Reset": "Resetovat",
546547
"Reset Password": "Obnovit heslo",

src/assets/translations/de-DE.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@
542542
"Remove": "Entfernen",
543543
"Request OTP": "OTP anfordern",
544544
"Reschedule": "Neu planen",
545+
"Reload Settings": "Reload Settings",
545546
"Resend OTP": "OTP erneut senden",
546547
"Reset": "Zurücksetzen",
547548
"Reset Password": "Passwort zurücksetzen",

src/assets/translations/en-US.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@
619619
"Add Entry": "Add Entry",
620620
"PRINT": "Print",
621621
"DONE": "Done",
622-
"Submitting": "Submitting"
622+
"Submitting": "Submitting",
623+
"Reload Settings": "Reload Settings"
623624
},
624625
"catalogs": {
625626
"Interest payment waiver": "Interest Payment Waiver",

src/assets/translations/es-CL.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@
542542
"Remove": "Eliminar",
543543
"Request OTP": "Solicitar OTP",
544544
"Reschedule": "Reprogramar",
545+
"Reload Settings": "Reload Settings",
545546
"Resend OTP": "Reenviar OTP",
546547
"Reset": "Reiniciar",
547548
"Reset Password": "Restablecer la contraseña",

src/assets/translations/es-MX.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@
542542
"Remove": "Eliminar",
543543
"Request OTP": "Solicitar OTP",
544544
"Reschedule": "Reprogramar",
545+
"Reload Settings": "Reload Settings",
545546
"Resend OTP": "Reenviar OTP",
546547
"Reset": "Reiniciar",
547548
"Reset Password": "Restablecer la contraseña",

src/assets/translations/fr-FR.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@
542542
"Remove": "Retirer",
543543
"Request OTP": "Demander un OTP",
544544
"Reschedule": "Reprogrammer",
545+
"Reload Settings": "Reload Settings",
545546
"Resend OTP": "Renvoyer OTP",
546547
"Reset": "Réinitialiser",
547548
"Reset Password": "réinitialiser le mot de passe",

src/assets/translations/it-IT.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@
542542
"Remove": "Rimuovere",
543543
"Request OTP": "Richiedi OTP",
544544
"Reschedule": "Riprogrammare",
545+
"Reload Settings": "Reload Settings",
545546
"Resend OTP": "Invia nuovamente OTP",
546547
"Reset": "Ripristina",
547548
"Reset Password": "Resetta la password",

src/assets/translations/ko-KO.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@
542542
"Remove": "제거하다",
543543
"Request OTP": "OTP 요청",
544544
"Reschedule": "일정 변경",
545+
"Reload Settings": "Reload Settings",
545546
"Resend OTP": "OTP 재전송",
546547
"Reset": "초기화",
547548
"Reset Password": "암호를 재설정",

0 commit comments

Comments
 (0)