Better name for smart keys setting about type placeholder in docstring stubs
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Tue, 8 Sep 2015 10:02:10 +0000 (13:02 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Tue, 8 Sep 2015 10:02:10 +0000 (13:02 +0300)
Also I moved all messages from PySpecificSmartKeysOptions to PyBundle.

python/src/com/jetbrains/python/PyBundle.properties
python/src/com/jetbrains/python/codeInsight/PySpecificSmartKeysOptions.java

index 5c00653428ce84c29506c36086fadf3a842827a1..1eff3fd8ac3b34b4eaf1457e95fa705d619c560b 100644 (file)
@@ -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
index 47669ae32d08faf592dce1fdbe4f5ce2850d1c74..0eb45feced1662e20adba7f6bc2442a0e9163073 100644 (file)
@@ -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"));
   }
 }