Re: request for widget library status report
Emiliano Heyns <[email protected]> Sun, 20 Apr 2003 15:52:24 +0200
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <[email protected]> |
Andrew Kohlsmith wrote: >><box text="&main.title;"/> >>Whether this is more useful is subjective, I think. > > I definately see the utility in that. How is this defined in the DTD? <!ENTITY main.title "Any old string you like"> > Is > there any advantage to having a const keyword in the engine or a static > block and saying something like > > <box text=static.mainTitle/> > > or > > <box text=xwt.translations.static.mainTitle/> I didn't realize you could do that. > where you just xwt.theme() your favourite language on to xwt.translations? The latter is more flexible if you want on-the-fly translations. With the DTD, it's not possible to translate on the fly, since the DTD is fixed-in -- the javascript code will never see it, nor the entities. I think you can't theme stuff that is in a static section, though. Emile _______________________________________________ http://lists.xwt.org/listinfo/dev