Better name for smart keys setting about type placeholder in docstring stubs

Also I moved all messages from PySpecificSmartKeysOptions to PyBundle.
This commit is contained in:
Mikhail Golubev
2015-09-08 13:02:10 +03:00
parent 3826afdf6c
commit a834c92e75
2 changed files with 8 additions and 3 deletions
@@ -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
@@ -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<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"));
}
}