You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
Some code of our team using a particular way to declare some "mini class" inside of a qooxdoo class.
qx.Class.define("myProject.MyClass",{extend: qx.ui.container.Composite,include : [qx.locale.MTranslation],construct: function(){this.SortOfClass=newthis.__CreateSortOfClass(this,someArguments);}members: {__CreateSortOfClass(pThis,someArguments){letthat=pThis;// Some initializationletsomeTrad=that.tr("MyStringToTranslate");}}}
In this particular case the qx.tool.compiler.ClassFile.js doesn't recognize that as a thisAliases and so it can be a problem for example for translations, because the "MyStringToTranslate" isn't recognize as a translation Id used so isn't added to qx.$$translations and so the tr return the Id instead of the translated string.
I recognize that it is a very particular use case and for the moment we found a fix by using "writeAllTranslations" : true in compile.json, however I don't know if it can cause other problems and if one of you want to have a look and have a solution it would be very pleasant for us ;)
The text was updated successfully, but these errors were encountered:
Some code of our team using a particular way to declare some "mini class" inside of a qooxdoo class.
In this particular case the
qx.tool.compiler.ClassFile.js
doesn't recognize that as a thisAliases and so it can be a problem for example for translations, because the"MyStringToTranslate"
isn't recognize as a translation Id used so isn't added to qx.$$translations and so the tr return the Id instead of the translated string.I recognize that it is a very particular use case and for the moment we found a fix by using
"writeAllTranslations" : true
incompile.json
, however I don't know if it can cause other problems and if one of you want to have a look and have a solution it would be very pleasant for us ;)The text was updated successfully, but these errors were encountered: