<div dir="ltr"><div><div><div>Hi,<br><br></div>thanks for reply. <br><br></div>I do install custom translations with QApplication::installTranslator() and it does work on Sailfish but as I mentioned before formatting facilities and system messages stay in OS language. <br><br></div>Regards<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-23 0:07 GMT+06:00 Ove Kåven <span dir="ltr"><<a href="mailto:ovek@arcticnet.no" target="_blank">ovek@arcticnet.no</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Den 22. april 2015 18:56, skrev Dmitriy Purgin:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$ LANG=ru_RU invoker --type=silica-qt5 appbin<br>
<br>
does not change the app locale, it behaves as if there were no<br>
LANG=ru_RU at all. So does QLocale::setDefault().<br>
</blockquote>
<br></span>
I think setting environment variables and calling QLocale::setDefault only works if Qt has not yet been initialized. Since the invoker has already initialized Qt, changing the default locale is probably impossible.<br>
<br>
It seems possible to force Qt to use different translations, though, with QApplication::installTranslator. Just load the necessary Russian translations and install them, and Qt will use them. There's an example on <a href="http://wiki.qt.io/How_to_create_a_multi_language_application" target="_blank">http://wiki.qt.io/How_to_create_a_multi_language_application</a>, but not sure how it would work on Sailfish...<div class="HOEnZb"><div class="h5"><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">devel-unsubscribe@lists.sailfishos.org</a><br>
</div></div></blockquote></div><br></div>