• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Internationalization - large slabs of text in a jsp?

 
Ranch Hand
Posts: 226
1
jQuery Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 koomen
Ranch Hand
Posts: 226
1
jQuery Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic