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
19cb2923
Commit
19cb2923
authored
2 months ago
by
Riegel
Browse files
Options
Download
Email Patches
Plain Diff
Feat: Add localization setup
parent
f933e985
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
+22
-0
...java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
with
22 additions
and
0 deletions
+22
-0
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
+
22
-
0
View file @
19cb2923
...
@@ -74,6 +74,8 @@ public class ZipEntryPicker {
...
@@ -74,6 +74,8 @@ public class ZipEntryPicker {
private
CityDoctorController
controller
;
private
CityDoctorController
controller
;
private
String
unknownValueText
=
Localization
.
getText
(
"ZipEntryPicker.unknownValue"
);
public
ZipEntryPicker
(
Window
parent
,
CityDoctorController
controller
)
throws
IOException
{
public
ZipEntryPicker
(
Window
parent
,
CityDoctorController
controller
)
throws
IOException
{
FXMLLoader
loader
=
new
FXMLLoader
(
ZipEntryPicker
.
class
.
getResource
(
"ZipEntryPicker.fxml"
));
FXMLLoader
loader
=
new
FXMLLoader
(
ZipEntryPicker
.
class
.
getResource
(
"ZipEntryPicker.fxml"
));
loader
.
setController
(
this
);
loader
.
setController
(
this
);
...
@@ -94,6 +96,26 @@ public class ZipEntryPicker {
...
@@ -94,6 +96,26 @@ public class ZipEntryPicker {
public
void
initialize
()
{
public
void
initialize
()
{
applyLanguageControls
();
applyLanguageControls
();
applyLocalization
();
}
private
void
applyLocalization
()
{
entriesPane
.
setText
(
Localization
.
getText
(
"ZipEntryPicker.entryListTitle"
));
metadataPane
.
setText
(
Localization
.
getText
(
"ZipEntryPicker.metadata"
));
subpathLbl
.
setText
(
Localization
.
getText
(
"ZipEntryPicker.subpathLbl"
));
erroneousLbl
.
setText
(
Localization
.
getText
(
"ZipEntryPicker.erroneousLbl"
));
filesizeLbl
.
setText
(
Localization
.
getText
(
"ZipEntryPicker.filesizeLbl"
));
validatedLbl
.
setText
(
Localization
.
getText
(
"ZipEntryPicker.validatedLbl"
));
objectCountLbl
.
setText
(
Localization
.
getText
(
"ZipEntryPicker.objectCountLbl"
));
subpathValueTxt
.
setText
(
unknownValueText
);
erroneousValue
.
setText
(
unknownValueText
);
filesizeValue
.
setText
(
unknownValueText
);
validatedValue
.
setText
(
unknownValueText
);
objectCountValue
.
setText
(
unknownValueText
);
loadBtn
.
setText
(
Localization
.
getText
(
"ZipEntryPicker.loadBtn"
));
cancelBtn
.
setText
(
Localization
.
getText
(
"ZipEntryPicker.cancelBtn"
));
}
}
private
void
applyLanguageControls
()
{
private
void
applyLanguageControls
()
{
...
...
This diff is collapsed.
Click to expand it.
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