From: Galen Charlton Date: Fri, 28 Apr 2023 20:30:25 +0000 (+0000) Subject: LP#1977554: (follow-up) tag new strings for translations X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4340c884fbb96bc31ca29484f1bf9defc13b3c34;p=Evergreen.git LP#1977554: (follow-up) tag new strings for translations Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/login.component.ts b/Open-ILS/src/eg2/src/app/staff/login.component.ts index fc0d58c47a..2dd918c851 100644 --- a/Open-ILS/src/eg2/src/app/staff/login.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/login.component.ts @@ -25,7 +25,7 @@ export class StaffLoginComponent implements OnInit { routeTo: string; pendingXactsDate: Date; passwordVisible: boolean; - ariaDescription: string = 'Your password is not visible.'; + ariaDescription: string = $localize`Your password is not visible.`; args = { username : '', @@ -134,8 +134,8 @@ export class StaffLoginComponent implements OnInit { togglePasswordVisibility() { this.passwordVisible = !this.passwordVisible; - if(this.passwordVisible) this.ariaDescription = "Your password is visible!"; - else this.ariaDescription = "Your password is not visible."; + if(this.passwordVisible) this.ariaDescription = $localize`Your password is visible!`; + else this.ariaDescription = $localize`Your password is not visible.`; this.passwordInput.nativeElement.focus(); } diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/base.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/base.tt2 index b1edba6be0..a2ad6b1351 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/base.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/base.tt2 @@ -74,12 +74,12 @@ input.type = 'text'; icon.setAttribute('class', 'fas fa-eye'); btn.setAttribute('aria-checked', 'true'); - input.setAttribute('aria-description', 'Your password is visible!'); + input.setAttribute('aria-description', "[% l('Your password is visible!') %]"); }else { input.type = 'password'; icon.setAttribute('class', 'fas fa-eye-slash'); btn.setAttribute('aria-checked', 'false'); - input.setAttribute('aria-description', 'Your password is not visible.'); + input.setAttribute('aria-description', "[% l('Your password is not visible.') %]"); } input.focus(); }); diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2 index 058ad86b6a..53b67a20b1 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2 @@ -40,7 +40,7 @@
+ spellcheck="false" autocomplete="false" autocapitalize="none" aria-description="[% l('Your password is not visible.') %]"/> diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2 index c4ad6a9037..9d9f610fbc 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2 @@ -47,7 +47,7 @@
+ spellcheck="false" autocomplete="false" autocapitalize="none" aria-description="[% l('Your password is not visible.') %]"/> @@ -83,16 +83,16 @@ input.type = 'text'; icon.setAttribute('class', 'glyphicon glyphicon-eye-open'); btn.setAttribute('aria-checked', 'true'); - input.setAttribute('aria-description', 'Your password is visible!'); + input.setAttribute('aria-description', "[% l('Your password is visible!') %]"); }else { input.type = 'password'; icon.setAttribute('class', 'glyphicon glyphicon-eye-close'); btn.setAttribute('aria-checked', 'false'); - input.setAttribute('aria-description', 'Your password is not visible.'); + input.setAttribute('aria-description', "[% l('Your password is not visible.') %]"); } input.focus(); }); $('#login_form').submit(()=>{ input.type='password'; }); - \ No newline at end of file +