public String translate(String key,Map<String,String> replacements){
  String str=translate(key);
  for (  Map.Entry<String,String> replacement : replacements.entrySet()) {
    str=str.replaceAll(replacement.getKey(),replacement.getValue());
  }
  return str;
}

public String translate ( String key , Map < String , String > replacements ) { String str = translate ( key ) ; for ( Map . Entry < String , String > replacement : replacements . entrySet ( ) ) { str = str . replaceAll ( replacement . getKey ( ) , replacement . getValue ( ) ) ; } return str ; }
gets the localization of a key , but applying a set of replacement strings .
