Amit, I suppose you are working with qooxdoo 0.8. The issue has already been fixed in trunk. I believe the issue comes up when you try to switch the locale for a label that has not been initialized with a string. If you want to stick with 0.8 for a while, try to make sure all your labels are initialized before you switch the locale (maybe even invisible labels). Let us know how you fare.
Thomas Amit Rana wrote: > Hi, > > I have a language selection menu in my application. When I try to switch > the language, I get an error : > > content is null (label.js line 333). > > here is the detailed error report : > on()(qx.event.type.Data[up] $$hash=up _type=changeLocale)Label.js (line 333) > dispatchEvent()(qx.locale.Manager[5] $$hash=5 __translations=Object > __locales=Object, qx.event.type.Data[up] $$hash=up _type=changeLocale, > "changeLocale")Direct.js (line 99) > wrappedFunction()Interface.js (line 347) > dispatchEvent()(qx.locale.Manager[5] $$hash=5 __translations=Object > __locales=Object, qx.event.type.Data[up] $$hash=up > _type=changeLocale)Manager.js (line 642) > fireEvent()(qx.locale.Manager[5] $$hash=5 __translations=Object > __locales=Object, "changeLocale", function(), ["de", "en_us" 0=de > 1=en_us])Registration.js (line 253) > (?)()("de")Pane.js (line 619) > (?)()()ToolBar.js (line 131) > dispatchEvent()(qx.ui.form.RadioGroup[7j] $$hash=7j __items=[4] > $$user_name=lang, qx.event.type.Data[uo] $$hash=uo _type=changeSelected, > "changeSelected")Direct.js (line 99) > wrappedFunction()Interface.js (line 347) > dispatchEvent()(qx.ui.form.RadioGroup[7j] $$hash=7j __items=[4] > $$user_name=lang, qx.event.type.Data[uo] $$hash=uo > _type=changeSelected)Manager.js (line 642) > fireEvent()(qx.ui.form.RadioGroup[7j] $$hash=7j __items=[4] > $$user_name=lang, "changeSelected", function(), > [qx.ui.menu.RadioButton[7r] $$hash=7r > __containerElement=qx.html.Element[7s], qx.ui.menu.RadioButton[7k] > $$hash=7k __containerElement=qx.html.Element[7l] > 0=qx.ui.menu.RadioButton[7r]])Registration.js (line 253) > (?)()Property.js (line 619) > _onItemChangeChecked()(qx.event.type.Data[1v] $$hash=1v > _type=changeChecked)RadioGroup.js (line 302) > dispatchEvent()(qx.ui.menu.RadioButton[7r] $$hash=7r > __containerElement=qx.html.Element[7s], qx.event.type.Data[1v] $$hash=1v > _type=changeChecked, "changeChecked")Direct.js (line 99) > wrappedFunction()Interface.js (line 347) > dispatchEvent()(qx.ui.menu.RadioButton[7r] $$hash=7r > __containerElement=qx.html.Element[7s], qx.event.type.Data[1v] $$hash=1v > _type=changeChecked)Manager.js (line 642) > fireEvent()(qx.ui.menu.RadioButton[7r] $$hash=7r > __containerElement=qx.html.Element[7s], "changeChecked", function(), > [true, null 0=true])Registration.js (line 253) > (?)()Property.js (line 619) > _onMouseUp()(qx.event.type.Mouse[1ox] $$hash=1ox > _type=mouseup)RadioButton.js (line 147) > _dispatchEvent()(qx.event.type.Mouse[1ow] $$hash=1ow _type=mouseup > _target=label)EventHandler.js (line 264) > dispatchEvent()(label, qx.event.type.Mouse[1ow] $$hash=1ow _type=mouseup > _target=label, "mouseup")Abstract...bbling.js (line 211) > dispatchEvent()(label, qx.event.type.Mouse[1ow] $$hash=1ow _type=mouseup > _target=label)Manager.js (line 642) > fireEvent()(label, "mouseup", function(), [mouseup clientX=933, > clientY=97, label, null, 2 more... 0=Event mouseup 1=label 3=true > 4=true])Registration.js (line 253) > __fireEvent()(mouseup clientX=933, clientY=97, "mouseup", label)Mouse.js > (line 175) > _onButtonEvent()(mouseup clientX=933, clientY=97)Mouse.js (line 356) > (?)()() > > How can I prevent this ? > > regards > Amit Rana > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel