• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internationalization

 
Pres Brawner
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Imagine this. You've got an interface that has to be translated into several languages.
Every button label, ever mnemonic/accelerator, window title, all text that is user visible.
What is your approach?
Pres
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Resource Bundles. This is how you do it:

The resource bundles get created this way:

You can leave the locale selection up to the user and you simply provide resource bundles with your application for all of the possible locales. Then when the user selects their locale, things like warnings and errors, component labels, status messages, etc. can all be taken from the appropriate resource bundle for the selected locale.
 
Pres Brawner
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very slick!
I like this solution a lot.
Many thanks,
Pres
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Happy to help!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic