i18n using resource bundle

K

Kent Tong

Dear all,

Have you tried using resource bundles to internationalize your
jsp (or struts) web site? This approach is suggested by most
of the docs, but it is scaring the hell out of me: *all* the
text strings used on the web site will have to be included in
a single properties (text) file. How can multiple web
developers/designers work on a single text file simultaneous?
 
J

Jared MacDonald

Have you tried using resource bundles to internationalize your
jsp (or struts) web site? This approach is suggested by most
of the docs, but it is scaring the hell out of me: *all* the
text strings used on the web site will have to be included in
a single properties (text) file. How can multiple web
developers/designers work on a single text file simultaneous?

Certainly doesn't have to be a single file. You could use one file per
JSP or one file per set of related JSPs. There is no limit to the
relationship between JSPs and resource bundles.

Look at the fmt:bundle tag. It allows you to specify (via the baseName
attribute) what file the fmt:message tags, etc., inside it will use to
look up strings.
 
K

Kent Tong

Certainly doesn't have to be a single file. You could use one file per
JSP or one file per set of related JSPs. There is no limit to the
relationship between JSPs and resource bundles.

Look at the fmt:bundle tag. It allows you to specify (via the baseName
attribute) what file the fmt:message tags, etc., inside it will use to
look up strings.

Thanks for the info. So, we must not use the i18n support in
struts in order to have one resource bundle per file?

I've also tried the jakarta taglibs' i18n tags. Even if the
browser prefers Chinese in Taiwan (zh-tw), the <i18n:bundle>
tag still sets the page encoding to GB2312 (the Mainland
encoding. In Taiwan, the people use BIG5). Is there a way
to force it to use say UTF-8?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top