* @return the translated text with the given value where required
*/
static public String trans(StringId id, Object... values) {
* @return the translated text with the given value where required
*/
static public String trans(StringId id, Object... values) {
List<TypeInfo> types = new LinkedList<TypeInfo>();
types.add(new TypeInfo("ENCODING", "b"));
List<TypeInfo> types = new LinkedList<TypeInfo>();
types.add(new TypeInfo("ENCODING", "b"));
Data photo = new Data(types, "PHOTO", b64, null);
contact.add(photo);
} catch (IOException e) {
Data photo = new Data(types, "PHOTO", b64, null);
contact.add(photo);
} catch (IOException e) {
if (photo != null) {
String filename = contact.toString(format, "");
File f = new File(dir, filename + ".png");
if (photo != null) {
String filename = contact.toString(format, "");
File f = new File(dir, filename + ".png");