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
import com.intellij.openapi.options.BeanConfigurable;
import com.intellij.openapi.options.UnnamedConfigurable;
+import com.jetbrains.python.PyBundle;
/**
* @author yole
public class PySpecificSmartKeysOptions extends BeanConfigurable<PyCodeInsightSettings> 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"));
}
}