Reply
Thread Tools
EmaNymton's Avatar
Posts: 141 | Thanked: 267 times | Joined on May 2010 @ Germany
#1
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?
 
CepiPerez's Avatar
Posts: 1,023 | Thanked: 4,421 times | Joined on Feb 2010 @ Argentina
#2
lupdate works but don't use tr() function
check wazapp source code
the file waxmpp.py has some translations
__________________
Filebox / FileCase for Maemo / Harmattan / Sailfish
FlowPlayer for Maemo / Harmattan / Sailfish
Whatsup for Harmattan / Sailfish
CallBlocker for Harmattan

Support my work:
Paypal / Bitcoin
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:09.