<div dir="ltr"><div>Thanks. Just to be clear, I'm talking about changing language from Help --> Configure Language dialog that is standard in KDE applications.</div><div><br></div><img src="cid:ii_lxohanak0" alt="Screenshot_20240621_121812.png" width="562" height="338"><br><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>--</div><div>Best Regards,<br>Jasem Mutlaq<br></div><div><br></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 21, 2024 at 12:16 PM Konstantin Kharlamov <<a href="mailto:Hi-Angel@yandex.ru">Hi-Angel@yandex.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Looking at the repo, I see the `po/` dir which implies it's using GNU<br>
gettext for translation. Fairly standard choice. Strings are marked for<br>
translation by using a `_` macro, like `_("My english text")`.<br>
<br>
I don't remember the details, but it basically has something like a<br>
database of such texts and their lines with the according translations.<br>
When it needs to represent a translated string it basically does so by<br>
searching in that db.<br>
<br>
Language may be changed by different means. On Linux and Unix systems<br>
it's usually variables such as `LANG`. So e.g. `LANG=en_US.UTF-8<br>
kstars` should launch it with english language.<br>
<br>
If you have a way to switch language via interface, I presume it is<br>
handled by some gettext API that overrides whatever's being told by<br>
env. variables.<br>
<br>
HTH<br>
<br>
On Fri, 2024-06-21 at 11:31 +0300, Jasem Mutlaq wrote:<br>
> Hello,<br>
> <br>
> We have an issue with the recent versions of KStars is that language<br>
> cannot be switched by users. This affects MacOS, Windows, and Linux,<br>
> whether packaged or built from source.<br>
> <br>
> How to debug this issue? I can't see anything in the logs about the<br>
> language switch issue. For example, I tried changing the language to<br>
> German but the interface is still in English. Which component of KDE<br>
> Frameworks is handling this at the backend? Any environment variables<br>
> to check or watch out for?<br>
> <br>
> Any pointers would be appreciated.<br>
> <br>
> --<br>
> Best Regards,<br>
> Jasem Mutlaq<br>
> <br>
<br>
</blockquote></div>