diff --git a/python/pluginResources/messages/PyBundle.properties b/python/pluginResources/messages/PyBundle.properties index c274a4923d91..25b7d27fd181 100644 --- a/python/pluginResources/messages/PyBundle.properties +++ b/python/pluginResources/messages/PyBundle.properties @@ -1132,3 +1132,5 @@ progress.text.connecting.to.console=Connecting to console... progress.title.debugger.connection=Debugger connection python.sdk.configuration.tab.title=Classes python.console.rename.message=Enter new console name: + +settings.completion.ml.python.display.name=Python diff --git a/python/src/com/jetbrains/python/codeInsight/mlcompletion/PythonMLRankingProvider.kt b/python/src/com/jetbrains/python/codeInsight/mlcompletion/PythonMLRankingProvider.kt index ab613b19baa1..743c0c8ec628 100644 --- a/python/src/com/jetbrains/python/codeInsight/mlcompletion/PythonMLRankingProvider.kt +++ b/python/src/com/jetbrains/python/codeInsight/mlcompletion/PythonMLRankingProvider.kt @@ -7,8 +7,10 @@ import com.intellij.internal.ml.ModelMetadata import com.intellij.internal.ml.completion.CompletionRankingModelBase import com.intellij.internal.ml.completion.JarCompletionModelProvider import com.intellij.lang.Language +import com.jetbrains.python.PyBundle -class PythonMLRankingProvider : JarCompletionModelProvider("Python", "python_features") { +class PythonMLRankingProvider : + JarCompletionModelProvider(PyBundle.message("settings.completion.ml.python.display.name"), "python_features") { override fun createModel(metadata: ModelMetadata): DecisionFunction { return object : CompletionRankingModelBase(metadata) { override fun predict(features: DoubleArray?): Double = MLCompletionModel.makePredict(features)