PY-14962 Move messages shown on "Other" panel to the bundle

This commit is contained in:
Mikhail Golubev
2015-05-25 21:37:48 +03:00
parent f7078d5a88
commit db9a64bb63
3 changed files with 12 additions and 5 deletions
@@ -918,3 +918,9 @@ commandLine.commandNotFound={0}: command not found
windowWithActions.closeWindow=Close window
# "Stop" button title
windowWithActions.stopProcess=Stop currently running process
formatter.panel.dict.alignment.do.not.align=Do not align
formatter.panel.dict.alignment.align.on.colon=Align on colon
formatter.panel.dict.alignment.align.on.value=Align on value
formatter.panel.dict.alignment.label=Dict alignment:
formatter.panel.add.trailing.line.feed=Add line feed at the end of file
@@ -42,7 +42,7 @@
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Dict alignment:"/>
<text resource-bundle="com/jetbrains/python/PyBundle" key="formatter.panel.dict.alignment.label"/>
</properties>
</component>
<component id="b4945" class="com.intellij.ui.components.JBCheckBox" binding="myAddTrailingBlankLineCheckbox" default-binding="true">
@@ -50,7 +50,7 @@
<grid row="1" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Add line feed at the end of file"/>
<text resource-bundle="com/jetbrains/python/PyBundle" key="formatter.panel.add.trailing.line.feed"/>
</properties>
</component>
</children>
@@ -17,6 +17,7 @@ package com.jetbrains.python.formatter;
import com.intellij.psi.codeStyle.CodeStyleSettings;
import com.intellij.psi.codeStyle.CustomCodeStyleSettings;
import com.jetbrains.python.PyBundle;
/**
* @author yole
@@ -24,9 +25,9 @@ import com.intellij.psi.codeStyle.CustomCodeStyleSettings;
public class PyCodeStyleSettings extends CustomCodeStyleSettings {
public enum DictAlignment {
NONE("Do not align"),
ON_VALUE("Align on value"),
ON_COLON("Align on colon");
NONE(PyBundle.message("formatter.panel.dict.alignment.do.not.align")),
ON_VALUE(PyBundle.message("formatter.panel.dict.alignment.align.on.value")),
ON_COLON(PyBundle.message("formatter.panel.dict.alignment.align.on.colon"));
String description;