int allowedUntranslated = defsize > 10 ? 3 : 0;
if (approved >= defsize - allowedUntranslated) {
approved = defsize;
}
if (defsize == 0) {
<BUG>progress.addProperty(langCode, 0);
</BUG>
} else {
<BUG>progress.addProperty(langCode, (int) ((approved / defsize) * 100));
</BUG>
}

int allowedUntranslated = defsize > 10 ? 3 : 0;
if (approved >= defsize - allowedUntranslated) {
approved = defsize;
}
if (defsize == 0) {
progress.put(langCode, 0);
} else {
progress.put(langCode, (int) ((approved / defsize) * 100));
}
