Using Ux.locale.Manager.get() when loading classes.
I'd like to translate dataview.List#emptyText, but I'm using some HTML there and I'd like to avoid putting it in translated text. Is there any way to do it?
The way Sencha loads classes, makes Ux.locale.Manager unavailable while loading classes (I'm loading in inside Ext.application#requires and then initializing it inside Ext.application#launch method), so I guess something like this won't work:
I've got the same issue in other places as well e.g. with templates. In Ext.Panel view I'm using quite a long template - is there a way to translate just parts of the template, so that I don't have to put the whole template into translated text?
emptyText: "<lots of html>" + Ux.locale.Manager.get("emptyText") + "</lots of html>"
It looks like Sencha in most places accepts only strings, which are evaluated when class is loaded and doesn't allow to pass e.g. functions that return strings to defer their evaluation.