Commit cc9daee0 authored by Luna Riegel's avatar Luna Riegel
Browse files

Style: Add Localizations to Checker

parent 18793c04
Pipeline #12136 passed with stage
in 2 minutes and 17 seconds
......@@ -35,12 +35,18 @@ CheckDialog.validationConfiguration=Validation Configuration
CheckDialog.xmlReportsOption=Create XML reports
Checker.checkFeature=Checking feature: {}
Checker.checksFinished=Finished executing checks
Checker.dbStillUnresponsive=Checker still unable to load some CityObjects from database!
Checker.dbUnresponsive=Checker could not load some CityObjects from database!
Checker.executeCheck=Executing check: {}
Checker.failPdf=Failed to write PDF Report.
Checker.failReports=Failed to write reports.
Checker.failXml=Failed to write XML Error Report.
Checker.finishedSchematron=Finished Schematron validation
Checker.futuresCheckFailures=Encountered check failures due to the following errors:
Checker.schematronValidation=Schematron-validation thread started
Checker.shutdownInterrupted=Main Thread got interrupted during ThreadPool shutdown
Checker.validationInterrupted=Validation aborted: Checker got interrupted
Checker.waitAndRetry=Waiting a second before retrying...
Checks.missingCheck=Could not find check for id: {}
CityDoctorController.exportSuccess=Successfully exported feature
CityDoctorController.noDatamodel=Datamodel is null, no checks could be done
......
......@@ -35,12 +35,18 @@ CheckDialog.validationConfiguration=Validierungskonfiguration
CheckDialog.xmlReportsOption=XML Berichte erstellen
Checker.checkFeature=Pr\u00fcfe Feature: {}
Checker.checksFinished=Pr\u00fcfungen beendet
Checker.dbStillUnresponsive=Pr\u00fcfung konnte weiterhin einige CityObjects nicht aus der Datenbank laden!
Checker.dbUnresponsive=Pr\u00fcfung konnte einige CityObjects nicht aus der Datenbank laden!
Checker.executeCheck=F\u00fchre Pr\u00fcfung aus: {}
Checker.failPdf=Konnte PDF Fehlerbericht nicht schreiben.
Checker.failReports=Konnte Pr\u00fcfberichte nicht schreiben.
Checker.failXml=Konnte XML Fehlerbericht nicht schreiben.
Checker.finishedSchematron=Schematron Pr\u00fcfung abgeschlossen
Checker.futuresCheckFailures=Einige Pr\u00fcfungen sind aufgrund folgender Fehler fehlgeschlagen:
Checker.schematronValidation=Starte Schematron Pr\u00fcfung parallel
Checker.shutdownInterrupted=Main-Thread hat einen Interrupt-Befehl whrend dem ThreadPool shutdown erhalten
Checker.validationInterrupted=Validierung abgebrochen: Pr\u00fcfung hat Interrupt-Befehl erhalten
Checker.waitAndRetry=Wiederhole Pr\u00fcfung nach kurzer Wartezeit ...
Checks.missingCheck=Konnte keine Pr\u00fcfung f\u00fcr id {} finden
CityDoctorController.exportSuccess=Feature export erfolgreich abgeschlossen
CityDoctorController.noDatamodel=Datenmodell ist null, keine Pr\u00fcfungen konnten ausgef\u00fchrt werden
......
......@@ -664,14 +664,13 @@ public class Checker {
List<Future<GmlId>> futures = runChecksOnFeatures(exec, cache, features, checkedCount, l);
List<GmlId> missedFeatures = getMissedFeatures(futures);
if (!missedFeatures.isEmpty()){
logger.warn("Checker could not load some CityObjects from database!");
logger.info("Waiting a second before retrying...");
logger.warn(Localization.getText("Checker.dbUnresponsive"));
logger.info(Localization.getText("Checker.waitAndRetry"));
Thread.sleep(1000);
futures = runChecksOnFeatures(exec, cache, missedFeatures, checkedCount, l);
missedFeatures = getMissedFeatures(futures);
if (!missedFeatures.isEmpty()){
//TODO: Localize String
logger.error("Checker still unable to load some CityObjects from database!");
logger.error(Localization.getText("Checker.dbStillUnresponsive"));
if (logger.isDebugEnabled()){
logger.debug(missedFeatures.toString());
}
......@@ -683,8 +682,7 @@ public class Checker {
}
} catch (InterruptedException e){
// No interrupts implemented, so this block should actually never be entered
//TODO: Localize String
logger.error("Validation aborted: Checker got interrupted", e);
logger.error(Localization.getText("Checker.validationInterrupted"), e);
Thread.currentThread().interrupt();
} finally {
......@@ -696,7 +694,7 @@ public class Checker {
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
logger.error("Main Thread got interrupted during ThreadPool shutdown");
logger.error(Localization.getText("Checker.shutdownInterrupted"));
}
}
}
......@@ -749,7 +747,7 @@ public class Checker {
}
}
if (!errors.isEmpty()) {
logger.error("Encountered check failures due to the following errors:");
logger.error(Localization.getText("Checker.futuresCheckFailures"));
logger.error(errors.toString());
}
return missedList;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment