Bug 396370 - The languages set with KLocalizedString::setLanguages are used randomly instead of in order of priority
Summary: The languages set with KLocalizedString::setLanguages are used randomly inste...
Status: REPORTED
Alias: None
Product: frameworks-ki18n
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources macOS
: NOR normal
Target Milestone: ---
Assignee: Chusslove Illich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-10 14:33 UTC by Halla Rempt
Modified: 2022-11-29 11:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Halla Rempt 2018-07-10 14:33:09 UTC
On macOS, QLocale::uiLanguages returns a list of languages in order of priority. If this list is set with KLocalizedString::setLanguages, translations are used randomly from the languages in this list, instead of in order. With Plasma or Windows  QLocale::uiLanguages only returns one language, so the behaviour is not as apparent.
Comment 1 Christoph Feck 2018-08-02 19:19:49 UTC
Hm, Plasma allows to configure multiple languages (including order), but I am not sure if this configuration is used directly, or also passed via QLocale.
Comment 2 Justin Zobel 2022-11-29 05:06:30 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Halla Rempt 2022-11-29 11:31:26 UTC
Yes, this is still relevant. Bugs don't get fixed automagically, on the whole, but need developer attention. And if a developer actually fixes an issue, they will most likely close the relevant bug...