Is there a way to load the .ts files directly with QTranslator, without compiling them to .qm?
Solved
QML and Qt Quick
-
wrote on 18 Nov 2020, 22:51 last edited by
I'm interested to know if there is a way to load the .ts translation files directly with QTranslator, without having to compile them to .qm first. Is it possible, or there is no way to perform that and the files should always be compiled before be loaded by the QTranslator object?
-
There is no way that I know of. You should always use QM files in QTranslator.
-
wrote on 19 Nov 2020, 11:59 last edited by
ok, thank you very much for the answer
-
wrote on 19 Nov 2020, 13:25 last edited by
I think you can bundle
lupdate
in your application and create qm file on the fly.P.S. : TS files are just xml files, so you can change them in your own application, via user feedback or something else
1/4