Skip to content

Commit c33cafd

Browse files
author
Hannia Valera
committed
localization entries for the new commands and the settings
1 parent 0c90748 commit c33cafd

File tree

3 files changed

+122
-69
lines changed

3 files changed

+122
-69
lines changed

package.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -710,12 +710,12 @@
710710
},
711711
{
712712
"command": "cmake.addFileToCMakeLists",
713-
"title": "Add File to CMake Lists",
713+
"title": "%cmake-tools.command.cmake.addFileToCMakeLists.title%",
714714
"category": "CMake"
715715
},
716716
{
717717
"command": "cmake.removeFileFromCMakeLists",
718-
"title": "Remove File from CMake Lists",
718+
"title": "%cmake-tools.command.cmake.removeFileFromCMakeLists.title%",
719719
"category": "CMake"
720720
},
721721
{
@@ -3861,11 +3861,11 @@
38613861
"yes",
38623862
"ask"
38633863
],
3864-
"description": "Add source files to CMake lists when they are created.",
3864+
"description": "%cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.description%",
38653865
"enumDescriptions": [
3866-
"Do not automatically add source files to CMake lists",
3867-
"Automatically add source files to CMake lists",
3868-
"Show a preview panel of proposed changes to apply"
3866+
"%cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.no.description%",
3867+
"%cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.yes.description%",
3868+
"%cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.ask.description%"
38693869
],
38703870
"order": 100,
38713871
"scope": "resource"
@@ -3878,11 +3878,11 @@
38783878
"yes",
38793879
"ask"
38803880
],
3881-
"description": "Remove source files from CMake lists when they are deleted.",
3881+
"description": "%cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.description%",
38823882
"enumDescriptions": [
3883-
"Do not automatically remove source files from CMake lists",
3884-
"Automatically remove source files from CMake lists",
3885-
"Show a preview panel of proposed changes to apply"
3883+
"%cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.no.description%",
3884+
"%cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.yes.description%",
3885+
"%cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.ask.description%"
38863886
],
38873887
"order": 101,
38883888
"scope": "resource"
@@ -3896,12 +3896,12 @@
38963896
"askParentDirs"
38973897
],
38983898
"default": "never",
3899-
"markdownDescription": "How to choose which `set()` or `list(APPEND/PREPEND/INSERT)` command invocation to edit when adding source files to CMake lists.",
3899+
"markdownDescription": "%cmake-tools.configuration.cmake.modifyLists.variableSelection.markdownDescription%",
39003900
"markdownEnumDescriptions": [
3901-
"Do not look for variable modification command invocations, only look for source command invocations.",
3902-
"Choose the best candidate automatically.",
3903-
"Present a Quick Pick with options from the first `CMakeLists.txt` found when searching up from the location of the new source file.",
3904-
"Present a Quick Pick with options from all `CMakeLists.txt` files found when searching up from the location of the new source file."
3901+
"%cmake-tools.configuration.cmake.modifyLists.variableSelection.never.description%",
3902+
"%cmake-tools.configuration.cmake.modifyLists.variableSelection.auto.description%",
3903+
"%cmake-tools.configuration.cmake.modifyLists.variableSelection.askFirstParentDir.description%",
3904+
"%cmake-tools.configuration.cmake.modifyLists.variableSelection.askParentDirs.description%"
39053905
],
39063906
"order": 102,
39073907
"scope": "resource"
@@ -3921,7 +3921,7 @@
39213921
"*_SOURCES",
39223922
"*_SOURCE_FILES"
39233923
],
3924-
"markdownDescription": "Variables to add source files to. Variables appearing earlier in this list will be given higher priority. Only used if `#cmake.modifyLists.variableSelection#` is not `never`. Supports glob patterns.",
3924+
"markdownDescription": "%cmake-tools.configuration.cmake.modifyLists.sourceVariables.markdownDescription%",
39253925
"order": 103,
39263926
"scope": "resource"
39273927
},
@@ -3933,11 +3933,11 @@
39333933
"askParentSourceDirs"
39343934
],
39353935
"default": "askParentSourceDirs",
3936-
"description": "How to choose which target to add new source files to when adding source files to CMake lists.",
3936+
"description": "%cmake-tools.configuration.cmake.modifyLists.targetSelection.description%",
39373937
"enumDescriptions": [
3938-
"Choose the best candidate automatically.",
3939-
"Present a Quick Pick with targets whose source directories are closest to location of the new source file.",
3940-
"Present a Quick Pick with targets whose source directories contain the location of the new source file."
3938+
"%cmake-tools.configuration.cmake.modifyLists.targetSelection.auto.description%",
3939+
"%cmake-tools.configuration.cmake.modifyLists.targetSelection.askNearestSourceDir.description%",
3940+
"%cmake-tools.configuration.cmake.modifyLists.targetSelection.askParentSourceDirs.description%"
39413941
],
39423942
"order": 104,
39433943
"scope": "resource"
@@ -3950,11 +3950,11 @@
39503950
"askParentDirs"
39513951
],
39523952
"default": "askParentDirs",
3953-
"description": "How to choose which of a target's source command invocations to edit when adding source files to CMake lists.",
3953+
"description": "%cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.description%",
39543954
"enumDescriptions": [
3955-
"Choose the best candidate automatically.",
3956-
"Present a Quick Pick with options from the CMake list file in the parent directory closest to the location of the new source file.",
3957-
"Present a Quick Pick with options from all CMake list files in the parent directories of the new source file."
3955+
"%cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.auto.description%",
3956+
"%cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.askFirstParentDir.description%",
3957+
"%cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.askParentDirs.description%"
39583958
],
39593959
"order": 105,
39603960
"scope": "resource"
@@ -3969,7 +3969,7 @@
39693969
"add_executable",
39703970
"add_library"
39713971
],
3972-
"markdownDescription": "Commands to treat as target source commands when adding source files CMake lists. Commands appearing earlier in this list will be given higher priority. Supports glob patterns.\n\nIf you are using the File API (see `#cmake.cmakeCommunicationMode#`), user-defined functions and macros which call the commands in this list are detected automatically and added to it.",
3972+
"markdownDescription": "%cmake-tools.configuration.cmake.modifyLists.targetSourceCommands.markdownDescription%",
39733973
"order": 106,
39743974
"scope": "resource"
39753975
},
@@ -3980,10 +3980,10 @@
39803980
"ask"
39813981
],
39823982
"default": "ask",
3983-
"description": "How to choose which of a target's visibility scopes, file sets, or source keyword parameters to edit when adding source files to CMake lists.",
3983+
"description": "%cmake-tools.configuration.cmake.modifyLists.scopeSelection.description%",
39843984
"enumDescriptions": [
3985-
"Choose the best candidate automatically.",
3986-
"Present a Quick Pick with options from the selected target source command invocation."
3985+
"%cmake-tools.configuration.cmake.modifyLists.scopeSelection.auto.description%",
3986+
"%cmake-tools.configuration.cmake.modifyLists.scopeSelection.ask.description%"
39873987
],
39883988
"order": 107,
39893989
"scope": "resource"
@@ -3993,7 +3993,7 @@
39933993
"items": {
39943994
"type": "string"
39953995
},
3996-
"markdownDescription": "Keyword arguments to user-defined functions and macros which introduce lists of source files. If left empty, all arguments consisting of only upper-case letters and underscores will be considered. Supports glob patterns",
3996+
"markdownDescription": "%cmake-tools.configuration.cmake.modifyLists.sourceListKeywords.markdownDescription%",
39973997
"order": 108,
39983998
"scope": "resource"
39993999
}

package.nls.json

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"cmake-tools.command.cmake.addFileToCMakeLists.title": "Add File to CMake Lists",
3+
"cmake-tools.command.cmake.removeFileFromCMakeLists.title": "Remove File from CMake Lists",
24
"cmake-tools.command.cmake.openCMakePresets.title": "Open CMakePresets.json",
35
"cmake-tools.command.cmake.addConfigurePreset.title": "Add Configure Preset",
46
"cmake-tools.command.cmake.addBuildPreset.title": "Add Build Preset",
@@ -383,5 +385,57 @@
383385
"cmake-tools.debugger.label": "CMake Debugger",
384386
"cmake-tools.command.cmake.appendBuildDirectoryToWorkspace.title": "Append Build Directory to Current Workspace",
385387
"cmake-tools.command.workbench.action.tasks.configureTaskRunner.title":"Configure Task",
386-
"cmake-tools.command.workbench.action.tasks.runTask.title":"Run Task"
388+
"cmake-tools.command.workbench.action.tasks.runTask.title":"Run Task",
389+
"cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.description": "Add source files to CMake lists when they are created.",
390+
"cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.no.description": "Do not automatically add source files to CMake lists",
391+
"cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.yes.description": "Automatically add source files to CMake lists",
392+
"cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.ask.description": "Show a preview panel of proposed changes to apply",
393+
"cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.description": "Remove source files from CMake lists when they are deleted.",
394+
"cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.no.description": "Do not automatically remove source files from CMake lists",
395+
"cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.yes.description": "Automatically remove source files from CMake lists",
396+
"cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.ask.description": "Show a preview panel of proposed changes to apply",
397+
"cmake-tools.configuration.cmake.modifyLists.variableSelection.markdownDescription": {
398+
"message": "How to choose which `set()` or `list(APPEND/PREPEND/INSERT)` command invocation to edit when adding source files to CMake lists.",
399+
"comment": [
400+
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
401+
]
402+
},
403+
"cmake-tools.configuration.cmake.modifyLists.variableSelection.never.description": "Do not look for variable modification command invocations, only look for source command invocations.",
404+
"cmake-tools.configuration.cmake.modifyLists.variableSelection.auto.description": "Choose the best candidate automatically.",
405+
"cmake-tools.configuration.cmake.modifyLists.variableSelection.askFirstParentDir.description": {
406+
"message": "Present a Quick Pick with options from the first `CMakeLists.txt` found when searching up from the location of the new source file.",
407+
"comment": [
408+
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
409+
]
410+
},
411+
"cmake-tools.configuration.cmake.modifyLists.variableSelection.askParentDirs.description": {
412+
"message": "Present a Quick Pick with options from all `CMakeLists.txt` files found when searching up from the location of the new source file.",
413+
"comment": [
414+
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
415+
]
416+
},
417+
"cmake-tools.configuration.cmake.modifyLists.sourceVariables.markdownDescription": {
418+
"message": "Variables to add source files to. Variables appearing earlier in this list will be given higher priority. Only used if `#cmake.modifyLists.variableSelection#` is not `never`. Supports glob patterns.",
419+
"comment": [
420+
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
421+
]
422+
},
423+
"cmake-tools.configuration.cmake.modifyLists.targetSelection.description": "How to choose which target to add new source files to when adding source files to CMake lists.",
424+
"cmake-tools.configuration.cmake.modifyLists.targetSelection.auto.description": "Choose the best candidate automatically.",
425+
"cmake-tools.configuration.cmake.modifyLists.targetSelection.askNearestSourceDir.description": "Present a Quick Pick with targets whose source directories are closest to location of the new source file.",
426+
"cmake-tools.configuration.cmake.modifyLists.targetSelection.askParentSourceDirs.description": "Present a Quick Pick with targets whose source directories contain the location of the new source file.",
427+
"cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.description": "How to choose which of a target's source command invocations to edit when adding source files to CMake lists.",
428+
"cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.auto.description": "Choose the best candidate automatically.",
429+
"cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.askFirstParentDir.description": "Present a Quick Pick with options from the CMake list file in the parent directory closest to the location of the new source file.",
430+
"cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.askParentDirs.description": "Present a Quick Pick with options from all CMake list files in the parent directories of the new source file.",
431+
"cmake-tools.configuration.cmake.modifyLists.targetSourceCommands.markdownDescription": {
432+
"message": "Commands to treat as target source commands when adding source files CMake lists. Commands appearing earlier in this list will be given higher priority. Supports glob patterns.\n\nIf you are using the File API (see `#cmake.cmakeCommunicationMode#`), user-defined functions and macros which call the commands in this list are detected automatically and added to it.",
433+
"comment": [
434+
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
435+
]
436+
},
437+
"cmake-tools.configuration.cmake.modifyLists.scopeSelection.description": "How to choose which of a target's visibility scopes, file sets, or source keyword parameters to edit when adding source files to CMake lists.",
438+
"cmake-tools.configuration.cmake.modifyLists.scopeSelection.auto.description": "Choose the best candidate automatically.",
439+
"cmake-tools.configuration.cmake.modifyLists.scopeSelection.ask.description": "Present a Quick Pick with options from the selected target source command invocation.",
440+
"cmake-tools.configuration.cmake.modifyLists.sourceListKeywords.markdownDescription": "Keyword arguments to user-defined functions and macros which introduce lists of source files. If left empty, all arguments consisting of only upper-case letters and underscores will be considered. Supports glob patterns"
387441
}

0 commit comments

Comments
 (0)