diff --git a/python/src/com/jetbrains/python/PyBundle.properties b/python/src/com/jetbrains/python/PyBundle.properties index 5c00653428ce..1eff3fd8ac3b 100644 --- a/python/src/com/jetbrains/python/PyBundle.properties +++ b/python/src/com/jetbrains/python/PyBundle.properties @@ -943,3 +943,7 @@ formatter.align.when.multiline=Align when multiline formatter.collections.and.comprehensions=Collections and Comprehensions formatter.import.statements=Import Statements formatter.dictionary.literals=Dictionary literals + +smartKeys.insert.backslash.in.statement.on.enter=Insert backslash when pressing Enter inside a statement +smartKeys.insert.self.in.method=Insert 'self' when defining a method +smartKeys.insert.type.placeholder.in.docstring.stub=Insert type placeholders in the documentation comment stub \ No newline at end of file diff --git a/python/src/com/jetbrains/python/codeInsight/PySpecificSmartKeysOptions.java b/python/src/com/jetbrains/python/codeInsight/PySpecificSmartKeysOptions.java index 47669ae32d08..0eb45feced16 100644 --- a/python/src/com/jetbrains/python/codeInsight/PySpecificSmartKeysOptions.java +++ b/python/src/com/jetbrains/python/codeInsight/PySpecificSmartKeysOptions.java @@ -17,6 +17,7 @@ package com.jetbrains.python.codeInsight; import com.intellij.openapi.options.BeanConfigurable; import com.intellij.openapi.options.UnnamedConfigurable; +import com.jetbrains.python.PyBundle; /** * @author yole @@ -24,8 +25,8 @@ import com.intellij.openapi.options.UnnamedConfigurable; public class PySpecificSmartKeysOptions extends BeanConfigurable implements UnnamedConfigurable { public PySpecificSmartKeysOptions() { super(PyCodeInsightSettings.getInstance()); - checkBox("INSERT_BACKSLASH_ON_WRAP", "Insert backslash when pressing Enter inside a statement"); - checkBox("INSERT_SELF_FOR_METHODS", "Insert 'self' when defining a method"); - checkBox("INSERT_TYPE_DOCSTUB", "Insert 'type' and 'rtype' to the documentation comment stub"); + checkBox("INSERT_BACKSLASH_ON_WRAP", PyBundle.message("smartKeys.insert.backslash.in.statement.on.enter")); + checkBox("INSERT_SELF_FOR_METHODS", PyBundle.message("smartKeys.insert.self.in.method")); + checkBox("INSERT_TYPE_DOCSTUB", PyBundle.message("smartKeys.insert.type.placeholder.in.docstring.stub")); } }