Commit 19cb2923 authored by Riegel's avatar Riegel
Browse files

Feat: Add localization setup

parent f933e985
Showing with 22 additions and 0 deletions
+22 -0
...@@ -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() {
......
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