Today Roman Schmid wrote: > Hi Tobi > > Thanks for your input. > Dynamically building the form from a map that comes from the server > sounds tempting :) > Too bad that the values (eg. label text) coming from the server won't be > wrapped by the translation features of qooxdoo...
well if you know what the labels are going to be, you can have a map for them in the js code and use the translation feature on them: var labele_tr = { 'hello world': this.tr('hello world'), 'yes yes yes': this.tr('yes yes yes') }; var label_translated = label_tr[label] || label; not quite sure about the innner workings of the translation system, maybe there is even a way todo this without writing the label text twice. with a pre processor this would certainly be possible. cheers tobi -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch t...@oetiker.ch ++41 62 775 9902 / sb: -9900 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel