Bug 470490 - Kate Is Not Aware If "hunspell-en_gb" Is Installed or Not
Summary: Kate Is Not Aware If "hunspell-en_gb" Is Installed or Not
Status: REPORTED
Alias: None
Product: frameworks-sonnet
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Martin Sandsmark
URL:
Keywords:
: 484453 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-05-31 14:17 UTC by John
Modified: 2025-04-04 19:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Kate/Plasma not aware of languages and dictionaries (27.94 KB, image/avif)
2023-05-31 14:17 UTC, John
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John 2023-05-31 14:17:55 UTC
Created attachment 159369 [details]
Kate/Plasma not aware of languages and dictionaries

SUMMARY
***
Foreword: My Kate setting has always automatic spelling check off. No automatic spelling has been used to trigger this bug.

Setting Language for the whole text (e.g. here the text is .md) does nothing. As soon as I go to menu and chose spelling it always reverts  to "EN US ver. 2." The reason for this is that all the languages are present in the system and Kate, but no "hunspell-en_gb" has been installed.

Attached screnshot is worth a 1000 words. I cannot explain it better in writing.
***


STEPS TO REPRODUCE
1. Go to KDE's application menu at the bottom left , hit meta key and type "spelling". Tick UK/GB
2. Close KATE and reopen Kate to be sure it loads/respects KDEs settings
3. Go to both: the bottom left and right corner of Kate and set language as in the screenshot.
4. Go to Kate's menu and chose spelling (not automatic).

OBSERVED RESULT:
1. On the bottom left in Kate it always reverts itself to US ver.2. No EN/UK spelling can be checked. It always reverts back to EN US ver2. The text is always treated as EN/US and nothing can be done. 

EXPECTED RESULT:
Make Kate (and Plasma) not show options in multiple places for a given language when this language dictionary is not installed (here "hunspell-en_gb"). Let Kate (and Plasma) show only installed langueages in order not to confuse users when they use this languages/spell checking throughout system:

A. Scenario 1: "hunspell-en_gb" has not been installed. Kate should not show to spell check or use GB/UK, because its reverting imediately back to EN/US

B. Scenario 2: "hunspell-en_gb" is installed. Kate now is allowed to show GB and GB/UK English in those two places (see screenshot)



SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9 

ADDITIONAL INFORMATION
UK stands for United Kingdom, not Ukraine. Its very confusing in plasma/kate/hunspell. I know about GB, but GB does not contain Northern Ireland which uses UK spelling.
Comment 1 TraceyC 2025-04-04 19:50:05 UTC
*** Bug 484453 has been marked as a duplicate of this bug. ***