import net.sf.locale4j.format.Tmx20; import net.sf.locale4j.storage.HashTableStore; import java.io.FileOutputStream; public class HelloWorld { public static void main(String[] args) { HashTableStore store = new HashTableStore(); store.put(new Locale("en"), "helloWorld", "Hello, World!"); Tmx20 tmx = new Tmx20(); FileOutputStream ostream = new FileOutputStream("translations.xml"); tmx.write(ostream, store); ostream.close(); } }