Re: i18n

Charles Goodwin <[email protected]> Wed, 9 Apr 2003 09:32:49 +0100
Newsgroups gmane.comp.java.xwt.general
Message-ID <308906BE5D07D5119285009027D61C5722F6D2@NTFPS1>
> > I used <template /> because I didn't have great success with xwt.static
and
> > theming.  I'm hoping xwt.overlay() will fix this.
> 
> But this would mean the vars would most likely wind up duplicated in
> each template, yes? That could mean a substantial memory overhead.
> Right? Wrong?

Wrong, because rather than using static, we're exporting it to a separate
template that you only instantiate once.  Plus, you could always make use of
static from within that template:

<xwt>
    <static>
        var somevarx = "somestring";
    </static>

    <template>
        var varx = xwt.static.path.to.this.template.somevarx;
    </template>
</xwt>

> *ding*. I get it. The import makes "teststrings" 'local' of sorts; the
> template applies itself *automatically* (I missed that part -- so much
> more makes sense now), the vars are accessible, badaboom, badabing.

Yeah, along those lines.
_______________________________________________
http://lists.xwt.org/listinfo/dev