P
Paul Vincent Craven
I've seen about 3 ways to internationalize a web app. I'm looking for
opinions from people that have actually internationalized a large app.
Here is what I've seen:
1. Pull all strings out of web pages and put in resource bundles.
This appears to be very popular in web site tutorials.
2. Use different JSP's with extensions based on locale and language.
This is Sun's J2EE recommended pattern. E.g:
index.jsp
index_en.jsp
index_es.jsp
index_US_es.jsp
3. Put JSP's in different directories, and have the directory carry
the extension. I saw this in a portlet sample code. Example:
docs/index.jsp
docs_en/index.jsp
docs_es/index.jsp
docs_US_en/index.jsp
I'm sure there are other options. Here are my problems:
1. I hate the idea of pulling every string out of my JSP. This would
be a lot of work and hard to maintain. Very difficult to use any
visual editor on such a file.
2 and 3: If you change one JSP, you have to change the JSP's for
every other language.
Is there something better? Is one of these solutions better than another?
Paul Vincent Craven
(e-mail address removed)
http://www.cravenfamily.com
opinions from people that have actually internationalized a large app.
Here is what I've seen:
1. Pull all strings out of web pages and put in resource bundles.
This appears to be very popular in web site tutorials.
2. Use different JSP's with extensions based on locale and language.
This is Sun's J2EE recommended pattern. E.g:
index.jsp
index_en.jsp
index_es.jsp
index_US_es.jsp
3. Put JSP's in different directories, and have the directory carry
the extension. I saw this in a portlet sample code. Example:
docs/index.jsp
docs_en/index.jsp
docs_es/index.jsp
docs_US_en/index.jsp
I'm sure there are other options. Here are my problems:
1. I hate the idea of pulling every string out of my JSP. This would
be a lot of work and hard to maintain. Very difficult to use any
visual editor on such a file.
2 and 3: If you change one JSP, you have to change the JSP's for
every other language.
Is there something better? Is one of these solutions better than another?
Paul Vincent Craven
(e-mail address removed)
http://www.cravenfamily.com