mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
I18nize add interpreter actions text
GitOrigin-RevId: 482095b7952ae67ea82fa4bca324c44c200e2776
This commit is contained in:
committed by
intellij-monorepo-bot
parent
453bd1fa45
commit
47017aae3c
@@ -421,6 +421,9 @@ python.sdk.cannot.setup.sdk=Cannot set up a python SDK \nat {0}.\nThe SDK seems
|
||||
python.sdk.interpreter.executable.path.title=Python Interpreter Executable Path
|
||||
python.sdk.action.add.new.interpreter.text=Add New Interpreter
|
||||
|
||||
python.sdk.action.add.local.interpreter.text=Add Local Interpreter...
|
||||
python.sdk.action.add.interpreter.based.on.target.text=On {0}...
|
||||
|
||||
# SDK / skeletons
|
||||
sdk.some.skeletons.failed=Some skeletons failed to generate
|
||||
sdk.gen.cleaning.up=Cleaning up skeletons\u2026
|
||||
|
||||
@@ -8,13 +8,14 @@ import com.intellij.openapi.actionSystem.AnAction
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.projectRoots.Sdk
|
||||
import com.jetbrains.python.PyBundle
|
||||
import com.jetbrains.python.configuration.PyConfigurableInterpreterList
|
||||
import com.jetbrains.python.target.PythonLanguageRuntimeType
|
||||
|
||||
internal class AddInterpreterOnTargetAction(private val project: Project,
|
||||
private val targetType: TargetEnvironmentType<*>,
|
||||
private val onSdkCreated: (sdk: Sdk) -> Unit
|
||||
) : AnAction({ "On ${targetType.displayName}..." }, targetType.icon) {
|
||||
private val onSdkCreated: (sdk: Sdk) -> Unit)
|
||||
: AnAction(PyBundle.messagePointer("python.sdk.action.add.interpreter.based.on.target.text", targetType.displayName), targetType.icon) {
|
||||
override fun actionPerformed(e: AnActionEvent) {
|
||||
val wizard = TargetEnvironmentWizard.createWizard(project, targetType, PythonLanguageRuntimeType.getInstance())
|
||||
if (wizard != null && wizard.showAndGet()) {
|
||||
|
||||
@@ -7,6 +7,7 @@ import com.intellij.openapi.actionSystem.AnActionEvent
|
||||
import com.intellij.openapi.module.Module
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.projectRoots.Sdk
|
||||
import com.jetbrains.python.PyBundle
|
||||
import com.jetbrains.python.configuration.PyConfigurableInterpreterList
|
||||
import com.jetbrains.python.sdk.add.target.PyAddTargetBasedSdkDialog
|
||||
import java.util.function.Consumer
|
||||
@@ -14,7 +15,7 @@ import java.util.function.Consumer
|
||||
internal class AddLocalInterpreterAction(private val project: Project,
|
||||
private val module: Module,
|
||||
private val onSdkCreated: (sdk: Sdk) -> Unit)
|
||||
: AnAction({ "Add Local Interpreter..." }, AllIcons.Nodes.HomeFolder) {
|
||||
: AnAction(PyBundle.messagePointer("python.sdk.action.add.local.interpreter.text"), AllIcons.Nodes.HomeFolder) {
|
||||
override fun actionPerformed(e: AnActionEvent) {
|
||||
val model = PyConfigurableInterpreterList.getInstance(project).model
|
||||
|
||||
|
||||
Reference in New Issue
Block a user