Add double quotes for localize hygiene check (#6492)

* Add localize single quote hygiene task

* Update localize calls

* Update comment

* Fix build failures and remove test code
This commit is contained in:
Charles Gagnon
2019-07-25 10:35:14 -07:00
committed by GitHub
parent 69845b29ef
commit b2b2840990
141 changed files with 651 additions and 630 deletions

View File

@@ -50,8 +50,8 @@ export class ErrorMessageDialog extends Modal {
@ILogService logService: ILogService
) {
super('', TelemetryKeys.ErrorMessage, telemetryService, layoutService, clipboardService, themeService, logService, contextKeyService, { isFlyout: false, hasTitleIcon: true });
this._okLabel = localize('errorMessageDialog.ok', 'OK');
this._closeLabel = localize('errorMessageDialog.close', 'Close');
this._okLabel = localize('errorMessageDialog.ok', "OK");
this._closeLabel = localize('errorMessageDialog.close', "Close");
}
protected renderBody(container: HTMLElement) {
@@ -71,7 +71,7 @@ export class ErrorMessageDialog extends Modal {
}
private createCopyButton() {
let copyButtonLabel = localize('copyDetails', 'Copy details');
let copyButtonLabel = localize('copyDetails', "Copy details");
this._copyButton = this.addFooterButton(copyButtonLabel, () => this._clipboardService.writeText(this._messageDetails), 'left');
this._copyButton.icon = 'icon scriptToClipboard';
this._copyButton.element.title = copyButtonLabel;

View File

@@ -43,13 +43,13 @@ export class ErrorMessageService implements IErrorMessageService {
let defaultTitle: string;
switch (severity) {
case Severity.Error:
defaultTitle = localize('error', 'Error');
defaultTitle = localize('error', "Error");
break;
case Severity.Warning:
defaultTitle = localize('warning', 'Warning');
defaultTitle = localize('warning', "Warning");
break;
case Severity.Info:
defaultTitle = localize('info', 'Info');
defaultTitle = localize('info', "Info");
}
return defaultTitle;
}