LP#1977554: (follow-up) tag new strings for translations
authorGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Apr 2023 20:30:25 +0000 (20:30 +0000)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Apr 2023 20:30:25 +0000 (20:30 +0000)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/login.component.ts
Open-ILS/src/templates-bootstrap/opac/parts/base.tt2
Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2
Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2
Open-ILS/src/templates/opac/parts/js.tt2
Open-ILS/src/templates/opac/parts/login/form.tt2
Open-ILS/src/templates/staff/t_login.tt2

index fc0d58c..2dd918c 100644 (file)
@@ -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();
     }
 
index b1edba6..a2ad6b1 100755 (executable)
                         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();
                 });
index 058ad86..53b67a2 100755 (executable)
@@ -40,7 +40,7 @@
                <div class="col-sm w-50">
                        <div class="input-group">
                                <input class="form-control" id="password_field" name="password" type="password"
-                                          spellcheck="false" autocomplete="false" autocapitalize="none" aria-description="Your password is not visible."/>
+                                          spellcheck="false" autocomplete="false" autocapitalize="none" aria-description="[% l('Your password is not visible.') %]"/>
                                <button id="show_password" class="input-group-text pointer" type="button" role="checkbox">
                                        <i class="fas fa-eye-slash"></i>
                                </button>
index c4ad6a9..9d9f610 100755 (executable)
@@ -47,7 +47,7 @@
                        <div class="col-sm w-50">
                 <div class="input-group">
                     <input class="form-control" id="password_field" name="password" type="password"
-                                                  spellcheck="false" autocomplete="false" autocapitalize="none" aria-description="Your password is not visible."/>
+                                                  spellcheck="false" autocomplete="false" autocapitalize="none" aria-description="[% l('Your password is not visible.') %]"/>
                                        <span class="input-group-addon">
                       <button id="show_password" class="btn" type="button" aria-label="password visibility"
                                                          aria-checked="false" ><i class="fas fa-eye-slash"></i>
index 33df990..1ae203d 100644 (file)
     checkbox.addEventListener('change', () => {
         if(checkbox.checked){
           input.type = 'text';
-          input.setAttribute('aria-description', 'Your password is visible!');
+          input.setAttribute('aria-description', "[% l('Your password is visible!') %]");
         }
         else {
           input.type = 'password';
-          input.setAttribute('aria-description', 'Your password is not visible.');
+          input.setAttribute('aria-description', "[% l('Your password is not visible.') %]");
         }
         input.focus();
     });
index 62acac1..23a44c3 100644 (file)
@@ -59,7 +59,7 @@
             <div class="input_bg">
                 <input id="password_field" name="password" type="password"
                        spellcheck="false" autocapitalize="false" autocomplete="false"
-                       aria-description="Your password is not visible."/>
+                       aria-description="[% l('Your password is not visible.') %]"/>
             </div>
             <div id="password_visibility" class="input_bg">
                 <input id="password_visibility_checkbox" type="checkbox" />
index 19edb73..d9cc447 100644 (file)
@@ -26,7 +26,7 @@
               <div class="col-md-8">
                 <div class="input-group">
                   <input type="password" id="login-password" class="form-control"
-                    placeholder="Password" autocapitalize="none" spellcheck="false" autocomplete="false" aria-description="Your password is not visible."
+                    placeholder="Password" autocapitalize="none" spellcheck="false" autocomplete="false" aria-description="[% l('Your password is not visible.') %]"
                          ng-model="args.password"/>
                   <span class="input-group-addon">
                     <button id="show_password" type="button" role="switch" aria-label="password visibility" aria-checked="false" ><i class="glyphicon glyphicon-eye-close"></i></button>
         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'; 
     });
-</script>
\ No newline at end of file
+</script>