Rework finish key

This commit is contained in:
crschnick 2024-04-24 14:47:00 +00:00
parent 35841c403d
commit bc3a4fcf15
14 changed files with 24 additions and 1 deletions

View file

@ -116,6 +116,11 @@ public class BrowserChooserComp extends SimpleComp {
var dialogPane = new DialogComp() {
@Override
protected String finishKey() {
return "select";
}
@Override
protected Comp<?> pane(Comp<?> content) {
return content;

View file

@ -60,7 +60,7 @@ public abstract class DialogComp extends Comp<CompStructure<Region>> {
.addAll(customButtons().stream()
.map(buttonComp -> buttonComp.createRegion())
.toList());
var nextButton = new ButtonComp(AppI18n.observable("finishStep"), null, this::finish)
var nextButton = new ButtonComp(AppI18n.observable(finishKey()), null, this::finish)
.apply(struc -> struc.get().setDefaultButton(true))
.styleClass(Styles.ACCENT)
.styleClass("next");
@ -68,6 +68,10 @@ public abstract class DialogComp extends Comp<CompStructure<Region>> {
return buttons;
}
protected String finishKey() {
return "finishStep";
}
protected List<Comp<?>> customButtons() {
return List.of();
}

View file

@ -165,6 +165,7 @@ stackTrace=Stakspor
previousStep=< Forrige
nextStep=Næste >
finishStep=Afslutte
select=Vælg
edit=Rediger
browseInternal=Gennemse internt
checkOutUpdate=Tjek ud-opdatering

View file

@ -171,6 +171,8 @@ previousStep=< Vorherige
nextStep=Weiter >
#custom
finishStep=Fertigstellen
#custom
select=Auswählen
edit=Bearbeiten
browseInternal=Intern durchsuchen
checkOutUpdate=Update auschecken

View file

@ -170,6 +170,8 @@ previousStep=< Previous
nextStep=Next >
#context: verb, to complete a task
finishStep=Finish
#context: to complete a selection
select=Select
edit=Edit
browseInternal=Browse Internal
checkOutUpdate=Check out update

View file

@ -165,6 +165,7 @@ stackTrace=Rastreo de pila
previousStep=< Anterior
nextStep=Siguiente
finishStep=Terminar
select=Selecciona
edit=Edita
browseInternal=Navegar internamente
checkOutUpdate=Comprueba la actualización

View file

@ -165,6 +165,7 @@ stackTrace=Trace de pile
previousStep=< Précédent
nextStep=Suivant >
finishStep=Finir
select=Sélectionne
edit=Éditer
browseInternal=Parcourir l'intérieur
checkOutUpdate=Vérifier la mise à jour

View file

@ -165,6 +165,7 @@ stackTrace=Traccia dello stack
previousStep=< Precedente
nextStep=Avanti >
finishStep=Terminare
select=Seleziona
edit=Modifica
browseInternal=Sfogliare interno
checkOutUpdate=Aggiornamento del check out

View file

@ -165,6 +165,7 @@ stackTrace=スタックトレース
previousStep=< 前へ
nextStep=次のページ
finishStep=完了する
select=選択する
edit=編集する
browseInternal=内部をブラウズする
checkOutUpdate=更新をチェックする

View file

@ -165,6 +165,7 @@ stackTrace=Stacktrack
previousStep=< Vorig
nextStep=Volgende >
finishStep=Afmaken
select=Selecteer
edit=Bewerken
browseInternal=Intern bladeren
checkOutUpdate=Uitchecken update

View file

@ -165,6 +165,7 @@ stackTrace=Rastreio de pilha
previousStep=< Anterior
nextStep=Seguinte >
finishStep=Terminar
select=Selecciona
edit=Edita
browseInternal=Navega internamente
checkOutUpdate=Verifica a atualização

View file

@ -165,6 +165,7 @@ stackTrace=Трассировка стека
previousStep=< Предыдущий
nextStep=Следующая >
finishStep=Закончи
select=Выбери
edit=Редактировать
browseInternal=Обзор внутренних
checkOutUpdate=Проверить обновление

View file

@ -165,6 +165,7 @@ stackTrace=Yığın izi
previousStep=< Önceki
nextStep=Sonraki >
finishStep=Bitirmek
select=Seçiniz
edit=Düzenle
browseInternal=Dahili Gözat
checkOutUpdate=Güncellemeye göz atın

View file

@ -165,6 +165,7 @@ stackTrace=堆栈跟踪
previousStep=< 上一页
nextStep=下一页 >
finishStep=完成
select=选择
edit=编辑
browseInternal=内部浏览
checkOutUpdate=签出更新