mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 09:42:34 -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:
@@ -25,7 +25,7 @@ import { UNSAVED_GROUP_ID } from 'sql/platform/connection/common/constants';
|
||||
export class RefreshAction extends Action {
|
||||
|
||||
public static ID = 'objectExplorer.refresh';
|
||||
public static LABEL = localize('connectionTree.refresh', 'Refresh');
|
||||
public static LABEL = localize('connectionTree.refresh', "Refresh");
|
||||
private _tree: ITree;
|
||||
|
||||
constructor(
|
||||
@@ -85,7 +85,7 @@ export class RefreshAction extends Action {
|
||||
|
||||
export class DisconnectConnectionAction extends Action {
|
||||
public static ID = 'objectExplorer.disconnect';
|
||||
public static LABEL = localize('DisconnectAction', 'Disconnect');
|
||||
public static LABEL = localize('DisconnectAction', "Disconnect");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -129,7 +129,7 @@ export class DisconnectConnectionAction extends Action {
|
||||
*/
|
||||
export class AddServerAction extends Action {
|
||||
public static ID = 'registeredServers.addConnection';
|
||||
public static LABEL = localize('connectionTree.addConnection', 'New Connection');
|
||||
public static LABEL = localize('connectionTree.addConnection', "New Connection");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -168,7 +168,7 @@ export class AddServerAction extends Action {
|
||||
*/
|
||||
export class AddServerGroupAction extends Action {
|
||||
public static ID = 'registeredServers.addServerGroup';
|
||||
public static LABEL = localize('connectionTree.addServerGroup', 'New Server Group');
|
||||
public static LABEL = localize('connectionTree.addServerGroup', "New Server Group");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -190,7 +190,7 @@ export class AddServerGroupAction extends Action {
|
||||
*/
|
||||
export class EditServerGroupAction extends Action {
|
||||
public static ID = 'registeredServers.editServerGroup';
|
||||
public static LABEL = localize('connectionTree.editServerGroup', 'Edit Server Group');
|
||||
public static LABEL = localize('connectionTree.editServerGroup', "Edit Server Group");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -213,10 +213,10 @@ export class EditServerGroupAction extends Action {
|
||||
*/
|
||||
export class ActiveConnectionsFilterAction extends Action {
|
||||
public static ID = 'registeredServers.recentConnections';
|
||||
public static LABEL = localize('activeConnections', 'Show Active Connections');
|
||||
public static LABEL = localize('activeConnections', "Show Active Connections");
|
||||
private static enabledClass = 'active-connections-action';
|
||||
private static disabledClass = 'icon server-page';
|
||||
private static showAllConnectionsLabel = localize('showAllConnections', 'Show All Connections');
|
||||
private static showAllConnectionsLabel = localize('showAllConnections', "Show All Connections");
|
||||
private _isSet: boolean;
|
||||
public static readonly ACTIVE = 'active';
|
||||
public get isSet(): boolean {
|
||||
@@ -263,7 +263,7 @@ export class ActiveConnectionsFilterAction extends Action {
|
||||
*/
|
||||
export class RecentConnectionsFilterAction extends Action {
|
||||
public static ID = 'registeredServers.recentConnections';
|
||||
public static LABEL = localize('recentConnections', 'Recent Connections');
|
||||
public static LABEL = localize('recentConnections', "Recent Connections");
|
||||
private static enabledClass = 'recent-connections-action';
|
||||
private static disabledClass = 'recent-connections-action-set';
|
||||
private _isSet: boolean;
|
||||
@@ -306,7 +306,7 @@ export class RecentConnectionsFilterAction extends Action {
|
||||
|
||||
export class NewQueryAction extends Action {
|
||||
public static ID = 'registeredServers.newQuery';
|
||||
public static LABEL = localize('registeredServers.newQuery', 'New Query');
|
||||
public static LABEL = localize('registeredServers.newQuery', "New Query");
|
||||
private _connectionProfile: IConnectionProfile;
|
||||
get connectionProfile(): IConnectionProfile {
|
||||
return this._connectionProfile;
|
||||
@@ -343,8 +343,8 @@ export class NewQueryAction extends Action {
|
||||
*/
|
||||
export class DeleteConnectionAction extends Action {
|
||||
public static ID = 'registeredServers.deleteConnection';
|
||||
public static DELETE_CONNECTION_LABEL = localize('deleteConnection', 'Delete Connection');
|
||||
public static DELETE_CONNECTION_GROUP_LABEL = localize('deleteConnectionGroup', 'Delete Group');
|
||||
public static DELETE_CONNECTION_LABEL = localize('deleteConnection', "Delete Connection");
|
||||
public static DELETE_CONNECTION_GROUP_LABEL = localize('deleteConnectionGroup', "Delete Group");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
|
||||
@@ -81,7 +81,7 @@ export class OEAction extends ExecuteCommandAction {
|
||||
|
||||
export class ManageConnectionAction extends Action {
|
||||
public static ID = 'objectExplorer.manage';
|
||||
public static LABEL = localize('ManageAction', 'Manage');
|
||||
public static LABEL = localize('ManageAction', "Manage");
|
||||
|
||||
private _treeSelectionHandler: TreeSelectionHandler;
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ export class ServerGroupDialog extends Modal {
|
||||
@IClipboardService clipboardService: IClipboardService,
|
||||
@ILogService logService: ILogService
|
||||
) {
|
||||
super(localize('ServerGroupsDialogTitle', 'Server Groups'), TelemetryKeys.ServerGroups, telemetryService, layoutService, clipboardService, themeService, logService, contextKeyService);
|
||||
super(localize('ServerGroupsDialogTitle', "Server Groups"), TelemetryKeys.ServerGroups, telemetryService, layoutService, clipboardService, themeService, logService, contextKeyService);
|
||||
}
|
||||
|
||||
public render() {
|
||||
|
||||
@@ -225,7 +225,7 @@ export class ServerTreeRenderer implements IRenderer {
|
||||
|
||||
let label = connection.title;
|
||||
if (!connection.isConnectionOptionsValid) {
|
||||
label = localize('loading', 'Loading...');
|
||||
label = localize('loading', "Loading...");
|
||||
}
|
||||
|
||||
templateData.label.textContent = label;
|
||||
|
||||
@@ -90,7 +90,7 @@ export class OEShimService extends Disposable implements IOEShimService {
|
||||
resolve(connProfile);
|
||||
},
|
||||
onConnectCanceled: () => {
|
||||
reject(new Error(localize('loginCanceled', 'User canceled')));
|
||||
reject(new Error(localize('loginCanceled', "User canceled")));
|
||||
},
|
||||
onConnectReject: undefined,
|
||||
onConnectStart: undefined,
|
||||
|
||||
@@ -21,7 +21,7 @@ const serverGroupConfig: IConfigurationNode = {
|
||||
[SERVER_GROUP_CONFIG + '.' + SERVER_GROUP_COLORS_CONFIG]: <IJSONSchema>{
|
||||
type: 'array',
|
||||
items: 'string',
|
||||
'description': localize('serverGroup.colors', 'Server Group color palette used in the Object Explorer viewlet.'),
|
||||
'description': localize('serverGroup.colors', "Server Group color palette used in the Object Explorer viewlet."),
|
||||
default: [
|
||||
'#A1634D',
|
||||
'#7F0000',
|
||||
@@ -35,7 +35,7 @@ const serverGroupConfig: IConfigurationNode = {
|
||||
},
|
||||
[SERVER_GROUP_CONFIG + '.' + SERVER_GROUP_AUTOEXPAND_CONFIG]: {
|
||||
'type': 'boolean',
|
||||
'description': localize('serverGroup.autoExpand', 'Auto-expand Server Groups in the Object Explorer viewlet.'),
|
||||
'description': localize('serverGroup.autoExpand', "Auto-expand Server Groups in the Object Explorer viewlet."),
|
||||
'default': 'true'
|
||||
},
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@ export class ServerGroupViewModel {
|
||||
|
||||
private _domainModel: IConnectionProfileGroup;
|
||||
private _editMode: boolean;
|
||||
private readonly _addServerGroupTitle: string = localize('serverGroup.addServerGroup', 'Add server group');
|
||||
private readonly _editServerGroupTitle: string = localize('serverGroup.editServerGroup', 'Edit server group');
|
||||
private readonly _addServerGroupTitle: string = localize('serverGroup.addServerGroup', "Add server group");
|
||||
private readonly _editServerGroupTitle: string = localize('serverGroup.editServerGroup', "Edit server group");
|
||||
private readonly _defaultColor: string = '#515151';
|
||||
|
||||
constructor(domainModel?: IConnectionProfileGroup, colors?: string[]) {
|
||||
|
||||
Reference in New Issue
Block a user