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 ...@@ -35,12 +35,18 @@ CheckDialog.validationConfiguration=Validation Configuration
CheckDialog.xmlReportsOption=Create XML reports CheckDialog.xmlReportsOption=Create XML reports
Checker.checkFeature=Checking feature: {} Checker.checkFeature=Checking feature: {}
Checker.checksFinished=Finished executing checks 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.executeCheck=Executing check: {}
Checker.failPdf=Failed to write PDF Report. Checker.failPdf=Failed to write PDF Report.
Checker.failReports=Failed to write reports. Checker.failReports=Failed to write reports.
Checker.failXml=Failed to write XML Error Report. Checker.failXml=Failed to write XML Error Report.
Checker.finishedSchematron=Finished Schematron validation Checker.finishedSchematron=Finished Schematron validation
Checker.futuresCheckFailures=Encountered check failures due to the following errors:
Checker.schematronValidation=Schematron-validation thread started 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: {} Checks.missingCheck=Could not find check for id: {}
CityDoctorController.exportSuccess=Successfully exported feature CityDoctorController.exportSuccess=Successfully exported feature
CityDoctorController.noDatamodel=Datamodel is null, no checks could be done CityDoctorController.noDatamodel=Datamodel is null, no checks could be done
......
...@@ -35,12 +35,18 @@ CheckDialog.validationConfiguration=Validierungskonfiguration ...@@ -35,12 +35,18 @@ CheckDialog.validationConfiguration=Validierungskonfiguration
CheckDialog.xmlReportsOption=XML Berichte erstellen CheckDialog.xmlReportsOption=XML Berichte erstellen
Checker.checkFeature=Pr\u00fcfe Feature: {} Checker.checkFeature=Pr\u00fcfe Feature: {}
Checker.checksFinished=Pr\u00fcfungen beendet 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.executeCheck=F\u00fchre Pr\u00fcfung aus: {}
Checker.failPdf=Konnte PDF Fehlerbericht nicht schreiben. Checker.failPdf=Konnte PDF Fehlerbericht nicht schreiben.
Checker.failReports=Konnte Pr\u00fcfberichte nicht schreiben. Checker.failReports=Konnte Pr\u00fcfberichte nicht schreiben.
Checker.failXml=Konnte XML Fehlerbericht nicht schreiben. Checker.failXml=Konnte XML Fehlerbericht nicht schreiben.
Checker.finishedSchematron=Schematron Pr\u00fcfung abgeschlossen Checker.finishedSchematron=Schematron Pr\u00fcfung abgeschlossen
Checker.futuresCheckFailures=Einige Pr\u00fcfungen sind aufgrund folgender Fehler fehlgeschlagen:
Checker.schematronValidation=Starte Schematron Pr\u00fcfung parallel 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 Checks.missingCheck=Konnte keine Pr\u00fcfung f\u00fcr id {} finden
CityDoctorController.exportSuccess=Feature export erfolgreich abgeschlossen CityDoctorController.exportSuccess=Feature export erfolgreich abgeschlossen
CityDoctorController.noDatamodel=Datenmodell ist null, keine Pr\u00fcfungen konnten ausgef\u00fchrt werden CityDoctorController.noDatamodel=Datenmodell ist null, keine Pr\u00fcfungen konnten ausgef\u00fchrt werden
......
...@@ -664,14 +664,13 @@ public class Checker { ...@@ -664,14 +664,13 @@ public class Checker {
List<Future<GmlId>> futures = runChecksOnFeatures(exec, cache, features, checkedCount, l); List<Future<GmlId>> futures = runChecksOnFeatures(exec, cache, features, checkedCount, l);
List<GmlId> missedFeatures = getMissedFeatures(futures); List<GmlId> missedFeatures = getMissedFeatures(futures);
if (!missedFeatures.isEmpty()){ if (!missedFeatures.isEmpty()){
logger.warn("Checker could not load some CityObjects from database!"); logger.warn(Localization.getText("Checker.dbUnresponsive"));
logger.info("Waiting a second before retrying..."); logger.info(Localization.getText("Checker.waitAndRetry"));
Thread.sleep(1000); Thread.sleep(1000);
futures = runChecksOnFeatures(exec, cache, missedFeatures, checkedCount, l); futures = runChecksOnFeatures(exec, cache, missedFeatures, checkedCount, l);
missedFeatures = getMissedFeatures(futures); missedFeatures = getMissedFeatures(futures);
if (!missedFeatures.isEmpty()){ if (!missedFeatures.isEmpty()){
//TODO: Localize String logger.error(Localization.getText("Checker.dbStillUnresponsive"));
logger.error("Checker still unable to load some CityObjects from database!");
if (logger.isDebugEnabled()){ if (logger.isDebugEnabled()){
logger.debug(missedFeatures.toString()); logger.debug(missedFeatures.toString());
} }
...@@ -683,8 +682,7 @@ public class Checker { ...@@ -683,8 +682,7 @@ public class Checker {
} }
} catch (InterruptedException e){ } catch (InterruptedException e){
// No interrupts implemented, so this block should actually never be entered // No interrupts implemented, so this block should actually never be entered
//TODO: Localize String logger.error(Localization.getText("Checker.validationInterrupted"), e);
logger.error("Validation aborted: Checker got interrupted", e);
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();
} finally { } finally {
...@@ -696,7 +694,7 @@ public class Checker { ...@@ -696,7 +694,7 @@ public class Checker {
} catch (InterruptedException e) { } catch (InterruptedException e) {
Thread.currentThread().interrupt(); 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 { ...@@ -749,7 +747,7 @@ public class Checker {
} }
} }
if (!errors.isEmpty()) { if (!errors.isEmpty()) {
logger.error("Encountered check failures due to the following errors:"); logger.error(Localization.getText("Checker.futuresCheckFailures"));
logger.error(errors.toString()); logger.error(errors.toString());
} }
return missedList; 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