Hi,
maybe a stupid question but I didn't find anything about on the net.
I want to translate my application and have strings inside the python-files and qml files. For qml-files I used always lupdate and was fine. If I mark my strings in the python-file with self.tr("bla") lupdate gives me an error
Code:
tr() cannot be called without context
So after some search, I found this thread
which says use pylupdate4. This works now for the python file but not for the qmls. So my workaround for now is to copy and paste both generated ts-files together and it build the qm out of this one. This works but I feel I'm doing something wrong
Anyone out there who can help me or have a "cleaner" way?
maybe a stupid question but I didn't find anything about on the net.
I want to translate my application and have strings inside the python-files and qml files. For qml-files I used always lupdate and was fine. If I mark my strings in the python-file with self.tr("bla") lupdate gives me an error
which says use pylupdate4. This works now for the python file but not for the qmls. So my workaround for now is to copy and paste both generated ts-files together and it build the qm out of this one. This works but I feel I'm doing something wrong
Anyone out there who can help me or have a "cleaner" way?