[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Configure Language issue in KStars
From:       Albert Astals Cid <aacid () kde ! org>
Date:       2022-11-16 21:57:38
Message-ID: 2271526.S7mQNc8dVW () xps15
[Download RAW message or body]

El dimecres, 16 de novembre de 2022, a les 10:07:27 (CET), Jasem Mutlaq va escriure:
> Hello,
> 
> For the past few releases, users are unable to switch languages in KStars.
> It remains in the system language. This is reported across Linux, MacOS, &
> Windows so it is most likely related to some change in KF5.
> 
> There was a recent discussion on this topic here:
> https://www.mail-archive.com/kde-devel@kde.org/msg13386.html
> 
> I checked if we have similar warnings as described here:
> https://invent.kde.org/education/labplot/-/merge_requests/173
> 
> But I couldn't find similar issues in KStars build logs. 

I guess you're running an old ki18n

Here you have it.

kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Idle" \
                msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "In Progress" \
                msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Error" \
                msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Aborted" \
                msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Complete" \
msgid_plural: "" msgctxt: ""

Comes from kstars/kstars/ekos/capture/sequencejob.cpp:26

> When running
> KStars, I see this warning:
> 
> [2022-11-16T08:02:50.001 +03 WARN ][                       default] -
> qrc:/qml/mount/mountbox.qml:428: ReferenceError: xi18n is not defined
> 
> Not sure if this is related? Any ideas on what is causing this issue?


m_BaseView = new QQuickView();
m_BaseView->setSource(QUrl("qrc:/qml/mount/mountbox.qml"));
m_Ctxt = m_BaseView->rootContext();
m_Ctxt->setContextObject(new KLocalizedContext(m_BaseView));

The order is wrong, you are first setting the qml file and then setting the thing \
that provides xi18n

Cheers,
  Albert


> --
> Best Regards,
> Jasem Mutlaq


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic