• Post Reply Bookmark Topic Watch Topic
  • New Topic

Internationalization - large slabs of text in a jsp?  RSS feed

 
marten kay
Ranch Hand
Posts: 188
Java jQuery Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am in the process of designing a simple web-app with internationalization. Having completed the Java internationalization tutorial I sort of understand JSTL and the ResourceBundle class. My question relates to large sections of text.

The ResourceBundle seems designed for short and simple phrases for labels, buttons etc, but doesn't seem appropriate for large slabs of text that may include paragraphs and markup such as <b> Bold </b>.

Did I miss something in the tutorial? I can envisage a workaround, but what is the best way to internationalize large slabs of text in a JSP?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what constitutes appropriateness is in the eye of the beholder

It's certainly possible to use standard I18N properties files for longish text (you can make it easier to deal with by using the line continuation character "\").

Maybe a better way would be to use a CMS.
 
marten kay
Ranch Hand
Posts: 188
Java jQuery Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, that makes sense with what I understand, I was thinking of designing my own little CMS using xml.

Can markup such <b> bold </b> and <br> be used in resource bundle, and equal signs (=). I can't see why not.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!