On 10/19/2010 01:47 PM, Stefan Andersson wrote:
> Is there a reason for this code not to work?
>
> qx.Class.define("text.Wid",
> {
> extend : qx.ui.core.Widget, //(or nothing or qx.core.Object -> no
> difference of course!
"of course"?! - bullshit! of course it makes a difference, even if not
for this particular problem.
> 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!")
> }
> }
> }
> }
>
> When we access the ttt by doing a set of ttt to a widget,
"doing a set of ttt to a widget"??
> then the
> localization info is not translated,
this sounds like you got it working through some other way. which was that?
> 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?!
>
> Is it because the current locale for "no-man's-land" is not set (only
> for or through the Application class)? It would be expected to translate!
>
> Stefan
>
>
>
> ------------------------------------------------------------------------------
> 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
------------------------------------------------------------------------------
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