with

"LOCALES"      : [ "en", "en_GB", "en_US", "sv", "sv_SE", "pt", "pt_BR", "es", 
"es_MX", "es_ES", "fi", "fi_FI", "sv_FI", "de", "de_DE", "de_AT", "de_CH" ],

this line:

qx.locale.Manager.getInstance().setLocale("sv_SE");

does not have any effect and does not print any errors!

doing 

qx.locale.Manager.getInstance().getLocale();


directly after gives: sv_SE

putting this to see if an event is sent out:

qx.locale.Manager.getInstance().addListener("changeLocale", function() {
  alert("funktioniert");
}, this);

works fine, the alert comes up.

But still the widgets don't get updated and they are all derived from 
qx.ui.core.Widget

We have followed the manual exactly as far as we can see and we had it working 
well before! After that we have done no changes which should affect it...

We removed the whole directory of .po files and recreated it by the generator. 
No difference!

The widgets seems to be unresponsive to the event... No errors/messages are 
printed! It simply does not update the widgets!

It seems to us that it is connected to responsiveness of qx.ui.core.Widget to 
the changeLocale event or it is not doing as it should do, redrawing the 
widgets with the new locale.

......

Further research shows that qooxdoo does not automatically load the language 
part, the locale, which would have been quite natural. This was not documented 
in the manual.

So this is the addition to the manual:
--------------------------
Locale in separate part
--------------------------------

When you have set the i18n-with-boot to false in config.json:

  "jobs" :
  {
    "common" :
    {
      "packages" :
      {
        "loader-with-boot" : false,
        "i18n-with-boot" : false,
...

It is necessary to load the language module separately like this:

      var lang = "sv_SE";

      // Load language part
      qx.io.PartLoader.require([lang], function ()
      {
        // Set the locale so all the widgets will get updated.
        qx.locale.Manager.getInstance().setLocale(lang);
      }, this);


else qooxdoo can not use the new locale. Qooxdoo does not support automatic 
loading of locale parts and changing it to the new one by setLocale.
--------------------------------------

Here follows that when not the language part was loaded, no message or warning 
or error occurred! Of course there must be some message delivered to the user 
telling what happened.


Stefan
                                          
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to