diff --git a/extensions/resource-deployment/src/ui/deployClusterWizard/pages/clusterSettingsPage.ts b/extensions/resource-deployment/src/ui/deployClusterWizard/pages/clusterSettingsPage.ts index af622b9fc6..bb32f6ea88 100644 --- a/extensions/resource-deployment/src/ui/deployClusterWizard/pages/clusterSettingsPage.ts +++ b/extensions/resource-deployment/src/ui/deployClusterWizard/pages/clusterSettingsPage.ts @@ -353,7 +353,7 @@ export class ClusterSettingsPage extends ResourceTypePage { if (messages.length > 0) { this._model.wizard.wizardObject.message = { - text: messages.length === 1 ? messages[0] : localize('deployCluster.ValidationError', "There are some errors on this page, click 'Show Details' to view the errors."), + text: messages.length === 1 ? messages[0] : localizedConstants.multipleValidationErrors, description: messages.length === 1 ? undefined : messages.join(EOL), level: azdata.window.MessageLevel.Error }; diff --git a/extensions/resource-deployment/src/ui/notebookWizard/notebookWizardPage.ts b/extensions/resource-deployment/src/ui/notebookWizard/notebookWizardPage.ts index 7de206256f..9626d8f020 100644 --- a/extensions/resource-deployment/src/ui/notebookWizard/notebookWizardPage.ts +++ b/extensions/resource-deployment/src/ui/notebookWizard/notebookWizardPage.ts @@ -5,14 +5,12 @@ import * as azdata from 'azdata'; import { EOL } from 'os'; import * as vscode from 'vscode'; -import * as nls from 'vscode-nls'; import { InitialVariableValues, NotebookWizardPageInfo } from '../../interfaces'; import { initializeWizardPage, InputComponent, InputComponentInfo, setModelValues, Validator } from '../modelViewUtils'; import { ResourceTypePage } from '../resourceTypePage'; import { WizardPageInfo } from '../wizardPageInfo'; import { NotebookWizardModel } from './notebookWizardModel'; - -const localize = nls.loadMessageBundle(); +import * as loc from '../../localizedConstants'; export class NotebookWizardPage extends ResourceTypePage { @@ -135,10 +133,7 @@ export class NotebookWizardPage extends ResourceTypePage { this.wizard.wizardObject.message = { text: messages.length === 1 ? messages[0] - : localize( - "wizardPage.ValidationError", - "There are some errors on this page, click 'Show Details' to view the errors." - ), + : loc.multipleValidationErrors, description: messages.length === 1 ? undefined : messages.join(EOL), level: azdata.window.MessageLevel.Error, }; diff --git a/src/sql/workbench/browser/modal/modal.ts b/src/sql/workbench/browser/modal/modal.ts index a7fae9aa1c..5408a19139 100644 --- a/src/sql/workbench/browser/modal/modal.ts +++ b/src/sql/workbench/browser/modal/modal.ts @@ -582,6 +582,11 @@ export abstract class Modal extends Disposable implements IThemable { } DOM.removeNode(this._messageDetail!); this.messagesElementVisible = !!this._messageSummaryText; + // Read out the description to screen readers so they don't have to + // search around for the alert box to hear the extra information + if (description) { + alert(description); + } this.updateExpandMessageState(); } }