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

@@ -20,8 +20,8 @@ import { IInstantiationService, ServicesAccessor } from 'vs/platform/instantiati
import { INotificationService } from 'vs/platform/notification/common/notification';
export class ProfilerConnect extends Action {
private static readonly ConnectText = nls.localize('profilerAction.connect', 'Connect');
private static readonly DisconnectText = nls.localize('profilerAction.disconnect', 'Disconnect');
private static readonly ConnectText = nls.localize('profilerAction.connect', "Connect");
private static readonly DisconnectText = nls.localize('profilerAction.disconnect', "Disconnect");
public static ID = 'profiler.connect';
public static LABEL = ProfilerConnect.ConnectText;
@@ -103,8 +103,8 @@ export class ProfilerCreate extends Action {
}
export class ProfilerPause extends Action {
private static readonly PauseText = nls.localize('profilerAction.pauseCapture', 'Pause');
private static readonly ResumeText = nls.localize('profilerAction.resumeCapture', 'Resume');
private static readonly PauseText = nls.localize('profilerAction.pauseCapture', "Pause");
private static readonly ResumeText = nls.localize('profilerAction.resumeCapture', "Resume");
private static readonly PauseCssClass = 'sql pause';
private static readonly ResumeCssClass = 'sql continue';
@@ -170,8 +170,8 @@ export class ProfilerClear extends Action {
}
export class ProfilerAutoScroll extends Action {
private static readonly AutoScrollOnText = nls.localize('profilerAction.autoscrollOn', 'Auto Scroll: On');
private static readonly AutoScrollOffText = nls.localize('profilerAction.autoscrollOff', 'Auto Scroll: Off');
private static readonly AutoScrollOnText = nls.localize('profilerAction.autoscrollOn', "Auto Scroll: On");
private static readonly AutoScrollOffText = nls.localize('profilerAction.autoscrollOff', "Auto Scroll: Off");
private static readonly CheckedCssClass = 'sql checked';
public static ID = 'profiler.autoscroll';
@@ -268,7 +268,7 @@ export class ProfilerFindPrevious implements IEditorAction {
export class NewProfilerAction extends Task {
public static readonly ID = 'profiler.newProfiler';
public static readonly LABEL = nls.localize('profilerAction.newProfiler', 'Launch Profiler');
public static readonly LABEL = nls.localize('profilerAction.newProfiler', "Launch Profiler");
public static readonly ICON = 'profile';
private _connectionProfile: ConnectionProfile;

View File

@@ -318,7 +318,7 @@ export class ProfilerColumnEditorDialog extends Modal {
@IClipboardService clipboardService: IClipboardService,
@ILogService logService: ILogService
) {
super(nls.localize('profilerColumnDialog.profiler', 'Profiler'), TelemetryKeys.Profiler, telemetryService, layoutService, clipboardService, themeService, logService, contextKeyService);
super(nls.localize('profilerColumnDialog.profiler', "Profiler"), TelemetryKeys.Profiler, telemetryService, layoutService, clipboardService, themeService, logService, contextKeyService);
}
public render(): void {

View File

@@ -228,7 +228,7 @@ export class ProfilerEditor extends BaseEditor {
this._clearFilterAction.enabled = true;
this._viewTemplates = this._profilerService.getViewTemplates();
this._viewTemplateSelector = new SelectBox(this._viewTemplates.map(i => i.name), 'Standard View', this._contextViewService);
this._viewTemplateSelector.setAriaLabel(nls.localize('profiler.viewSelectAccessibleName', 'Select View'));
this._viewTemplateSelector.setAriaLabel(nls.localize('profiler.viewSelectAccessibleName', "Select View"));
this._register(this._viewTemplateSelector.onDidSelect(e => {
if (this.input) {
this.input.viewTemplate = this._viewTemplates.find(i => i.name === e.selected);
@@ -241,7 +241,7 @@ export class ProfilerEditor extends BaseEditor {
this._sessionsList = [''];
this._sessionSelector = new SelectBox(this._sessionsList, '', this._contextViewService);
this._sessionSelector.setAriaLabel(nls.localize('profiler.sessionSelectAccessibleName', 'Select Session'));
this._sessionSelector.setAriaLabel(nls.localize('profiler.sessionSelectAccessibleName', "Select Session"));
this._register(this._sessionSelector.onDidSelect(e => {
if (this.input) {
this.input.sessionName = e.selected;
@@ -259,7 +259,7 @@ export class ProfilerEditor extends BaseEditor {
this._actionBar.setContent([
{ action: this._createAction },
{ element: Taskbar.createTaskbarSeparator() },
{ element: this._createTextElement(nls.localize('profiler.sessionSelectLabel', 'Select Session:')) },
{ element: this._createTextElement(nls.localize('profiler.sessionSelectLabel', "Select Session:")) },
{ element: sessionsContainer },
{ action: this._startAction },
{ action: this._stopAction },
@@ -268,7 +268,7 @@ export class ProfilerEditor extends BaseEditor {
{ action: this._filterAction },
{ action: this._clearFilterAction },
{ element: Taskbar.createTaskbarSeparator() },
{ element: this._createTextElement(nls.localize('profiler.viewSelectLabel', 'Select View:')) },
{ element: this._createTextElement(nls.localize('profiler.viewSelectLabel', "Select View:")) },
{ element: viewTemplateContainer },
{ action: this._autoscrollAction },
{ action: this._instantiationService.createInstance(Actions.ProfilerClear, Actions.ProfilerClear.ID, Actions.ProfilerClear.LABEL) }

View File

@@ -127,7 +127,7 @@ export class ProfilerInput extends EditorInput implements IProfilerSession {
}
public getName(): string {
let name: string = nls.localize('profilerInput.profiler', 'Profiler');
let name: string = nls.localize('profilerInput.profiler', "Profiler");
if (!this.connection) {
return name;
}
@@ -287,9 +287,9 @@ export class ProfilerInput extends EditorInput implements IProfilerSession {
return this._dialogService.show(Severity.Warning,
nls.localize('confirmStopProfilerSession', "Would you like to stop the running XEvent session?"),
[
nls.localize('profilerClosingActions.yes', 'Yes'),
nls.localize('profilerClosingActions.no', 'No'),
nls.localize('profilerClosingActions.cancel', 'Cancel')
nls.localize('profilerClosingActions.yes', "Yes"),
nls.localize('profilerClosingActions.no', "No"),
nls.localize('profilerClosingActions.cancel', "Cancel")
]).then((selection: number) => {
if (selection === 0) {
this._profilerService.stopSession(this.id);

View File

@@ -87,7 +87,7 @@ export class ProfilerResourceEditor extends BaseTextEditor {
}
protected getAriaLabel(): string {
return nls.localize('profilerTextEditorAriaLabel', 'Profiler editor for event text. Readonly');
return nls.localize('profilerTextEditorAriaLabel', "Profiler editor for event text. Readonly");
}
public layout(dimension: DOM.Dimension) {