mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Added phrases for spellchecker.
This commit is contained in:
@@ -1594,6 +1594,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
"lng_formatting_link_url" = "URL";
|
"lng_formatting_link_url" = "URL";
|
||||||
"lng_formatting_link_create" = "Create";
|
"lng_formatting_link_create" = "Create";
|
||||||
|
|
||||||
|
"lng_spellchecker_add" = "Add to Dictionary";
|
||||||
|
"lng_spellchecker_remove" = "Remove from Dictionary";
|
||||||
|
"lng_spellchecker_ignore" = "Ignore word";
|
||||||
|
|
||||||
"lng_full_name" = "{first_name} {last_name}";
|
"lng_full_name" = "{first_name} {last_name}";
|
||||||
|
|
||||||
"lng_confirm_phone_link_invalid" = "This link is broken or has expired.";
|
"lng_confirm_phone_link_invalid" = "This link is broken or has expired.";
|
||||||
|
@@ -282,6 +282,11 @@ base::unique_qptr<Spellchecker::SpellingHighlighter> InitSpellchecker(
|
|||||||
field->rawTextEdit(),
|
field->rawTextEdit(),
|
||||||
session->settings().spellcheckerEnabledValue(),
|
session->settings().spellcheckerEnabledValue(),
|
||||||
field->documentContentsChanges());
|
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());
|
field->setExtendedContextMenu(s->contextMenuCreated());
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user