On 09/30/2010 10:55 AM, Peter Schneider wrote:
> Hello Stefan,
>
> I don't want to be picky, but what did you expect when you apply the plus (+)
> operator on two Objects?
>
> this.tr("...") returns an instance of {LocalizedString}.
That's not quite right. It returns a string, unless you have set the
'qx.dynlocale' variant, in which case it returns a LocalizedString. But
this variant is off by default. This is the reason why keys translated
by this.tr() never react on changeLocale thereafter, if you don't have
set qx.dynlocale explicitly to on.
>
> I know that this is not documented directly at the Method (tr), but looking a
> little bit deeper you will find the Method qx.locale.Manager#translate() which
> is actually called. Here you see: It returns an Object.
You're right in that you have to dig into qx.locale.Manager#translate.
But then it's quite clear from the API docs that it returns either a
string or a LocalizedString.
T.
------------------------------------------------------------------------------
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