Sunday, 25 August 2013

i18n vs qsTr (what is the difference)

i18n vs qsTr (what is the difference)

In this tutorial
http://developer.ubuntu.com/resources/tutorials/getting-started/currency-converter-phone-app/
you can see i18n.tr was used for the internationalisation of text in the
Qml file. Today I checked this tutorial:
http://qt-project.org/doc/qt-5.0/qtquick/qtquick-internationalization.html
where they use another technique (qsTr).
What is the difference between the two? What makes one better than the
other in some situations?

No comments:

Post a Comment