this.tr() needs a string *literal* as its first parameter, not a 
variable that happens to be bound to a string value.

T.

lp1051 wrote:
> Hi,
>
> I just started to learn qooxdoo, and I like it a lot! Everything works fine
> so far, but now I came to problem with this.tr(). Snippet of code:
> var title = "Title";
> var icon = "path_to_icon";
> var atom = new qx.ui.basic.Atom(this.tr(title), icon);
>
> When I try to generate source (or even source-all) I get always following
> error:
>   - Processing translation for 2 locales...
> !!! Could not extract translation from backoffice.fw.baseui.Desktop!
> !!! Unsupported param of type variable at line 145
>
> I have qooxdoo-0.8.3-sdk. When I do the same, but using this.tr("Title");
> the compilation completes successfully. Why can't I pass variable (which is
> type of string) into tr() method? Any help appreciated.
> Thanks, Luke
>   

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to