KStars: Cannot change language
Ingo Klöcker
kloecker at kde.org
Fri Jun 21 11:47:58 BST 2024
On Freitag, 21. Juni 2024 10:31:50 CEST Jasem Mutlaq wrote:
> We have an issue with the recent versions of KStars is that language cannot
> be switched by users. This affects MacOS, Windows, and Linux, whether
> packaged or built from source.
>
> How to debug this issue? I can't see anything in the logs about the
> language switch issue. For example, I tried changing the language to German
> but the interface is still in English. Which component of KDE Frameworks is
> handling this at the backend? Any environment variables to check or watch
> out for?
>
> Any pointers would be appreciated.
On Sonntag, 2. Juni 2024 13:36:58 CEST I wrote in reply to your previous
message with subject "Re: Cannot change language":
I have just built the current master version (which calls itself 3.7.1 Stable)
with KDE Frameworks 5.115.0 and Qt 5.15.12 (on openSUSE Tumbleweed). I could
switch the language (via Help -> Configure Language) to different languages.
I have built kstars without the optional dependencies INDI, Nova, ERFA,
LibRaw, LibXISF, Qt5Keychain. Maybe one of those dependencies messes with the
LANGUAGE environment variable that KDE Frameworks use for overriding the
system language. Or Qt 5.15.13 is messed up.
===
Did you try building kstars without optional dependencies to verify my
observation that with such a build changing the language works?
Two KDE Frameworks are involved in changing the language. KXMLGui provides the
language switching dialog. Moreover it loads the configured language and sets
the environment variable LANGUAGE. KI18n loads the translations for the
language(s) in the LANGUAGE variable.
On Linux the configured languages are stored in/read from the file
~/.config/klanguageoverridesrc
Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20240621/2c5a847a/attachment-0001.sig>
More information about the Kstars-devel
mailing list