Skip to content

Commit 65b9a94

Browse files
Some localization fixes (#4393)
1 parent 010efeb commit 65b9a94

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

package.nls.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
"cmake-tools.command.cmake.viewPackageSettings.title": "View the settings overriding your Package Preset",
1515
"cmake-tools.command.cmake.selectPackagePreset.title": "Select Package Preset",
1616
"cmake-tools.command.cmake.selectWorkflowPreset.title": "Select Workflow Preset",
17-
"cmake-tools.command.cmake.viewLog.title": "Open the CMake Tools Log File",
17+
"cmake-tools.command.cmake.viewLog.title": {
18+
"message": "Open the CMake Tools Log File",
19+
"comment": [
20+
"The text 'CMake Tools' should not be localized."
21+
]
22+
},
1823
"cmake-tools.command.cmake.logDiagnostics.title": "Log Diagnostics",
1924
"cmake-tools.command.cmake.editKits.title": "Edit User-Local CMake Kits",
2025
"cmake-tools.command.cmake.scanForKits.title": "Scan for Kits",
@@ -67,7 +72,12 @@
6772
"cmake-tools.command.cmake.selectLaunchTarget.title": "Set Launch/Debug Target",
6873
"cmake-tools.command.cmake.stop.title": "Cancel Build",
6974
"cmake-tools.command.cmake.stopAll.title": "Cancel Build for All Projects",
70-
"cmake-tools.command.cmake.resetState.title": "Reset CMake Tools Extension State (For troubleshooting)",
75+
"cmake-tools.command.cmake.resetState.title": {
76+
"message": "Reset CMake Tools Extension State (For troubleshooting)",
77+
"comment": [
78+
"The text 'CMake Tools' should not be localized."
79+
]
80+
},
7181
"cmake-tools.command.cmake.openSettings.title": "Open CMake Tools Extension Settings",
7282
"cmake-tools.command.cmake.selectActiveFolder.title": "Select Active Folder",
7383
"cmake-tools.command.cmake.outline.runUtilityTarget.title": "Run Utility",
@@ -77,7 +87,12 @@
7787
"cmake-tools.command.cmake.outline.setLaunchTarget.title": "Set Launch/Debug Target",
7888
"cmake-tools.command.cmake.outline.revealInCMakeLists.title": "Open CMakeLists.txt",
7989
"cmake-tools.command.cmake.folders.setActiveFolder.title": "Set Active Folder",
80-
"cmake-tools.configuration.title": "CMake Tools configuration",
90+
"cmake-tools.configuration.title": {
91+
"message": "CMake Tools configuration",
92+
"comment": [
93+
"The text 'CMake Tools' should not be localized."
94+
]
95+
},
8196
"cmake-tools.configuration.cmake.cmakePath.description": "Name/path of the CMake executable to use.",
8297
"cmake-tools.configuration.cmake.buildDirectory.description": "The directory where CMake build files will go.",
8398
"cmake-tools.configuration.cmake.installPrefix.description": "The directory where CMake installed files will go.",
@@ -272,7 +287,12 @@
272287
},
273288
"cmake-tools.configuration.cmake.launchBehavior.description": "Controls what happens with the launch terminal when you launch a target.",
274289
"cmake-tools.configuration.cmake.automaticReconfigure.description": "Automatically configure CMake project directories when the kit or the configuration preset is changed.",
275-
"cmake-tools.configuration.cmake.pinnedCommands.description":"List of CMake commands to always pin by default. These will appear in the CMake Tools sidebar 'Pinned Commands' section.",
290+
"cmake-tools.configuration.cmake.pinnedCommands.description": {
291+
"message": "List of CMake commands to always pin by default. These will appear in the CMake Tools sidebar 'Pinned Commands' section.",
292+
"comment": [
293+
" The text 'CMake', 'CMake Tools', and 'Pinned Commands' should not be localized."
294+
]
295+
},
276296
"cmake-tools.configuration.cmake.enableAutomaticKitScan.description": "Enable automatic scanning for kits when a kit isn't selected. This will only take affect when CMake Presets aren't being used.",
277297
"cmake-tools.configuration.cmake.preRunCoverageTarget.description": "Target to build before running tests with coverage using the test explorer",
278298
"cmake-tools.configuration.cmake.postRunCoverageTarget.description": "Target to build after running tests with coverage using the test explorer",

src/cmakeProject.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ export class CMakeProject {
872872
* Dispose the instance
873873
*/
874874
dispose() {
875-
log.debug(localize('disposing.extension', 'Disposing CMake Tools extension'));
875+
log.debug(localize({key: 'disposing.extension', comment: ["'CMake Tools' shouldn't be localized"]}, 'Disposing CMake Tools extension'));
876876
this.disposeEmitter.fire();
877877
this.termCloseSub.dispose();
878878
this.launchTerminals.forEach(term => term.dispose());
@@ -1241,7 +1241,7 @@ export class CMakeProject {
12411241
* Second phase of two-phase init. Called by `create`.
12421242
*/
12431243
private async init(sourceDirectory: string) {
1244-
log.debug(localize('second.phase.init', 'Starting CMake Tools second-phase init'));
1244+
log.debug(localize({key: 'second.phase.init', comment: ["'CMake Tools' shouldn't be localized'"]}, 'Starting CMake Tools second-phase init'));
12451245
await this.setSourceDir(await util.normalizeAndVerifySourceDir(sourceDirectory, CMakeDriver.sourceDirExpansionOptions(this.workspaceContext.folder.uri.fsPath)));
12461246
this.doStatusChange(this.workspaceContext.config.options);
12471247
// Restore the debug target

0 commit comments

Comments
 (0)