Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
cc9daee0
Commit
cc9daee0
authored
Nov 14, 2025
by
Luna Riegel
Browse files
Style: Add Localizations to Checker
parent
18793c04
Pipeline
#12136
passed with stage
in 2 minutes and 17 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization.properties
View file @
cc9daee0
...
@@ -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
...
...
CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization_de.properties
View file @
cc9daee0
...
@@ -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
\u
00fcfe Feature: {}
Checker.checkFeature
=
Pr
\u
00fcfe Feature: {}
Checker.checksFinished
=
Pr
\u
00fcfungen beendet
Checker.checksFinished
=
Pr
\u
00fcfungen beendet
Checker.dbStillUnresponsive
=
Pr
\u
00fcfung konnte weiterhin einige CityObjects nicht aus der Datenbank laden!
Checker.dbUnresponsive
=
Pr
\u
00fcfung konnte einige CityObjects nicht aus der Datenbank laden!
Checker.executeCheck
=
F
\u
00fchre Pr
\u
00fcfung aus: {}
Checker.executeCheck
=
F
\u
00fchre Pr
\u
00fcfung aus: {}
Checker.failPdf
=
Konnte PDF Fehlerbericht nicht schreiben.
Checker.failPdf
=
Konnte PDF Fehlerbericht nicht schreiben.
Checker.failReports
=
Konnte Pr
\u
00fcfberichte nicht schreiben.
Checker.failReports
=
Konnte Pr
\u
00fcfberichte nicht schreiben.
Checker.failXml
=
Konnte XML Fehlerbericht nicht schreiben.
Checker.failXml
=
Konnte XML Fehlerbericht nicht schreiben.
Checker.finishedSchematron
=
Schematron Pr
\u
00fcfung abgeschlossen
Checker.finishedSchematron
=
Schematron Pr
\u
00fcfung abgeschlossen
Checker.futuresCheckFailures
=
Einige Pr
\u
00fcfungen sind aufgrund folgender Fehler fehlgeschlagen:
Checker.schematronValidation
=
Starte Schematron Pr
\u
00fcfung parallel
Checker.schematronValidation
=
Starte Schematron Pr
\u
00fcfung parallel
Checker.shutdownInterrupted
=
Main-Thread hat einen Interrupt-Befehl whrend dem ThreadPool shutdown erhalten
Checker.validationInterrupted
=
Validierung abgebrochen: Pr
\u
00fcfung hat Interrupt-Befehl erhalten
Checker.waitAndRetry
=
Wiederhole Pr
\u
00fcfung nach kurzer Wartezeit ...
Checks.missingCheck
=
Konnte keine Pr
\u
00fcfung f
\u
00fcr id {} finden
Checks.missingCheck
=
Konnte keine Pr
\u
00fcfung f
\u
00fcr id {} finden
CityDoctorController.exportSuccess
=
Feature export erfolgreich abgeschlossen
CityDoctorController.exportSuccess
=
Feature export erfolgreich abgeschlossen
CityDoctorController.noDatamodel
=
Datenmodell ist null, keine Pr
\u
00fcfungen konnten ausgef
\u
00fchrt werden
CityDoctorController.noDatamodel
=
Datenmodell ist null, keine Pr
\u
00fcfungen konnten ausgef
\u
00fchrt werden
...
...
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/check/Checker.java
View file @
cc9daee0
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment