System.out.println(trans.getName() + ": key " + key + " not found in translation file; added dummy # 'translation'");
t = "#" + now;
p.put(key, t);
}
// remove keys that don't exist in the main file (deleted or typo in the key)
for (Object k : new ArrayList<Object>(p.keySet())) {
String key = (String) k;
if (!main.containsKey(key)) {
p.remove(key);
}
}