Hi Luke,

just ignore my first post ... I really need to get another cup of coffee :)

On Monday 07 December 2009 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.
The first parameter of the "tr" method has to a string because this one is the 
"messageId" which is written into the generated PO files. So you cannot use any 
variables which are interpreted at runtime.

cheers,
  Alex

------------------------------------------------------------------------------
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