check which translation contains missed strings and install it with
translators also, i just greped translations folder myself to find this
sailfishsilica-qt5.
24.04.2015 21:25, Dmitriy Purgin пишет:
Thanks, didn't look at the QCoreApplication::installTranslator().
I used the sample piece you
Thanks, didn't look at the QCoreApplication::installTranslator().
I used the sample piece you provided as follows (mind dash as prefix):
translator.load(locale, "sailfishsilica-qt5", "-",
"/usr/share/translations");
Anyway, it seems to do only part of the job, which is strange considering
it con
So, you install multiple translators, not load multiple times, and it
will work.
24.04.2015 20:23, Dmitriy Purgin пишет:
Hi Andrey,
thanks for suggestion. Unfortunately, according to Qt documentation
for QTranslator::load():
> The previous contents of this translator object are discarded.
Hi Andrey,
thanks for suggestion. Unfortunately, according to Qt documentation for
QTranslator::load():
> The previous contents of this translator object are discarded.
So you load either sailfishsilica-qt5 or strings for your application.
Regards
Dmitriy
2015-04-23 11:01 GMT+06:00 Andrey Koz
This is my solution for you:
QLocale locale("fi_FI");
QLocale::setDefault(locale);
translator.load(locale, "sailfishsilica-qt5", "",
"/usr/share/translations", "");
23.04.2015 08:55, Dmitriy Purgin пишет:
Hi,
thanks for reply.
I do install custom translations with
QApplication
Hi,
thanks for reply.
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.
Regards
2015-04-23 0:07 GMT+06:00 Ove Kåven :
> Den 22. april 2015 18:56, skrev Dm
Den 22. april 2015 18:56, skrev Dmitriy Purgin:
$ LANG=ru_RU invoker --type=silica-qt5 appbin
does not change the app locale, it behaves as if there were no
LANG=ru_RU at all. So does QLocale::setDefault().
I think setting environment variables and calling QLocale::setDefault
only works if Q
Hi,
thanks for reply!
I did a quick test on the emulator, it does work without invoker, but the
app just uses system locale if launched via invoker. I think it has
something to do with Qt libraries being already preloaded when using
booster.
I guess my question is wrong in its formulation. Actua
oh sorry, then you can use qputenv function in your main cpp file
22.04.2015 16:38, Dmitriy Purgin пишет:
Hi Andrey,
I was referring to launching the application with .desktop files. As
you surely know these reside in /usr/share/applications and are used
to display applications to user, so th
ke, 2015-04-22 kello 14:23 +0600, Dmitriy Purgin kirjoitti:
> Hi all,
>
>
> I'm trying to make a .desktop file that launches an application with
> customized LANG environment variable. I came up with the
> following .desktop file (irrelevant entries removed):
>
>
> [Desktop Entry]
> Type=Applic
Hi Andrey,
I was referring to launching the application with .desktop files. As you
surely know these reside in /usr/share/applications and are used to display
applications to user, so that the user could run the application by
clicking on its icon in Launcher view. I'm talking about changing
envi
In Qt Creator: Projects - Run - Run Environment
http://i.imgur.com/FArKbn2.png
22.04.2015 13:23, Dmitriy Purgin пишет:
Hi all,
I'm trying to make a .desktop file that launches an application with
customized LANG environment variable. I came up with the following
.desktop file (irrelevant ent
12 matches
Mail list logo