> One curious thing about i18n.tr() and JavaScript is that I'm able to use it
> directly in the JavaScript file in OSMTouch, but not in Calendar. See http://b
> azaar.launchpad.net/~yohanboniface/osmtouch/trunk/view/head:/components/Catego
> ries.js
> I need to investigate this.
This is because, Calendar JS file is shared library, declared by
.pragma library. But your JS file does not seems to be shared lib.
> One curious thing about i18n.tr() and JavaScript is that I'm able to use it b .net/~yohanboni face/osmtouch/ trunk/view/ head:/component s/Catego
> directly in the JavaScript file in OSMTouch, but not in Calendar. See http://
> azaar.launchpad
> ries.js
> I need to investigate this.
This is because, Calendar JS file is shared library, declared by
.pragma library. But your JS file does not seems to be shared lib.
http:// qt-project. org/doc/ qt-5/qtqml- javascript- resources. html