|
130 | 130 | "category": "Qt for Python" |
131 | 131 | }, |
132 | 132 | { |
133 | | - "command": "qtForPython.lupdate", |
| 133 | + "command": "qtForPython.extractTranslations", |
134 | 134 | "title": "Extract to Qt Translation File (lupdate)", |
135 | 135 | "category": "Qt for Python" |
| 136 | + }, |
| 137 | + { |
| 138 | + "command": "qtForPython.editTranslations", |
| 139 | + "title": "Edit Qt Translation File (linguist)", |
| 140 | + "category": "Qt for Python" |
136 | 141 | } |
137 | 142 | ], |
138 | 143 | "menus": { |
|
163 | 168 | "group": "qtForPython" |
164 | 169 | }, |
165 | 170 | { |
166 | | - "command": "qtForPython.lupdate", |
| 171 | + "command": "qtForPython.extractTranslations", |
167 | 172 | "when": "resourceLangId == python || resourceLangId == qml || resourceLangId == xml && resourceExtname == .ui", |
168 | 173 | "group": "qtForPython" |
| 174 | + }, |
| 175 | + { |
| 176 | + "command": "qtForPython.editTranslations", |
| 177 | + "when": "resourceExtname == .ts && resourceLangId == xml", |
| 178 | + "group": "qtForPython" |
169 | 179 | } |
170 | 180 | ], |
171 | 181 | "explorer/context": [ |
|
195 | 205 | "group": "qtForPython" |
196 | 206 | }, |
197 | 207 | { |
198 | | - "command": "qtForPython.lupdate", |
| 208 | + "command": "qtForPython.extractTranslations", |
199 | 209 | "when": "resourceLangId == python || resourceLangId == qml || resourceLangId == xml && resourceExtname == .ui", |
200 | 210 | "group": "qtForPython" |
| 211 | + }, |
| 212 | + { |
| 213 | + "command": "qtForPython.editTranslations", |
| 214 | + "when": "resourceExtname == .ts && resourceLangId == xml", |
| 215 | + "group": "qtForPython" |
201 | 216 | } |
202 | 217 | ], |
203 | 218 | "editor/title": [ |
|
227 | 242 | "group": "qtForPython" |
228 | 243 | }, |
229 | 244 | { |
230 | | - "command": "qtForPython.lupdate", |
| 245 | + "command": "qtForPython.extractTranslations", |
231 | 246 | "when": "resourceLangId == python || resourceLangId == qml || resourceLangId == xml && resourceExtname == .ui", |
232 | 247 | "group": "qtForPython" |
| 248 | + }, |
| 249 | + { |
| 250 | + "command": "qtForPython.editTranslations", |
| 251 | + "when": "resourceExtname == .ts && resourceLangId == xml", |
| 252 | + "group": "qtForPython" |
233 | 253 | } |
234 | 254 | ], |
235 | 255 | "editor/context": [ |
|
259 | 279 | "group": "qtForPython" |
260 | 280 | }, |
261 | 281 | { |
262 | | - "command": "qtForPython.lupdate", |
| 282 | + "command": "qtForPython.extractTranslations", |
263 | 283 | "when": "resourceLangId == python || resourceLangId == qml || resourceLangId == xml && resourceExtname == .ui", |
264 | 284 | "group": "qtForPython" |
| 285 | + }, |
| 286 | + { |
| 287 | + "command": "qtForPython.editTranslations", |
| 288 | + "when": "resourceExtname == .ts && resourceLangId == xml", |
| 289 | + "group": "qtForPython" |
265 | 290 | } |
266 | 291 | ] |
267 | 292 | }, |
|
0 commit comments