2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Added phrases for spellchecker.

This commit is contained in:
23rd
2019-10-18 18:13:51 +03:00
committed by John Preston
parent 4be178c75f
commit aa9dc2bee2
2 changed files with 9 additions and 0 deletions

View File

@@ -282,6 +282,11 @@ base::unique_qptr<Spellchecker::SpellingHighlighter> InitSpellchecker(
field->rawTextEdit(),
session->settings().spellcheckerEnabledValue(),
field->documentContentsChanges());
Spellchecker::SetPhrases({ {
{ &ph::lng_spellchecker_add, tr::lng_spellchecker_add() },
{ &ph::lng_spellchecker_remove, tr::lng_spellchecker_remove() },
{ &ph::lng_spellchecker_ignore, tr::lng_spellchecker_ignore() },
} });
field->setExtendedContextMenu(s->contextMenuCreated());
return s;
}