mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 01:25:38 -05:00
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:
@@ -28,12 +28,12 @@ import { IWorkbenchLayoutService } from 'vs/workbench/services/layout/browser/la
|
||||
|
||||
export const MODAL_SHOWING_KEY = 'modalShowing';
|
||||
export const MODAL_SHOWING_CONTEXT = new RawContextKey<Array<string>>(MODAL_SHOWING_KEY, []);
|
||||
const INFO_ALT_TEXT = localize('infoAltText', 'Information');
|
||||
const WARNING_ALT_TEXT = localize('warningAltText', 'Warning');
|
||||
const ERROR_ALT_TEXT = localize('errorAltText', 'Error');
|
||||
const SHOW_DETAILS_TEXT = localize('showMessageDetails', 'Show Details');
|
||||
const COPY_TEXT = localize('copyMessage', 'Copy');
|
||||
const CLOSE_TEXT = localize('closeMessage', 'Close');
|
||||
const INFO_ALT_TEXT = localize('infoAltText', "Information");
|
||||
const WARNING_ALT_TEXT = localize('warningAltText', "Warning");
|
||||
const ERROR_ALT_TEXT = localize('errorAltText', "Error");
|
||||
const SHOW_DETAILS_TEXT = localize('showMessageDetails', "Show Details");
|
||||
const COPY_TEXT = localize('copyMessage', "Copy");
|
||||
const CLOSE_TEXT = localize('closeMessage', "Close");
|
||||
const MESSAGE_EXPANDED_MODE_CLASS = 'expanded';
|
||||
|
||||
export interface IModalDialogStyles {
|
||||
@@ -300,7 +300,7 @@ export abstract class Modal extends Disposable implements IThemable {
|
||||
private toggleMessageDetail() {
|
||||
const isExpanded = DOM.hasClass(this._messageSummary, MESSAGE_EXPANDED_MODE_CLASS);
|
||||
DOM.toggleClass(this._messageSummary, MESSAGE_EXPANDED_MODE_CLASS, !isExpanded);
|
||||
this._toggleMessageDetailButton.label = isExpanded ? SHOW_DETAILS_TEXT : localize('hideMessageDetails', 'Hide Details');
|
||||
this._toggleMessageDetailButton.label = isExpanded ? SHOW_DETAILS_TEXT : localize('hideMessageDetails', "Hide Details");
|
||||
|
||||
if (this._messageDetailText) {
|
||||
if (isExpanded) {
|
||||
|
||||
@@ -106,8 +106,8 @@ export class OptionsDialog extends Modal {
|
||||
this.backButton.onDidClick(() => this.cancel());
|
||||
attachButtonStyler(this.backButton, this._themeService, { buttonBackground: SIDE_BAR_BACKGROUND, buttonHoverBackground: SIDE_BAR_BACKGROUND });
|
||||
}
|
||||
let okButton = this.addFooterButton(localize('optionsDialog.ok', 'OK'), () => this.ok());
|
||||
let closeButton = this.addFooterButton(this.options.cancelLabel || localize('optionsDialog.cancel', 'Cancel'), () => this.cancel());
|
||||
let okButton = this.addFooterButton(localize('optionsDialog.ok', "OK"), () => this.ok());
|
||||
let closeButton = this.addFooterButton(this.options.cancelLabel || localize('optionsDialog.cancel', "Cancel"), () => this.cancel());
|
||||
// Theme styler
|
||||
attachButtonStyler(okButton, this._themeService);
|
||||
attachButtonStyler(closeButton, this._themeService);
|
||||
|
||||
@@ -25,8 +25,8 @@ export function createOptionElement(option: azdata.ServiceOption, rowContainer:
|
||||
let optionValue = getOptionValueAndCategoryValues(option, options, possibleInputs);
|
||||
let optionWidget: any;
|
||||
let inputElement: HTMLElement;
|
||||
let missingErrorMessage = localize('optionsDialog.missingRequireField', ' is required.');
|
||||
let invalidInputMessage = localize('optionsDialog.invalidInput', 'Invalid input. Numeric value expected.');
|
||||
let missingErrorMessage = localize('optionsDialog.missingRequireField', " is required.");
|
||||
let invalidInputMessage = localize('optionsDialog.invalidInput', "Invalid input. Numeric value expected.");
|
||||
|
||||
if (option.valueType === ServiceOptionType.number) {
|
||||
optionWidget = new InputBox(rowContainer, contextViewService, {
|
||||
|
||||
@@ -279,7 +279,7 @@ export abstract class ContainerBase<T> extends ComponentBase {
|
||||
} else if (!index) {
|
||||
this.items.push(new ItemDescriptor(componentDescriptor, config));
|
||||
} else {
|
||||
throw new Error(nls.localize('invalidIndex', 'The index is invalid.'));
|
||||
throw new Error(nls.localize('invalidIndex', "The index is invalid."));
|
||||
}
|
||||
this.modelStore.eventuallyRunOnComponent(componentDescriptor.id, component => component.registerEventHandler(event => {
|
||||
if (event.eventType === ComponentEventType.validityChanged) {
|
||||
|
||||
@@ -62,7 +62,7 @@ export default class InputBoxComponent extends ComponentBase implements ICompone
|
||||
return undefined;
|
||||
} else {
|
||||
return {
|
||||
content: this.inputElement.inputElement.validationMessage || nls.localize('invalidValueError', 'Invalid value'),
|
||||
content: this.inputElement.inputElement.validationMessage || nls.localize('invalidValueError', "Invalid value"),
|
||||
type: MessageType.ERROR
|
||||
};
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ import * as nls from 'vs/nls';
|
||||
`
|
||||
})
|
||||
export default class LoadingComponent extends ComponentBase implements IComponent, OnDestroy, AfterViewInit {
|
||||
private readonly _loadingTitle = nls.localize('loadingMessage', 'Loading');
|
||||
private readonly _loadingTitle = nls.localize('loadingMessage', "Loading");
|
||||
private _component: IComponentDescriptor;
|
||||
|
||||
@Input() descriptor: IComponentDescriptor;
|
||||
|
||||
@@ -17,7 +17,7 @@ import * as nls from 'vs/nls';
|
||||
`
|
||||
})
|
||||
export default class LoadingSpinner {
|
||||
private readonly _loadingTitle = nls.localize('loadingMessage', 'Loading');
|
||||
private readonly _loadingTitle = nls.localize('loadingMessage', "Loading");
|
||||
|
||||
@Input() loading: boolean;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ export class QueryTextEditor extends BaseTextEditor {
|
||||
}
|
||||
|
||||
protected getAriaLabel(): string {
|
||||
return nls.localize('queryTextEditorAriaLabel', 'modelview code editor for view model.');
|
||||
return nls.localize('queryTextEditorAriaLabel', "modelview code editor for view model.");
|
||||
}
|
||||
|
||||
public layout(dimension?: DOM.Dimension) {
|
||||
|
||||
Reference in New Issue
Block a user