fix: i18n for TimePicker #9

Merged
pitfriedrich merged 1 commits from ai/issue-8-timepicker-i18n into main 2026-07-25 20:02:11 +00:00
4 changed files with 18 additions and 0 deletions
Showing only changes of commit e3342d0f53 - Show all commits
@@ -76,6 +76,12 @@ vorname.setAutofocus(true);
.setToday(getTranslation("form.today"))
.setCancel(getTranslation("form.cancel")));
TimePicker uhrzeit = new TimePicker(getTranslation("form.time"));
uhrzeit.setLocale(Locale.GERMANY);
uhrzeit.setI18n(new TimePicker.TimePickerI18n()
.setBadInputErrorMessage(getTranslation("form.time.badInput"))
.setRequiredErrorMessage(getTranslation("form.time.required"))
.setMinErrorMessage(getTranslation("form.time.min"))
.setMaxErrorMessage(getTranslation("form.time.max")));
ComboBox<String> land = new ComboBox<>(getTranslation("form.country"));
land.setItems(getTranslation("country.de"), getTranslation("country.at"),
@@ -55,6 +55,10 @@ form.save=Speichern
form.reset=Zurücksetzen
form.today=Heute
form.cancel=Abbrechen
form.time.badInput=Ungültige Uhrzeit
form.time.required=Uhrzeit ist erforderlich
form.time.min=Uhrzeit liegt vor der frühesten erlaubten Zeit
form.time.max=Uhrzeit liegt nach der spätesten erlaubten Zeit
country.de=Deutschland
country.at=Österreich
@@ -55,6 +55,10 @@ form.save=Save
form.reset=Reset
form.today=Today
form.cancel=Cancel
form.time.badInput=Invalid time
form.time.required=Time is required
form.time.min=Time is before the earliest allowed time
form.time.max=Time is after the latest allowed time
country.de=Germany
country.at=Austria
@@ -55,6 +55,10 @@ form.save=Guardar
form.reset=Restablecer
form.today=Hoy
form.cancel=Cancelar
form.time.badInput=Hora inválida
form.time.required=La hora es obligatoria
form.time.min=La hora es anterior a la hora mínima permitida
form.time.max=La hora es posterior a la hora máxima permitida
country.de=Alemania
country.at=Austria