Skip to content

Commit 0bbc579

Browse files
author
Benjamin Pasero
committed
1 parent 9ff319b commit 0bbc579

18 files changed

Lines changed: 22 additions & 22 deletions

File tree

src/vs/workbench/browser/actions/developerActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class LogWorkingCopiesAction extends Action {
249249

250250
// --- Actions Registration
251251

252-
const developerCategory = nls.localize('developer', "Developer");
252+
const developerCategory = nls.localize({ key: 'developer', comment: ['A developer on Code itself or someone diagnosing issues in Code'] }, "Developer");
253253
const registry = Registry.as<IWorkbenchActionRegistry>(Extensions.WorkbenchActions);
254254
registry.registerWorkbenchAction(SyncActionDescriptor.from(InspectContextKeysAction), 'Developer: Inspect Context Keys', developerCategory);
255255
registry.registerWorkbenchAction(SyncActionDescriptor.from(ToggleScreencastModeAction), 'Developer: Toggle Screencast Mode', developerCategory);

src/vs/workbench/browser/actions/windowActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ registry.registerWorkbenchAction(SyncActionDescriptor.from(OpenRecentAction, { p
344344
const viewCategory = nls.localize('view', "View");
345345
registry.registerWorkbenchAction(SyncActionDescriptor.from(ToggleFullScreenAction, { primary: KeyCode.F11, mac: { primary: KeyMod.CtrlCmd | KeyMod.WinCtrl | KeyCode.KEY_F } }), 'View: Toggle Full Screen', viewCategory);
346346

347-
const developerCategory = nls.localize('developer', "Developer");
347+
const developerCategory = nls.localize({ key: 'developer', comment: ['A developer on Code itself or someone diagnosing issues in Code'] }, "Developer");
348348
registry.registerWorkbenchAction(SyncActionDescriptor.from(ReloadWindowAction), 'Developer: Reload Window', developerCategory);
349349

350350
const helpCategory = nls.localize('help', "Help");

src/vs/workbench/browser/parts/notifications/notificationsStatus.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,18 @@ export class NotificationsStatus extends Disposable {
109109
return localize('oneNotification', "1 New Notification");
110110
}
111111

112-
return localize('notifications', "{0} New Notifications", this.newNotificationsCount);
112+
return localize({ key: 'notifications', comment: ['{0} will be replaced by a number'] }, "{0} New Notifications", this.newNotificationsCount);
113113
}
114114

115115
if (this.newNotificationsCount === 0) {
116-
return localize('noNotificationsWithProgress', "No New Notifications ({0} in progress)", notificationsInProgress);
116+
return localize({ key: 'noNotificationsWithProgress', comment: ['{0} will be replaced by a number'] }, "No New Notifications ({0} in progress)", notificationsInProgress);
117117
}
118118

119119
if (this.newNotificationsCount === 1) {
120-
return localize('oneNotificationWithProgress', "1 New Notification ({0} in progress)", notificationsInProgress);
120+
return localize({ key: 'oneNotificationWithProgress', comment: ['{0} will be replaced by a number'] }, "1 New Notification ({0} in progress)", notificationsInProgress);
121121
}
122122

123-
return localize('notificationsWithProgress', "{0} New Notifications ({0} in progress)", this.newNotificationsCount, notificationsInProgress);
123+
return localize({ key: 'notificationsWithProgress', comment: ['{0} and {1} will be replaced by a number'] }, "{0} New Notifications ({1} in progress)", this.newNotificationsCount, notificationsInProgress);
124124
}
125125

126126
update(isCenterVisible: boolean, isToastsVisible: boolean): void {

src/vs/workbench/contrib/codeEditor/browser/inspectKeybindings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ class InspectKeyMapJSON extends Action {
5353
}
5454

5555
const registry = Registry.as<IWorkbenchActionRegistry>(ActionExtensions.WorkbenchActions);
56-
registry.registerWorkbenchAction(SyncActionDescriptor.from(InspectKeyMapJSON), 'Developer: Inspect Key Mappings (JSON)', nls.localize('developer', "Developer"));
56+
registry.registerWorkbenchAction(SyncActionDescriptor.from(InspectKeyMapJSON), 'Developer: Inspect Key Mappings (JSON)', nls.localize({ key: 'developer', comment: ['A developer on Code itself or someone diagnosing issues in Code'] }, "Developer"));

src/vs/workbench/contrib/codeEditor/electron-browser/startDebugTextMate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ class StartDebugTextMate extends Action {
104104
}
105105

106106
const registry = Registry.as<IWorkbenchActionRegistry>(ActionExtensions.WorkbenchActions);
107-
registry.registerWorkbenchAction(SyncActionDescriptor.from(StartDebugTextMate), 'Start Text Mate Syntax Grammar Logging', nls.localize('developer', "Developer"));
107+
registry.registerWorkbenchAction(SyncActionDescriptor.from(StartDebugTextMate), 'Start Text Mate Syntax Grammar Logging', nls.localize({ key: 'developer', comment: ['A developer on Code itself or someone diagnosing issues in Code'] }, "Developer"));

src/vs/workbench/contrib/extensions/browser/extensions.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ actionRegistry.registerWorkbenchAction(checkForUpdatesAction, `Extensions: Check
151151
actionRegistry.registerWorkbenchAction(SyncActionDescriptor.from(EnableAutoUpdateAction), `Extensions: Enable Auto Updating Extensions`, ExtensionsLabel);
152152
actionRegistry.registerWorkbenchAction(SyncActionDescriptor.from(DisableAutoUpdateAction), `Extensions: Disable Auto Updating Extensions`, ExtensionsLabel);
153153
actionRegistry.registerWorkbenchAction(SyncActionDescriptor.from(InstallSpecificVersionOfExtensionAction), 'Install Specific Version of Extension...', ExtensionsLabel);
154-
actionRegistry.registerWorkbenchAction(SyncActionDescriptor.from(ReinstallAction), 'Reinstall Extension...', localize('developer', "Developer"));
154+
actionRegistry.registerWorkbenchAction(SyncActionDescriptor.from(ReinstallAction), 'Reinstall Extension...', localize({ key: 'developer', comment: ['A developer on Code itself or someone diagnosing issues in Code'] }, "Developer"));
155155

156156
Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
157157
.registerConfiguration({

src/vs/workbench/contrib/extensions/electron-browser/extensions.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Registry.as<IEditorInputFactoryRegistry>(EditorInputExtensions.EditorInputFactor
6060
// Global actions
6161
const actionRegistry = Registry.as<IWorkbenchActionRegistry>(WorkbenchActionExtensions.WorkbenchActions);
6262

63-
actionRegistry.registerWorkbenchAction(SyncActionDescriptor.from(ShowRuntimeExtensionsAction), 'Show Running Extensions', localize('developer', "Developer"));
63+
actionRegistry.registerWorkbenchAction(SyncActionDescriptor.from(ShowRuntimeExtensionsAction), 'Show Running Extensions', localize({ key: 'developer', comment: ['A developer on Code itself or someone diagnosing issues in Code'] }, "Developer"));
6464

6565
class ExtensionsContributions implements IWorkbenchContribution {
6666

src/vs/workbench/contrib/issue/electron-browser/issue.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if (!!product.reportIssueUrl) {
4242
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command });
4343
}
4444

45-
const developerCategory = nls.localize('developer', "Developer");
45+
const developerCategory = nls.localize({ key: 'developer', comment: ['A developer on Code itself or someone diagnosing issues in Code'] }, "Developer");
4646
workbenchActionsRegistry.registerWorkbenchAction(SyncActionDescriptor.from(OpenProcessExplorer), 'Developer: Open Process Explorer', developerCategory);
4747

4848
registerSingleton(IWorkbenchIssueService, WorkbenchIssueService, true);

src/vs/workbench/contrib/logs/common/logs.contribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
2424
import { LogsDataCleaner } from 'vs/workbench/contrib/logs/common/logsDataCleaner';
2525

2626
const workbenchActionsRegistry = Registry.as<IWorkbenchActionRegistry>(WorkbenchActionExtensions.WorkbenchActions);
27-
const devCategory = nls.localize('developer', "Developer");
27+
const devCategory = nls.localize({ key: 'developer', comment: ['A developer on Code itself or someone diagnosing issues in Code'] }, "Developer");
2828
workbenchActionsRegistry.registerWorkbenchAction(SyncActionDescriptor.from(SetLogLevelAction), 'Developer: Set Log Level...', devCategory);
2929

3030
class LogOutputChannels extends Disposable implements IWorkbenchContribution {
@@ -53,7 +53,7 @@ class LogOutputChannels extends Disposable implements IWorkbenchContribution {
5353
this.instantiationService.createInstance(LogsDataCleaner);
5454

5555
const workbenchActionsRegistry = Registry.as<IWorkbenchActionRegistry>(WorkbenchActionExtensions.WorkbenchActions);
56-
const devCategory = nls.localize('developer', "Developer");
56+
const devCategory = nls.localize({ key: 'developer', comment: ['A developer on Code itself or someone diagnosing issues in Code'] }, "Developer");
5757
workbenchActionsRegistry.registerWorkbenchAction(SyncActionDescriptor.from(OpenWindowSessionLogFileAction), 'Developer: Open Window Log File (Session)...', devCategory);
5858
}
5959

src/vs/workbench/contrib/logs/electron-browser/logs.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ import { SyncActionDescriptor } from 'vs/platform/actions/common/actions';
1010
import { OpenLogsFolderAction, OpenExtensionLogsFolderAction } from 'vs/workbench/contrib/logs/electron-browser/logsActions';
1111

1212
const workbenchActionsRegistry = Registry.as<IWorkbenchActionRegistry>(WorkbenchActionExtensions.WorkbenchActions);
13-
const devCategory = nls.localize('developer', "Developer");
13+
const devCategory = nls.localize({ key: 'developer', comment: ['A developer on Code itself or someone diagnosing issues in Code'] }, "Developer");
1414
workbenchActionsRegistry.registerWorkbenchAction(SyncActionDescriptor.from(OpenLogsFolderAction), 'Developer: Open Logs Folder', devCategory);
1515
workbenchActionsRegistry.registerWorkbenchAction(SyncActionDescriptor.from(OpenExtensionLogsFolderAction), 'Developer: Open Extension Logs Folder', devCategory);

0 commit comments

Comments
 (0)