a little misunderstanding - to clearify :
I want to translate the whole application @runtime ... but nothing happens,
the locale itself will changed correctly.
the code (application.js, main):
qx.locale.Manager.getInstance().addListener("changeLocale", function()
{
var loc = qx.locale.Manager.getInstance().getLocale();
alert(loc);
}, this);
is used only to check if the locale is changed ...
a few lines of code :
application.js (here the above listener is
placed to see if the locale is changed)
/page/LanguageChangePage.js (here the buttons are placed to change the
language)
qx.Class.define("myapp.page.LanguageChangePage",
{
extend : qx.ui.mobile.page.NavigationPage,
........
btn_en.addListener("tap", function() {
qx.locale.Manager.getInstance().setLocale("en");
},this);
btn_fr.addListener("tap", function() {
qx.locale.Manager.getInstance().setLocale("fr");
},this);
btn_de.addListener("tap", function() {
qx.locale.Manager.getInstance().setLocale("de");
},this);
If I place the line "qx.locale.Manager.getInstance().setLocale("en");" at
the beginning of the page contruction, the page itself is translated
correctly, if this line is placed inside a listener of a button, nothing
happens, but the Locale is changed correctly.
So what event or rerendering must be triggered, to make the translation
visible inside the whole application on all pages ?
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/how-to-refresh-after-setLocale-qx-application-Mobile-tp7582308p7582310.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel