Bug 462168

Summary: Languages are only available in the language list if they have Plasma translations
Product: [Applications] systemsettings Reporter: MohammadSaleh Kamyab <mskf1383>
Component: kcm_regionandlangAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: gudmundure, hanyoung, nate
Priority: NOR    
Version First Reported In: 5.26.3   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description MohammadSaleh Kamyab 2022-11-23 13:15:03 UTC
Persian is not listed in languages and the only way to set language to Persian is to edit `plasma-localerc` file.
Please add it.
Thanks!
Comment 1 Nate Graham 2022-11-29 19:41:11 UTC
So you're saying your system uses the Persian language correctly if you manually edit the config file, but the language doesn't appear in the language list?
Comment 2 MohammadSaleh Kamyab 2022-11-30 13:48:28 UTC
(In reply to Nate Graham from comment #1)
> So you're saying your system uses the Persian language correctly if you
> manually edit the config file, but the language doesn't appear in the
> language list?

Translation of KDE to Perisan is realy poor, but when I manually edit config file, It become RTL (Right-To-Left) and also I can see some Persian strings. 
But it is not in the languages list.
Comment 3 Nate Graham 2022-11-30 17:44:43 UTC
Ok, so the problem is that some software on the system is translated into Persian, but Persian isn't listed as valid language in the language list, even though using it (kind of) works. Thanks.
Comment 4 hanyoung 2022-12-01 14:33:46 UTC
probably because Persian is not in "plasmashell" domain. We get the available languages via `m_availableLanguages = KLocalizedString::availableDomainTranslations("plasmashell").values()`
Comment 5 hanyoung 2023-01-05 13:08:52 UTC
Most likely there is no `plasmashell.po` in https://websvn.kde.org/trunk/l10n-kf5/fa/messages/plasma-workspace/
Comment 6 Nate Graham 2023-01-05 20:13:13 UTC
*** Bug 463165 has been marked as a duplicate of this bug. ***