@@ -485,23 +485,26 @@ class AccessibilityCheckerHighlight {
485485 //issueElement.focus();
486486
487487 if ( ! this . checkVisibility ( tooltip ) || ! this . checkVisibility ( element ) ) {
488- this . currentIssueStatus = 'The element is not visible. Try disabling styles.' ;
488+ this . currentIssueStatus = __ ( 'The element is not visible. Try disabling styles.' , 'accessibility-checker' ) ;
489489 if ( window . edacDebug ) {
490- console . log ( `EDAC: Element with id ${ id } is not visible!` ) ;
490+ // eslint-disable-next-line no-console
491+ console . log ( __ ( 'EDAC: Element with id %s is not visible!' , 'accessibility-checker' ) . replace ( '%s' , `${ id } ` ) ) ;
491492 }
492493 } else {
493494 this . currentIssueStatus = null ;
494495 }
495496 } else {
496- this . currentIssueStatus = 'The element is not focusable. Try disabling styles.' ;
497+ this . currentIssueStatus = __ ( 'The element is not focusable. Try disabling styles.' , 'accessibility-checker' ) ;
497498 if ( window . edacDebug ) {
498- console . log ( `EDAC: Element with id ${ id } is not focusable!` ) ;
499+ // eslint-disable-next-line no-console
500+ console . log ( __ ( 'EDAC: Element with id %s is not focusable!' , 'accessibility-checker' ) . replace ( '%s' , `${ id } ` ) ) ;
499501 }
500502 }
501503 } else {
502- this . currentIssueStatus = 'The element was not found on the page.' ;
504+ this . currentIssueStatus = __ ( 'The element was not found on the page.' , 'accessibility-checker' ) ;
503505 if ( window . edacDebug ) {
504- console . log ( `EDAC: Element with id ${ id } not found in the document!` ) ;
506+ // eslint-disable-next-line no-console
507+ console . log ( __ ( 'EDAC: Element with id %s not found in the document!' , 'accessibility-checker' ) . replace ( '%s' , `${ id } ` ) ) ;
505508 }
506509 }
507510
0 commit comments