Hi. > Depends what you consider a solution ;). this.tr() requires a string > *literal* as its first parameter, not just an expression that evaluates > to a string at run time. This is because this string literal is > extracted as the key for .po files at compile time.
I don't mind adding the strings manually to the .po files. I just want to have the code compiled. Is there a way to achieve this, other than eval()? Otherwise, this.tr is not that much useful. On the other hand, it's IMO in principle somewhat fishy to have some perfectly valid code break compilation. You can have code compiled which calls functions which are unknown to qooxdoo at compile time, but you can't call this.tr with something which at runtime evaluates to a perfectly valid key. I'd see the point in a warning, but IMO an error is not OK. br, flj ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
