Philipp Wabinski schrieb: > Hi, > > I tried the following: > > this.ld.push({ title : { text : this.tr("ProjektMP_AM statefilter state new > aufmass" ) }, id : { text : 0 }, icon : { source : CONFIG["flare_icon"] + > "/_flare_state_yellow.gif"}}); > > and get the following error: > > 038454 ERROR: qx.ui.listview.ContentCellText[2399]: Attention! The value > "Sprachvariable Test" is an invalid value for the property "text" which must > be typeof "string" but is typeof "object"!: Error - at > https://localhost/go/AJAX/qooxdoo-0.6.6-sdk/frontend/framework/source/class/qx/OO.js:634 > .... > .. > you can use:
this.tr("ProjektMP_AM statefilter state new aufmass").toString() But keep in mind that the listview does not automatically update if the language changes. Best Fabian > I also tried to used the langvars for a table entry and also got an > error.... > > I thought it is possible to use this.tr() everywhere. > > I also tried: toString(this.tr("ProjektMP_AM statefilter state new > aufmass" )) > but this doesn`t return the value of the language var :( > > I`m using qooxdoo 0.6.6 > > Thanks for any help > > Philipp > -- Fabian Jakobs JavaScript Framework Developer 1&1 Internet AG Brauerstraße 48 76135 Karlsruhe Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel