I have an HTML template that contains a letter in two languages, EG German & English. I should fill in the same data in both languages.Excerpt from template:<th>Datum:</th><td>{4,date,yyyy. MM. dd}</td>....<th>Date:</th><td>'{4,date,d MMMM yyyy}'</td>I use this code fill in data:public static String fillIn( final String template, final Object... array ){    final MessageFormat f = new MessageFormat( template, Locale.DE );    final String temp = f.format( array );    f.setLocale( Locale.UK );    f.applyPattern( temp );    return f.format( array );}It does not seem to be the best solution.Is there any better way?
MessageFormat in 2 Locales
java;formatting;localization