Javascript library internationalization
QML and Qt Quick
2
Posts
1
Posters
908
Views
1
Watching
-
wrote on 6 Aug 2013, 15:30 last edited by
Hello,
I am trying to translate some strings from a .js library imported by my QMLs, the strings are found by lupdate but when I launch my app the qsTr function cannot find the translated string but it works with the strings in the QML files.
I am using QT 5.02
Javascript "file.js"
@
function func() {
var temp = qsTr("TEST")
return temp
}
@QML
@
import "file.js" as JSLIBText{
text: JSLIB.func()
}
@Thx
-
wrote on 7 Aug 2013, 10:51 last edited by
problem found, bug reported "https://bugreports.qt-project.org/browse/QTBUG-32850":https://bugreports.qt-project.org/browse/QTBUG-32850
1/2