[stringtemplate-interest] deployment question

Colin Bean ccbean at gmail.com
Sat Aug 18 19:15:49 PDT 2007


Take a look at this article by John Snyders:

http://hardlikesoftware.com/weblog/2007/01/15/i18n-with-stringtemplate/

Should work for what you're doing.

-Colin



On 8/18/07, Greg Parker <greg.parker at brovada.com> wrote:
> Just curious to see if StringTemplate can solve a particular deployment
> requirement I have on a project.  Currently we host a repository full of
> Velocity templates that our clients download and use within software
> installed on their computers.  We are now getting ready to add
> muti-language support to these templates.  I would like to maintain one
> copy of each template and simply externalize all the language elements
> into resource files.  At deployment time I would like to preprocess the
> templates into one repository per supported language.  So all we have to
> do is maintain one template, and one resource file per language.  The
> problem is that the templates are velocity templates.  If I use velocity
> to preprocess the templates to add the language support, I will also
> inadvertently affect the template variables that have nothing to do with
> language support.  I just thought I would post this question on the off
> chance that StringTemplate has some type of facility for this, or that
> someone might have a solution.
>
> Thanks
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
>


More information about the stringtemplate-interest mailing list