Skip to content

Commit a0433d8

Browse files
authored
Add title and descriptions from package.json to package.nls.json (#69)
1 parent a6a4f20 commit a0433d8

File tree

2 files changed

+57
-27
lines changed

2 files changed

+57
-27
lines changed

package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,44 +38,44 @@
3838
"properties": {
3939
"python-envs.defaultEnvManager": {
4040
"type": "string",
41-
"description": "The default environment manager to use for creating and managing environments",
41+
"description": "%python-envs.defaultEnvManager.description%",
4242
"default": "ms-python.python:venv",
4343
"scope": "window"
4444
},
4545
"python-envs.defaultPackageManager": {
4646
"type": "string",
47-
"description": "The default package manager to use for installing and managing packages",
47+
"description": "%python-envs.defaultPackageManager.description%",
4848
"default": "ms-python.python:pip",
4949
"scope": "window"
5050
},
5151
"python-envs.pythonProjects": {
5252
"type": "array",
5353
"default": [],
54-
"description": "The list of python workspaces",
54+
"description": "%python-envs.pythonProjects.description%",
5555
"scope": "window",
5656
"items": {
5757
"type": "object",
5858
"properties": {
5959
"path": {
6060
"type": "string",
61-
"description": "The path to the workspace folder or a file"
61+
"description": "%python-envs.pythonProjects.path.description%"
6262
},
6363
"envManager": {
6464
"type": "string",
65-
"description": "The environment manager to use for this workspace",
65+
"description": "%python-envs.pythonProjects.envManager.description%",
6666
"default": "ms-python.python:venv"
6767
},
6868
"packageManager": {
6969
"type": "string",
70-
"description": "The package manager to use for this workspace",
70+
"description": "%python-envs.pythonProjects.packageManager.description%",
7171
"default": "ms-python.python:pip"
7272
}
7373
}
7474
}
7575
},
7676
"python-envs.showActivateButton": {
7777
"type": "boolean",
78-
"description": "Show the activate button in the terminal",
78+
"description": "%python-envs.showActivateButton.description%",
7979
"default": false,
8080
"scope": "machine",
8181
"tags": [
@@ -88,124 +88,124 @@
8888
"commands": [
8989
{
9090
"command": "python-envs.setEnvManager",
91-
"title": "Set Environment Manager",
91+
"title": "%python-envs.setEnvManager.title%",
9292
"category": "Python",
9393
"icon": "$(gear)"
9494
},
9595
{
9696
"command": "python-envs.setPkgManager",
97-
"title": "Set Package Manager",
97+
"title": "%python-envs.setPkgManager.title%",
9898
"category": "Python",
9999
"icon": "$(package)"
100100
},
101101
{
102102
"command": "python-envs.addPythonProject",
103-
"title": "Add Python Project",
103+
"title": "%python-envs.addPythonProject.title%",
104104
"category": "Python",
105105
"icon": "$(new-folder)"
106106
},
107107
{
108108
"command": "python-envs.removePythonProject",
109-
"title": "Remove Python Project",
109+
"title": "%python-envs.removePythonProject.title%",
110110
"category": "Python",
111111
"icon": "$(remove)"
112112
},
113113
{
114114
"command": "python-envs.create",
115-
"title": "Create Environment",
115+
"title": "%python-envs.create.title%",
116116
"category": "Python",
117117
"icon": "$(add)"
118118
},
119119
{
120120
"command": "python-envs.createAny",
121-
"title": "Create Environment",
121+
"title": "%python-envs.createAny.title%",
122122
"category": "Python",
123123
"icon": "$(add)"
124124
},
125125
{
126126
"command": "python-envs.set",
127-
"title": "Set Workspace Environment",
127+
"title": "%python-envs.set.title%",
128128
"category": "Python",
129129
"icon": "$(check)"
130130
},
131131
{
132132
"command": "python-envs.setEnv",
133-
"title": "Set As Workspace Environment",
133+
"title": "%python-envs.setEnv.title%",
134134
"category": "Python",
135135
"icon": "$(check)"
136136
},
137137
{
138138
"command": "python-envs.reset",
139-
"title": "Reset Environment Selection to Default",
139+
"title": "%python-envs.reset.title%",
140140
"shortTitle": "Reset Environment",
141141
"category": "Python",
142142
"icon": "$(sync)"
143143
},
144144
{
145145
"command": "python-envs.remove",
146-
"title": "Delete Environment",
146+
"title": "%python-envs.remove.title%",
147147
"category": "Python",
148148
"icon": "$(remove)"
149149
},
150150
{
151151
"command": "python-envs.refreshAllManagers",
152-
"title": "Refresh All Environment Managers",
152+
"title": "%python-envs.refreshAllManagers.title%",
153153
"shortTitle": "Refresh All",
154154
"category": "Python",
155155
"icon": "$(refresh)"
156156
},
157157
{
158158
"command": "python-envs.refreshManager",
159-
"title": "Refresh Environments List",
159+
"title": "%python-envs.refreshManager.title%",
160160
"category": "Python",
161161
"icon": "$(refresh)"
162162
},
163163
{
164164
"command": "python-envs.refreshPackages",
165-
"title": "Refresh Packages List",
165+
"title": "%python-envs.refreshPackages.title%",
166166
"category": "Python",
167167
"icon": "$(refresh)"
168168
},
169169
{
170170
"command": "python-envs.packages",
171-
"title": "Install or Remove Packages",
171+
"title": "%python-envs.packages.title%",
172172
"shortTitle": "Modify Packages",
173173
"category": "Python",
174174
"icon": "$(package)"
175175
},
176176
{
177177
"command": "python-envs.clearCache",
178-
"title": "Clear Cache",
178+
"title": "%python-envs.clearCache.title%",
179179
"category": "Python",
180180
"icon": "$(trash)"
181181
},
182182
{
183183
"command": "python-envs.runInTerminal",
184-
"title": "Run in Terminal",
184+
"title": "%python-envs.runInTerminal.title%",
185185
"category": "Python Envs",
186186
"icon": "$(play)"
187187
},
188188
{
189189
"command": "python-envs.createTerminal",
190-
"title": "Create Python Terminal",
190+
"title": "%python-envs.createTerminal.title%",
191191
"category": "Python Envs",
192192
"icon": "$(terminal)"
193193
},
194194
{
195195
"command": "python-envs.runAsTask",
196-
"title": "Run as Task",
196+
"title": "%python-envs.runAsTask.title%",
197197
"category": "Python Envs",
198198
"icon": "$(play)"
199199
},
200200
{
201201
"command": "python-envs.terminal.activate",
202-
"title": "Activate Environment in Current Terminal",
202+
"title": "%python-envs.terminal.activate.title%",
203203
"category": "Python Envs",
204204
"icon": "$(zap)"
205205
},
206206
{
207207
"command": "python-envs.terminal.deactivate",
208-
"title": "Deactivate Environment in Current Terminal",
208+
"title": "%python-envs.terminal.deactivate.title%",
209209
"category": "Python Envs",
210210
"icon": "$(circle-slash)"
211211
}

package.nls.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"python-envs.defaultEnvManager.description": "The default environment manager for creating and managing environments.",
3+
"python-envs.defaultPackageManager.description": "The default package manager for installing packages in environments.",
4+
"python-envs.pythonProjects.description": "The list of Python projects.",
5+
"python-envs.pythonProjects.path.description": "The path to a folder or file in the workspace to be treated as a Python project.",
6+
"python-envs.pythonProjects.envManager.description": "The environment manager for creating and managing environments for this project.",
7+
"python-envs.pythonProjects.packageManager.description": "The package manager for managing packages in environments for this project.",
8+
"python-envs.showActivateButton.description": "Whether to show the 'Activate' button in the terminal menu",
9+
10+
"python-envs.setEnvManager.title": "Set Environment Manager",
11+
"python-envs.setPkgManager.title": "Set Package Manager",
12+
"python-envs.addPythonProject.title": "Add Python Project",
13+
"python-envs.removePythonProject.title": "Remove Python Project",
14+
"python-envs.create.title": "Create Environment",
15+
"python-envs.createAny.title": "Create Environment",
16+
"python-envs.set.title": "Set Workspace Environment",
17+
"python-envs.setEnv.title": "Set As Workspace Environment",
18+
"python-envs.reset.title": "Reset Environment Selection to Default",
19+
"python-envs.remove.title": "Delete Environment",
20+
"python-envs.refreshAllManagers.title": "Refresh All Environment Managers",
21+
"python-envs.refreshManager.title": "Refresh Environments List",
22+
"python-envs.refreshPackages.title": "Refresh Packages List",
23+
"python-envs.packages.title": "Install or Remove Packages",
24+
"python-envs.clearCache.title": "Clear Cache",
25+
"python-envs.runInTerminal.title": "Run in Terminal",
26+
"python-envs.createTerminal.title": "Create Python Terminal",
27+
"python-envs.runAsTask.title": "Run as Task",
28+
"python-envs.terminal.activate.title": "Activate Environment in Current Terminal",
29+
"python-envs.terminal.deactivate.title": "Deactivate Environment in Current Terminal"
30+
}

0 commit comments

Comments
 (0)