Thread
:
Dynamic text translations in pure QML
View Single Post
damagedspline
2011-07-02 , 21:14
Posts: 329 | Thanked: 505 times | Joined on Jul 2008 @ Israel
#
1
Posted a blog about it
and thought it should also be published here.
Basically it deals with translating texts and also allow a QML event to change the language - all in pure QML.
If you'd like to see the code in a formatted form, it is available:
translator.js
Translator.qml
QwazerSettings.qml
qwazer.qml
qwazer.he.js
Edit:
I forgot to mention that I added a bash script that scans the qml files and create new translations file (similar to lupdate) as a comment at the beginning of translator.js.
Last edited by damagedspline; 2011-07-02 at
21:18
. Reason: Utility script
Quote & Reply
|
The Following 4 Users Say Thank You to damagedspline For This Useful Post:
marxian
,
Penguin
,
Reffyyyy
,
Soulaxe
damagedspline
View Public Profile
Send a private message to damagedspline
Find all posts by damagedspline