>>> when Widget is the one supporting translation,
>>> though we use direct access of the locale Manager.)
>>>
>>> statics :
>>> {
>>> BUTTONS : {
>>> ttt : {
>>> label : qx.locale.Manager.tr("Great"),
>>> toolTipIcon : null,
>>> toolTipText : qx.locale.Manager.tr("Life is great!")
>>> }
>>> }
>>> }
>>> }
>>>
Probably a much safer way to use this would be wrapping the ttt map into
a function:
BUTTONS : {
ttt : function() {
return {
label : qx.locale.Manager.tr("Great"),
toolTipIcon : null,
toolTipText : qx.locale.Manager.tr("Life is great!")
}
}
and call it with
widget.set(MyClass.BUTTONS.ttt());
This makes sure you don't run into any premature evaluation of the
qx.locale.Manager calls.
>>> then the
>>> localization info is not translated,
>
>>this sounds like you got it working through some other way. which was that?
>
> putting it within the member block, but then not static anymore.
Just moving the above BUTTONS map to "members" would have the same
effect, as they are also evaluated at class load time.
>
>>> instead falls back to the English
>>> version (probably the C version).
>
>>as this is evaluated at load time of the class, is it assured that the
>>i18n information has been loaded prior to that?!
>
> yes, as I said.
Where did you say that?
How is i18n information carried to the client? In the loader? With a
code package? Through a dedicated i18n part?
> Do you really want a static class to do ALL evaluations at load time?
That's not my decision. It's simply how Javascript code is evaluated,
and map values are evaluated immediately (That applies to all maps, not
just the "statics" map).
> ...including expected saved functions....
What is that?
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel