JavaUsing Java 6 to Access Translatable Text in XML Files

Using Java 6 to Access Translatable Text in XML Files

Developer.com content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

With Java’s properties files and ResourceBundleLists class, you can efficiently manage translatable text in your Java applications. Because the properties files and ResourceBundleLists class are an extensible framework, you also can adapt them to suit your particular needs. Thus, you can easily make your Java code work with translatable text in various formats, such as XML.


The mechanism that allows you to work with your preferred file format(s) in Java 6 is the ResourceBundle.Control object, which you can use in conjunction with the properties class to access XML files with ease. In his WebReference.com article, Rob Gravelle explains how to use the Java 6 ResourceBundle.Control object in conjunction with the properties class to access XML files.




Read the full story at WebReference:


Using Java 6 to Access Translatable Text in XML Files

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Latest Posts

Related Stories