Java Internationalization: load string from properties
public class HelloWorld { public static void main(String s[]) { System.out.println("Hello World!"); } } import java.util.*; public class HelloWorldResources { public static void main(String [] argv) { ResourceBundle resources; try { resources = ResourceBundle.getBundle("MyData"); System.out.println(resources.getString("Hi")); } catch (MissingResourceException mre) { System.err.println("MyData.properties not found"); } } } //MyData_fr.properties Hi = Salut tout le monde! //MyData.properties Hi = Hello World!