In this post I want to show a quick example of how to internationalize your application in a easy simple way by taking advantage of MessageFormat class.
The design is fairly simple: for each single locale/language we have a properties file with translated messages. At the start we load the properties into a MessageGenerator object and [...]
Internationalization with MessageFormat
What is MessageFormat?
There are many ways to create a user readable message in Java, differing in the complication level, performance and capabilities. The easiest is to create the String message by using “+” operator and casting all message parameters to string. If the message is longer or more complicated you can use StringBuilder instead. For more advanced [...]