From a1e46a7c5b361fbdc28054d89ac7df5d8fd65bd6 Mon Sep 17 00:00:00 2001 From: Oleg Shpynov Date: Tue, 29 Sep 2009 21:45:36 +0400 Subject: [PATCH] Added 3 options to spellchecker: whether inspect code/literals/comments --- .../spellchecker/inspections/SpellCheckingInspection.java | 6 +++--- .../spellchecker/util/SpellCheckerBundle.properties | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java b/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java index 9b0fdeaebc12..731c56c3fbe3 100644 --- a/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java +++ b/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java @@ -229,9 +229,9 @@ public class SpellCheckingInspection extends LocalInspectionTool { @Override public JComponent createOptionsPanel() { final Box verticalBox = Box.createVerticalBox(); - verticalBox.add(new SingleCheckboxOptionsPanel("Process code", this, "processCode")); - verticalBox.add(new SingleCheckboxOptionsPanel("Process literals", this, "processLiterals")); - verticalBox.add(new SingleCheckboxOptionsPanel("Process comments", this, "processComments")); + verticalBox.add(new SingleCheckboxOptionsPanel(SpellCheckerBundle.message("process.code"), this, "processCode")); + verticalBox.add(new SingleCheckboxOptionsPanel(SpellCheckerBundle.message("process.literals"), this, "processLiterals")); + verticalBox.add(new SingleCheckboxOptionsPanel(SpellCheckerBundle.message("process.comments"), this, "processComments")); final JPanel panel = new JPanel(new BorderLayout()); panel.add(verticalBox, BorderLayout.NORTH); return panel; diff --git a/plugins/spellchecker/src/com/intellij/spellchecker/util/SpellCheckerBundle.properties b/plugins/spellchecker/src/com/intellij/spellchecker/util/SpellCheckerBundle.properties index f60ee3e0ee27..1325cc59be63 100644 --- a/plugins/spellchecker/src/com/intellij/spellchecker/util/SpellCheckerBundle.properties +++ b/plugins/spellchecker/src/com/intellij/spellchecker/util/SpellCheckerBundle.properties @@ -22,4 +22,7 @@ add.new.word=Add new word entered.word.0.is.mixed.cased.you.must.enter.simple.word=Entered word {0} is mixed cased. You must enter simple word entered.word.0.is.correct.you.no.need.to.add.this.in.list=Entered word {0} is correct. You no need to add this in list. no.suggestions= +process.code=Process code: +process.literals=Process literals: +process.comments=Process comments: