Skip to content

Commit

Permalink
clean up code for missing translation check
Browse files Browse the repository at this point in the history
  • Loading branch information
nittka committed Dec 11, 2024
1 parent e281175 commit 3ead2fc
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,9 @@ public void checkLanguageStringsContainer(ContainsLanguageStrings c) {
}
}

//prepare duplicate entry checks
Set<String> languages = new HashSet<>();
AtomicInteger optionsCount = new AtomicInteger(-1);
//prepare duplicate entry checks
// boolean plMissing=true;

if (checkLocalizationDuplicates) {
int languageCount = c.getLstrings().size();
if (languageCount == 0) {
Expand Down Expand Up @@ -187,14 +185,16 @@ public void checkLanguageStringsContainer(ContainsLanguageStrings c) {
error("contains non-German quotes", l, $.getLanguageString_Langage());
}
}
// if("pl".equals(language)) {
// plMissing=false;
// }
index++;
}

// if(plMissing && c instanceof Title) {
// error("polish missing",c.getLstrings().get(0), $.getLanguageString_Langage());

// boolean plMissing = true;
// if ((globalText == null && c.getLstrings().isEmpty()) || globalText != null || languages.contains("all")
// || languages.contains("pl")) {
// plMissing = false;
// }
// if (plMissing && (c instanceof Title)) {
// error("polish missing", c.getLstrings().get(0), $.getLanguageString_Langage());
// }
}

Expand Down

0 comments on commit 3ead2fc

Please sign in to comment.