Skip to content

Commit

Permalink
minor NLS update
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Grant <[email protected]>
  • Loading branch information
Colin Grant committed Nov 22, 2021
1 parent 87a0ddb commit 7dd7451
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,12 @@ export class TerminalFrontendContribution implements FrontendApplicationContribu

protected async confirmExitWithActiveTerminals(activeTerminalCount: number): Promise<boolean> {
const msg = activeTerminalCount === 1
? nls.localizeByDefault('Do you want to terminate the active terminal session?')
: nls.localizeByDefault('Do you want to terminate the {0} active terminal sessions?', activeTerminalCount);
? nls.localize('theia/terminal/terminateActive', 'Do you want to terminate the active terminal session?')
: nls.localize('theia/terminal/terminateActiveMultiple', 'Do you want to terminate the {0} active terminal sessions?', activeTerminalCount);
const safeToExit = await new ConfirmDialog({
title: '',
msg,
ok: nls.localizeByDefault('Terminate'),
ok: nls.localize('theia/terminal/terminate', 'Terminate'),
cancel: Dialog.CANCEL,
}).open();
return safeToExit === true;
Expand Down

0 comments on commit 7dd7451

Please sign in to comment.