[SailfishDevel] How to translate (lupdate) ?
Franck Routier (perso)
alci at mecadu.org
Thu Jan 2 20:00:05 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I finally used the lupdate binary found in the Harmattan SDK somewhere
on my hard disk.
Also, to make it process qml files, I used this trick
(https://developer.nokia.com/Community/Wiki/Lupdate_with_qml_files),
which consists in listing the qml files this way in the .pro file:
evil_hack_to_fool_lupdate {
SOURCES += \
qml/Splash.qml \
qml/Login.qml \
...
}
Notice that running lupdate with a ts.list file as Andrey suggested
failed with a message telling me the files had a "no recognized
extension."
Ok, this did the trick for now, but I'm still wondering how this is
supposed to work from within the SailfishOS SDK...
Best regards,
Franck
Le 02/01/2014 19:11, Andrey Kozhevnikov a écrit :
> i'm always using self-created ts.list text file with list of paths
> to files contains strings
>
> and my lupdate syntax:
>
> lupdate -verbose -ts languages/en_US.ts @ts.list
>
> On 02.01.2014 23:44, Franck Routier (perso) wrote:
>> Le 02/01/2014 18:37, Andrey Kozhevnikov a écrit :
>>> its inside build machine. qmake will run lupdate/lrelease from
>>> internal path.
>> Ok, I understand. So I have to start the MerSDK virtual machine
>> for lupdate to work.
>>
>> Then, shouldn't it generate some .ts file in my project ? (its
>> the first time I use QT Linguist, still learning, thanks for your
>> patience)
>>
>>
>> Regards, Franck _______________________________________________
>> SailfishOS.org Devel mailing list
>
> _______________________________________________ SailfishOS.org
> Devel mailing list
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJSxcVFAAoJEGEvoAir78RowoQH/idqyCx/+mYDYSkxEQrH3xkf
s1E3t6dShlTQH0Z0JOuiTuO3aND2rQV5mA/ROUVU7jzb2557stahCLAFr1ODfnn4
R437WizgA8b0uTzEwpdXRE3r+i189adxs+tsyyC++iaRj2W7tO16nrhagOq06VyA
/AXkWwGUoxlcODB/Q6XWlJAsKo0ta0GDMEYe0UJge40CavW0vb3jFYydF2UOqhq/
x21PVh8+xgNr4JGn+c11o0NXMJIBF3LCwI254jp2P9XdRlecaphL87e/Nt2cB+NS
nqw0bidwgsxnVPM1R85ycmDzPjnjnw+2apcrafpM8NP6UKRmmRIU2HXWUE9PIiI=
=2IKG
-----END PGP SIGNATURE-----
More information about the Devel
mailing list