<div dir="auto">QLocale::system <div dir="auto"><br></div><div dir="auto">If you starting application from sdk it's not using system environment, you should set environment variables door your project manually.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 29 мая 2019 г., 17:32 Tamas Miklos <<a href="mailto:uusi@freemail.hu">uusi@freemail.hu</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Guys,<br>
<br>
<br>
Thank you for your replies and comments. I've finally given in and opted for ...<br>
<br>
<a href="https://wiki.qt.io/How_to_do_dynamic_translation_in_QML" rel="noreferrer noreferrer" target="_blank">https://wiki.qt.io/How_to_do_dynamic_translation_in_QML</a><br>
<br>
... and it seems to work well. Sadly I couldn't figure out how to detect the SFOS system language and use it as the default language of my app.<br>
<br>
<br>
Thanks,<br>
Tamas<br>
<br>
-----Original Message-----<br>
From: Tamas Miklos <<a href="mailto:uusi@freemail.hu" target="_blank" rel="noreferrer">uusi@freemail.hu</a>> <br>
Sent: Sunday, May 26, 2019 10:39 PM<br>
To: '<a href="mailto:devel@lists.sailfishos.org" target="_blank" rel="noreferrer">devel@lists.sailfishos.org</a>' <<a href="mailto:devel@lists.sailfishos.org" target="_blank" rel="noreferrer">devel@lists.sailfishos.org</a>><br>
Subject: Dynamic QML refresh (localization)<br>
<br>
Hi,<br>
<br>
<br>
Is it possible to dynamically update QML strings after a language change initiated by the user from the Settings page of my app? In QT there's a QqmlEngine::retranslate() call, but I couldn't find a way to use that from a Sailfish app. I've found the following page as well, but it seems way too overkill to my liking :)<br>
<br>
<a href="https://wiki.qt.io/How_to_do_dynamic_translation_in_QML" rel="noreferrer noreferrer" target="_blank">https://wiki.qt.io/How_to_do_dynamic_translation_in_QML</a><br>
<br>
I've also found some apps to use the PageStack replace trick to refresh an already rendered QML page after language change, but it also seems too quirky to me.<br>
<br>
Please let me know what's the best way to achieve a user-friendly way of changing language of my app on-the-fly.<br>
<br>
<br>
Thanks,<br>
Tamas (author of AIDA64 for Sailfish)<br>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank" rel="noreferrer">devel-unsubscribe@lists.sailfishos.org</a></blockquote></div>