ie content/en_us/index_content.jsp content/en/index_content.jsp
since you'll always know which file (index_content) you want.. i'm sure you can hack a tag that will dynamically create the full file name you want, and have that passed to template:get (which i've never worked with.. so, forgive me if i'm way off base).
I tried hitting the url you gave.. it doesn't appear to be a happy url, so i can't see exactly what kind of content you're working with. Is putting the text into a database a possibility, keyed by content_id and language/locale_id ?
From: "Gary Kephart" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts-User (E-mail)" <[EMAIL PROTECTED]> Subject: Internationalizing 100's of pages of text Date: Thu, 7 Aug 2003 09:35:09 -0700
I have a web site at http://www.pobox.com/~encyclopaedia_wot. It contains 100's of pages of HTML of mostly text. I'd like to migrate this to JSPs and use Templates/Tiles because:
1) I want to better standardize the layout
2) I want the content writer to not have to worry about anything but content (by having them write only the xx_content.jsp files)
I also want to internationalize it. I've already had requests for Spanish and Hebrew versions. However, putting the text into one or more property files seems like a Really Bad Idea. So is having hundreds of definition files. What I'd like to do is have something like this:
1) a template that has a 'content' parameter
2) an index.jsp which uses the template and specifies 'index_content.jsp' as 'content'
3) have template:get search for 'index_content_en_us.jsp', then 'index_content_en.jsp' then 'index_content.jsp'.
Aside from writing my own version of template:get (which I can), is there a better, existing way of doing this?
TIA, Gary Gary Kephart | New Century Mortgage
Web-Based Application Developer | http://www.ncen.com
[EMAIL PROTECTED] | 340 Commerce
949-797-5660 | Irvine, CA 92602-1318
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]