>
Hi again,
I just wrote a workaround for the issue that the selected entry wont be
translated in my application. The event listener for the language changer
now stores the selected ListItem, then changes the selection to the first
item, which is "?" and will never be translated :) and changes the selection
back to the original value after the language change. The only downside is
that you can see a short flickering of the field text during the language
change, but this is only a minor glitch.
My language changer event listener now looks like this:
radioManager.addEventListener("changeSelected", function(e) {
var comboSel = combo.getList().getSelectedItem();
combo.setSelected(combo.getList().getFirstChild());
var lang = e.getData().getUserData("locale");
this.debug("lang:" + lang);
qx.locale.Manager.getInstance().setLocale(lang);
combo.setSelected(comboSel);
});
This is only a minor workaround, but I hope this helps someone out there
as well. :)
Regards,
Daniel Haferkorn
Peter Schneider <p.schneider <at> tis-gmbh.de> writes:
> The only thing that does not work is the update of the "current selection"
> field.
> In my example there is a language-selection box and an "apply" button.
> The following code works in that way, that after a language change all items
> will be displayed in the new language.
> What is not working is the update of the _field element (current selection).
> I think we (you ;) ) have to add an event listener for the "changeLocale"
> event...
> Here's the code: (fragment)
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel