GeeCON Prague 2014*
The moose likes Struts and the fly likes How to localize checkboxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to localize checkboxes" Watch "How to localize checkboxes" New topic
Author

How to localize checkboxes

Ed Mahoney
Greenhorn

Joined: Sep 19, 2000
Posts: 14
Hi All,
I understand the 'standard' way to use multiboxes. The example is pretty clear, but it strikes me as being impossible to localize. The examples all show the strings hard-coded in the form bean. Which is exactly opposite the intent of putting all your strings in nice, neat properties files that will be automatically swapped for the correct language at run time. How can you access the properties file in your form bean so you populate the String array that you are passing to the multibox?
Thanks,
Ed
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
I don't understand? The value of a multibox is purely a behind-the-scenes thing, so there's no need for i18n. The user-elements for the checkbox, such as alt text, title and label can be rendered in the usual, internationalized way. Am I missing something?
- Peter
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to localize checkboxes