WL.BusyIndicator's text
option expect a string
, so you may not place a variable.
Instead, use WL.ClientMessages
. For example:
var busy;
function wlCommonInit(){
WL.ClientMessages.loading = "טוען...";
busy = new WL.BusyIndicator();
busy.show();
}
Reading material:
- Enabling Translation training module, slide #8