[email protected] wrote:
 Hi Thron

I tried this code in playground 
(http://demo.qooxdoo.org/0.8.2/playground/index.html)
var dateChooser = new qx.ui.control.DateChooser();
this.getRoot().add(dateChooser); qx.locale.Manager.getInstance().setLocale("no");

With locale: "no", "nb", "fr" and "de" and it looks like this is only working for 
"de".

Look, you cannot test this in the online Playground, as the online version is only compiled with ["en", "de"] locales. If you want to test in Playground, you have use the Playground of your local SDK installation, edit the config.json and set the LOCALE macro to the desired locales. Then re-compile Playground and open it in the browser. Then your snippet will make sense.

T.

S pozdravem / Best regards,

Monika Falk, Software Specialist
Tieto



Message: 4
Date: Tue, 27 Oct 2009 16:08:29 +0100
From: thron7 <[email protected]>
Subject: Re: [qooxdoo-devel] Internalization for date Chooser
To: qooxdoo Development <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Monika,

[email protected] wrote:
Hi Here is code snipped

var dateChooser = new qx.ui.control.DateChooser(); this.__informationPane.add(dateChooser);
                this.__userNameLabeltest = new 
qx.ui.basic.Label(this.tr("Globals:0214"));
                this.__informationPane.add(this.__userNameLabeltest);
                qx.locale.Manager.getInstance().setLocale("no");

And the result is that the label is translated (to "versjon") and the calendar is not. (I attached the screenshot). I also can confirm that in http://demo.qooxdoo.org/0.8.2/playground/index.html playground it is working fine,

No, actually it's not. If I paste the essentials of your code snippet into Playground the locale for the DateChooser is *not* switched.

This appears to be a bug in the generator, as the CLDR data for "no" is not picked up correctly. I opened a bug for it: http://bugzilla.qooxdoo.org/show_bug.cgi?id=2997

Meanwhile, you could try to use the locale "nb" in place of "no". This should work better. Please report back.

however in Showcase http://demo.qooxdoo.org/0.8.2/demobrowser/#showcase~Localization.html I cannot see anything translated.

I told you before that this demo is broken.

T.




------------------------------

Message: 5
Date: Tue, 27 Oct 2009 21:28:41 +0530
From: skar <[email protected]>
Subject: Re: [qooxdoo-devel] how to allow right-click to copy or paste
        a textbox or label's value?
To: qooxdoo Development <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

thron7 wrote:
Also, I can have the native context menu for a label, but I'm not able to select it even if I set it as selectable and rich. I'm on firefox 3.0.14.
On the rich label, selectable and native context menu work just fine, I just re-tested the demo in ff 3.0.14. For the normal label, see my reply to Ilkka.

Thanks for the pointers :)

I did this:
        APPROOT =  this.getRoot();
        var l = new qx.ui.basic.Label("<b>I'm bold!!!</b>")
        l.setSelectable(true);
        l.setRich(true);
        l.setNativeContextMenu(true);
        APPROOT.add(l, {top:20, left: 20});

Now, I can right click and select all in ff 3.0.14, but if I right click again to copy the label value, the selection goes away and no menu with copy is shown. Also, I expected to be able to select the text using the mouse, instead of right-click, then select all.

Is this the expected behavior?

I'm able to do it in the textfield and textarea, but not in label and atom, rich or not rich, selectable or not selectable.

cheers,
skar.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to