@@ -80,7 +80,6 @@ export class ServerManagerView {
8080 $dndTooltip : HTMLElement ;
8181 $sidebar : Element ;
8282 $fullscreenPopup : Element ;
83- $fullscreenEscapeKey : string ;
8483 loading : Set < string > ;
8584 activeTabIndex : number ;
8685 tabs : ServerOrFunctionalTab [ ] ;
@@ -121,8 +120,10 @@ export class ServerManagerView {
121120 this . $sidebar = document . querySelector ( "#sidebar" ) ! ;
122121
123122 this . $fullscreenPopup = document . querySelector ( "#fullscreen-popup" ) ! ;
124- this . $fullscreenEscapeKey = process . platform === "darwin" ? "^⌘F" : "F11" ;
125- this . $fullscreenPopup . textContent = `Press ${ this . $fullscreenEscapeKey } to exit full screen` ;
123+ this . $fullscreenPopup . textContent = t . __ (
124+ "Press {{{exitKey}}} to exit full screen" ,
125+ { exitKey : process . platform === "darwin" ? "^⌘F" : "F11" } ,
126+ ) ;
126127
127128 this . loading = new Set ( ) ;
128129 this . activeTabIndex = - 1 ;
@@ -261,7 +262,10 @@ export class ServerManagerView {
261262 } catch ( error : unknown ) {
262263 logger . error ( error ) ;
263264 logger . error (
264- `Could not add ${ domain } . Please contact your system administrator.` ,
265+ t . __ (
266+ "Could not add {{{domain}}}. Please contact your system administrator." ,
267+ { domain} ,
268+ ) ,
265269 ) ;
266270 return false ;
267271 }
@@ -311,10 +315,7 @@ export class ServerManagerView {
311315 failedDomains . push ( org ) ;
312316 }
313317
314- const { title, content} = Messages . enterpriseOrgError (
315- domainsAdded . length ,
316- failedDomains ,
317- ) ;
318+ const { title, content} = Messages . enterpriseOrgError ( failedDomains ) ;
318319 dialog . showErrorBox ( title , content ) ;
319320 if ( DomainUtil . getDomains ( ) . length === 0 ) {
320321 // No orgs present, stop showing loading gif
@@ -795,8 +796,9 @@ export class ServerManagerView {
795796
796797 // Toggles the dnd button icon.
797798 toggleDndButton ( alert : boolean ) : void {
798- this . $dndTooltip . textContent =
799- ( alert ? "Disable" : "Enable" ) + " Do Not Disturb" ;
799+ this . $dndTooltip . textContent = alert
800+ ? t . __ ( "Disable Do Not Disturb" )
801+ : t . __ ( "Enable Do Not Disturb" ) ;
800802 const $dndIcon = this . $dndButton . querySelector ( "i" ) ! ;
801803 $dndIcon . textContent = alert ? "notifications_off" : "notifications" ;
802804
0 commit comments