From 96f25f6a4b69eefc2115bc2ab7b930be620da74e Mon Sep 17 00:00:00 2001 From: Olga Strizhenko Date: Wed, 10 Jun 2020 14:52:00 +0200 Subject: [PATCH] Simplify spellchecker settings: quick-fix name GitOrigin-RevId: 72cab382a13f1ad205c0e82fa80f80847e2d11fd --- spellchecker/resources/messages/SpellCheckerBundle.properties | 2 +- .../src/com/intellij/spellchecker/quickfixes/SaveTo.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/spellchecker/resources/messages/SpellCheckerBundle.properties b/spellchecker/resources/messages/SpellCheckerBundle.properties index f9272193a6f2..997678f5413f 100644 --- a/spellchecker/resources/messages/SpellCheckerBundle.properties +++ b/spellchecker/resources/messages/SpellCheckerBundle.properties @@ -8,7 +8,7 @@ spellchecking.inspection.name=Typo typo.in.word.ref=Typo: In word '#ref' add.0.to.dictionary=Typo: Save ''{0}'' to dictionary add.to.dictionary=Save to dictionary -save.0.to.1=Save {0} to {1} +save.0.to.1=Save {0} to dictionary 0.in.qoutes=''{0}'' class.name.with.mistakes=Class name with mistakes method.name.with.mistakes=Method name with mistakes diff --git a/spellchecker/src/com/intellij/spellchecker/quickfixes/SaveTo.java b/spellchecker/src/com/intellij/spellchecker/quickfixes/SaveTo.java index a2bb0deae95e..dbe1a141b1c0 100644 --- a/spellchecker/src/com/intellij/spellchecker/quickfixes/SaveTo.java +++ b/spellchecker/src/com/intellij/spellchecker/quickfixes/SaveTo.java @@ -47,9 +47,7 @@ public class SaveTo implements SpellCheckerQuickFix, LowPriorityAction { @Override @NotNull public String getName() { - final String dictionary = myLevel != DictionaryLevel.NOT_SPECIFIED ? myLevel.getName() + DICTIONARY : DOTS; - final String word = myWord != null ? SpellCheckerBundle.message("0.in.qoutes", myWord) : ""; - return SpellCheckerBundle.message("save.0.to.1", word, dictionary); + return SpellCheckerBundle.message("save.0.to.1", myWord != null ? SpellCheckerBundle.message("0.in.qoutes", myWord) : ""); } @Override