Simplify spellchecker settings: quick-fix name

GitOrigin-RevId: 72cab382a13f1ad205c0e82fa80f80847e2d11fd
This commit is contained in:
Olga Strizhenko
2020-06-10 20:31:05 +03:00
committed by intellij-monorepo-bot
parent ad030d4304
commit 96f25f6a4b
2 changed files with 2 additions and 4 deletions
@@ -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
@@ -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