RE: Internationalizing 100's of pages of text

2003-08-14 Thread Gary Kephart

> -Original Message-
> From: Adam Levine [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 9:44 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Internationalizing 100's of pages of text
> 
> 
> My $0.02, just a bit OT, and an observation...if you change your 
> organization a bit, you can make life easier and you (and 
> whomever else is 
> working on your content) by using Java's i18n features in a 
> bit different 
> manner.. specifically, get a String-based version of the 
> Locale you want.. 
> make that a directory, and just load the same template file 
> from there.
> 
> 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).

Hmm. A possibility.

> 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 ?

Try this:
http://www.photeus.com:8080/ewot/index.html
I've had to monkey around with things on my system since my ISP (Cox cable) blocks 
port 80. I've set up a redirect to port 8090, which may be blocked to you. I would use 
8080, but Tomcat's on that and I've only got a Pentium Pro 200 on that machine and 
Apache's web server takes less hp than Tomcat.

As far as database, take a look at the content now and see what you think. The big 
stumbling block is that the content writers are remote, and so I'd have to set up some 
sort of remote database access and my content writers don't have much, if any, db 
experience.

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Internationalizing 100's of pages of text

2003-08-14 Thread Erik Price


Gary Kephart wrote:


As far as database, take a look at the content now and see what you think. The big stumbling block is that the content writers are remote, and so I'd have to set up some sort of remote database access and my content writers don't have much, if any, db experience.


Or you could let the content writers submit the content to you, and you 
can write a Perl or Python script that simply inserts the content into 
the database.  It's an extra step for you (both in terms of writing the 
script and having to manually run it when new content comes in), but a 
lot easier to manage than providing the content providers with direct 
access to the database.

But if your content doesn't lend itself to being used in a DB, then 
nevermind.

Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Internationalizing 100's of pages of text

2003-08-14 Thread Erik Price


Gary Kephart wrote:

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?


Is there a reason you don't want to put the content into a database?



Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Internationalizing 100's of pages of text

2003-08-14 Thread Adam Levine
My $0.02, just a bit OT, and an observation...if you change your 
organization a bit, you can make life easier and you (and whomever else is 
working on your content) by using Java's i18n features in a bit different 
manner.. specifically, get a String-based version of the Locale you want.. 
make that a directory, and just load the same template file from there.

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]


RE: Internationalizing 100's of pages of text

2003-08-10 Thread Gary Kephart


> Is there a reason you don't want to put the content into a database?

The content writers are remote, so I would have to create web access to a database. 
Too much work. Plus, I don't think that the content lends itself to databases.

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Internationalizing 100's of pages of text

2003-08-08 Thread Robert Leland
You might want to use velocity-tools, with Struts if the content is static.
It works with Struts, which would provide the controller, and 
internationalization,
and the ability create interactive pages is needed.

I believe 'Struts in Action Book' has a chapter on it's use.

-Rob

Gary Kephart wrote:

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

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Internationalizing 100's of pages of text

2003-08-07 Thread Gary Kephart
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