PDA

View Full Version : [CLOSED] Ext.view.AbstractView.prototype.msg problem when ResourceManager's locale is set to EN



RCN
Dec 17, 2012, 1:29 PM
The following example shows an alert that displays Ext.view.AbstractView.prototype.msg when ResourceManager's DocumentReady is fired. It works properly - it shows 'Carregando...' - if the ResourceManager's Locale is set to pt (Portuguese), but it shows 'undefined' if the ResourceManager's Locale is set to en (English)

Any ideas to overcome this issue?



<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title>Index</title>
<script type="text/javascript">
var docReady = function () {
alert(Ext.view.AbstractView.prototype.msg);
}
</script>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" Locale="pt" runat="server">
<Listeners>
<DocumentReady Handler="docReady();" />
</Listeners>
</ext:ResourceManager>
</body>
</html>

Daniil
Dec 17, 2012, 4:17 PM
Hi Raphael,

I can suggest this.


var msg = Ext.view.AbstractView.prototype.msg;

if (!msg) {
msg = Ext.view.AbstractView.prototype.loadingText;
}

The problem is related to this bug.
http://www.sencha.com/forum/showthread.php?245783

RCN
Dec 17, 2012, 4:31 PM
Thank you Daniil, please keep me posted about any update regarding this issue.

Daniil
Dec 17, 2012, 4:34 PM
Ok.

I am marking this thread closed.

But this one stays open.
http://forums.ext.net/showthread.php?21464

RCN
Dec 17, 2012, 4:59 PM
I agree. Excuse me for opening a new thread regarding the 'same' issue

Daniil
Dec 18, 2012, 3:41 AM
No problem, Raphael!