@@ -120,14 +120,14 @@ export const PythonEnvironmentStep = (props: PropsWithChildren<NewFolderFlowStep
120
120
identifier : EnvironmentSetupType . NewEnvironment ,
121
121
title : localize (
122
122
'pythonEnvironmentStep.newEnvironment.radioLabel' ,
123
- "Create a new Python environment (Recommended)"
123
+ "Create a new virtual environment (Recommended)"
124
124
)
125
125
} ) ,
126
126
new RadioButtonItem ( {
127
127
identifier : EnvironmentSetupType . ExistingEnvironment ,
128
128
title : localize (
129
129
'pythonEnvironmentStep.existingEnvironment.radioLabel' ,
130
- "Use an existing Python installation "
130
+ "Use an existing environment "
131
131
)
132
132
} )
133
133
] ;
@@ -335,26 +335,31 @@ export const PythonEnvironmentStep = (props: PropsWithChildren<NewFolderFlowStep
335
335
336
336
// Construct the interpreter dropdown title.
337
337
const interpreterDropdownTitle = ( ) => {
338
+ const interpreterOrVersion = ( context . usesCondaEnv || context . usesUvEnv ) ? 'version' : 'interpreter' ;
339
+
338
340
// If interpreters is undefined, show a loading message.
339
341
if ( interpretersLoading ( ) ) {
340
342
return localize (
341
343
'pythonInterpreterSubStep.dropDown.title.loading' ,
342
- "Loading interpreters..."
344
+ "Loading {0}s..." ,
345
+ interpreterOrVersion
343
346
) ;
344
347
}
345
348
346
349
// If interpreters is empty, show a message that no interpreters were found.
347
350
if ( ! interpretersAvailable ( ) ) {
348
351
return localize (
349
352
'pythonInterpreterSubStep.dropDown.title.noInterpreters' ,
350
- "No interpreters found."
353
+ "No {0}s found." ,
354
+ interpreterOrVersion
351
355
) ;
352
356
}
353
357
354
358
// Otherwise, show the default title.
355
359
return localize (
356
360
'pythonInterpreterSubStep.dropDown.title' ,
357
- "Select a Python interpreter"
361
+ "Select a Python {0}" ,
362
+ interpreterOrVersion
358
363
) ;
359
364
} ;
360
365
@@ -447,14 +452,14 @@ export const PythonEnvironmentStep = (props: PropsWithChildren<NewFolderFlowStep
447
452
< FlowFormattedText type = { FlowFormattedTextType . Info } >
448
453
{ ( ( ) => localize (
449
454
'pythonEnvironmentSubStep.description' ,
450
- "Select a Python environment"
455
+ "Select a way to create a new Python environment"
451
456
) ) ( ) }
452
457
</ FlowFormattedText >
453
458
}
454
459
feedback = { envProviderStepFeedback ( ) }
455
460
title = { ( ( ) => localize (
456
461
'pythonEnvironmentSubStep.label' ,
457
- "Python Environment"
462
+ "Environment Creation "
458
463
) ) ( ) }
459
464
>
460
465
< DropDownListBox
@@ -478,17 +483,23 @@ export const PythonEnvironmentStep = (props: PropsWithChildren<NewFolderFlowStep
478
483
}
479
484
{ /* Show the Python interpreter dropdown */ }
480
485
< PositronFlowSubStep
481
- description = { ( ( ) =>
482
- localize (
486
+ description = { ( ( ) => {
487
+ const whatToSelect = ( context . usesCondaEnv || context . usesUvEnv ) ? 'a Python version to install' : 'an existing interpreter' ;
488
+ return localize (
483
489
'pythonInterpreterSubStep.description' ,
484
- "Select a Python interpreter"
485
- ) ) ( ) }
490
+ "Select {0}" ,
491
+ whatToSelect
492
+ )
493
+ } ) ( ) }
486
494
feedback = { interpreterStepFeedback ( ) }
487
- title = { ( ( ) =>
488
- localize (
495
+ title = { ( ( ) => {
496
+ const interpreterOrVersion = ( context . usesCondaEnv || context . usesUvEnv ) ? 'Version' : 'Interpreter' ;
497
+ return localize (
489
498
'pythonInterpreterSubStep.title' ,
490
- "Python Interpreter"
491
- ) ) ( ) }
499
+ "Python {0}" ,
500
+ interpreterOrVersion
501
+ )
502
+ } ) ( ) }
492
503
>
493
504
< DropDownListBox
494
505
createItem = { ( item ) => (
0 commit comments