>From: "Ian.Priest" <[EMAIL PROTECTED]>
>
> The site I'm working on has quite a lot of largish static pages
> containing help info, user guides etc. There's quite a lot of mark-up in
> the pages, for example:
>
>
><h3>help section 1</h3>
><p>some useful info</p>
><p>some more useful info</p>
>
> I need to make the content multi-language, and can think of a couple of
> ways to go about it.
>
> 1. The obvious: use a message bundle. The problem I can see with this is
> that (afaik) it's not possible to put html markup into a message bundle
> and have it rendered on the page. It's generally treated as part of the
> text and displayed by the browser instead of being used to format the
> text. Hence even the tiny snippet above would require three entries in
> the message bundle. With the pages I'm looking at the grand total of
> entries in the message bundle would be into 4 figures!
>
> 2. Use the current locale to load files from a dynamic url, (I use
> clayImport to pull them into my layout), so I'd have
> /static_content/en/, /static_content/fr/, and then have an English,
> French etc. copy of each html page.
>
You might try a bit of EL here.
url="/static_content/#{view.locale}/xxx.html"
I'm not sure about this one because the expression of the url is evaluated
early and not managed as a ValueBinding object.
> Personally I lean towards the second solution, but was curious whether
> there is some clever Clay-way of getting markup from a message bundle to
> actually be used as markup by the browser?
>
This might be something that would be worth adding to the clayInput or a
one-off of it.
If you come up with some new flavor, please share it.
> Cheers,
> Ian.
>
Gary
>
>