mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix duplicate localization ids (#803)
* Add sqlops-core loc project * Fix duplicate ids step 1 * Merge duplicate id changes. * A few more duplicate ids
This commit is contained in:
@@ -24,7 +24,7 @@ import { IInstantiationService, ServicesAccessor } from 'vs/platform/instantiati
|
||||
|
||||
export class ProfilerConnect extends Action {
|
||||
public static ID = 'profiler.connect';
|
||||
public static LABEL = nls.localize('connect', "Connect");
|
||||
public static LABEL = nls.localize('profiler.connect', "Connect");
|
||||
|
||||
private _connected: boolean = false;
|
||||
|
||||
@@ -57,7 +57,7 @@ export class ProfilerConnect extends Action {
|
||||
public set connected(value: boolean) {
|
||||
this._connected = value;
|
||||
this._setClass(value ? 'disconnect' : 'connect');
|
||||
this._setLabel(value ? nls.localize('disconnect', 'Disconnected') : nls.localize('connect', "Connect"));
|
||||
this._setLabel(value ? nls.localize('profilerAction.disconnect', 'Disconnected') : nls.localize('profilerAction.connect', "Connect"));
|
||||
}
|
||||
|
||||
public get connected(): boolean {
|
||||
@@ -108,7 +108,7 @@ export class ProfilerPause extends Action {
|
||||
|
||||
export class ProfilerStop extends Action {
|
||||
public static ID = 'profiler.stop';
|
||||
public static LABEL = nls.localize('stop', "Stop");
|
||||
public static LABEL = nls.localize('profilerStop.stop', "Stop");
|
||||
|
||||
constructor(
|
||||
id: string, label: string,
|
||||
@@ -229,7 +229,7 @@ export class ProfilerFindPrevious implements IEditorAction {
|
||||
|
||||
export class NewProfilerAction extends Task {
|
||||
public static readonly ID = 'newProfiler';
|
||||
public static readonly LABEL = nls.localize('newProfiler', 'New Profiler');
|
||||
public static readonly LABEL = nls.localize('profilerAction.newProfiler', 'New Profiler');
|
||||
public static readonly ICON = 'profile';
|
||||
|
||||
private _connectionProfile: ConnectionProfile;
|
||||
|
||||
@@ -17,7 +17,7 @@ import { IConnectionProfile } from 'sql/parts/connection/common/interfaces';
|
||||
|
||||
export class GlobalNewProfilerAction extends Action {
|
||||
public static ID = 'explorer.newProfiler';
|
||||
public static LABEL = nls.localize('newProfiler', "New Profiler");
|
||||
public static LABEL = nls.localize('profilerWorkbenchAction.newProfiler', "New Profiler");
|
||||
|
||||
constructor(
|
||||
id: string, label: string,
|
||||
|
||||
@@ -316,14 +316,14 @@ export class ProfilerColumnEditorDialog extends Modal {
|
||||
@ITelemetryService telemetryService: ITelemetryService,
|
||||
@IContextKeyService contextKeyService: IContextKeyService
|
||||
) {
|
||||
super(nls.localize('profiler', 'Profiler'), TelemetryKeys.Profiler, _partService, telemetryService, contextKeyService);
|
||||
super(nls.localize('profilerColumnDialog.profiler', 'Profiler'), TelemetryKeys.Profiler, _partService, telemetryService, contextKeyService);
|
||||
}
|
||||
|
||||
public render(): void {
|
||||
super.render();
|
||||
this._register(attachModalDialogStyler(this, this._themeService));
|
||||
this.addFooterButton(nls.localize('ok', "OK"), () => this.onAccept(undefined));
|
||||
this.addFooterButton(nls.localize('cancel', "Cancel"), () => this.onClose(undefined));
|
||||
this.addFooterButton(nls.localize('profilerColumnDialog.ok', "OK"), () => this.onAccept(undefined));
|
||||
this.addFooterButton(nls.localize('profilerColumnDialog.cancel', "Cancel"), () => this.onClose(undefined));
|
||||
}
|
||||
|
||||
protected renderBody(container: HTMLElement): void {
|
||||
|
||||
@@ -275,7 +275,7 @@ export class ProfilerEditor extends BaseEditor {
|
||||
},
|
||||
{
|
||||
id: 'value',
|
||||
name: nls.localize('value', "Value"),
|
||||
name: nls.localize('profilerEditor.value', "Value"),
|
||||
field: 'value'
|
||||
}
|
||||
], { forceFitColumns: true });
|
||||
|
||||
@@ -88,7 +88,7 @@ export class ProfilerInput extends EditorInput implements IProfilerSession {
|
||||
}
|
||||
|
||||
public getName(): string {
|
||||
return nls.localize('profiler', 'Profiler');
|
||||
return nls.localize('profilerInput.profiler', 'Profiler');
|
||||
}
|
||||
|
||||
public get data(): TableDataView<Slick.SlickData> {
|
||||
|
||||
Reference in New Issue
Block a user