Skip to content

Commit

Permalink
added translations for disposal rules order panel buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
SugaryLump committed Feb 7, 2025
1 parent a712e74 commit 6d32c46
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2173,6 +2173,14 @@ SafeHtml representationInformationAssociatedWithDescription(String field, String

String editRulesOrder();

String editRulesOrderTop();

String editRulesOrderUp();

String editRulesOrderDown();

String editRulesOrderBottom();

String confirmChangeRulesOrder();

String deleteDisposalRuleDialogTitle();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private void createOrderButtons() {

private void createTopButton() {
Button buttonTop = new Button();
buttonTop.setText("top");
buttonTop.setText(messages.editRulesOrderTop());
buttonTop.addStyleName("btn btn-block btn-default btn-top");
buttonTop.addClickHandler(clickEvent -> {
if (selectedRule != null && selectedIndex != 0) {
Expand All @@ -148,7 +148,7 @@ private void createTopButton() {

private void createUpButton() {
Button buttonUp = new Button();
buttonUp.setText("up");
buttonUp.setText(messages.editRulesOrderUp());
buttonUp.addStyleName("btn btn-block btn-default btn-up");
buttonUp.addClickHandler(clickEvent -> {
int previousIndex = selectedIndex - 1;
Expand All @@ -166,7 +166,7 @@ private void createUpButton() {

private void createDownButton() {
Button buttonDown = new Button();
buttonDown.setText("down");
buttonDown.setText(messages.editRulesOrderDown());
buttonDown.addStyleName("btn btn-block btn-default btn-down");
buttonDown.addClickHandler(clickEvent -> {
int nextIndex = selectedIndex + 1;
Expand All @@ -184,7 +184,7 @@ private void createDownButton() {

private void createBottomButton() {
Button buttonBottom = new Button();
buttonBottom.setText("bottom");
buttonBottom.setText(messages.editRulesOrderBottom());
buttonBottom.addStyleName("btn btn-block btn-default btn-bottom");
buttonBottom.addClickHandler(clickEvent -> {
int lastIndex = disposalRules.getObjects().size() - 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1501,6 +1501,10 @@ disposalRulePreviewButtonText:Preview
disposalTitle:Disposal
conditionActualParent:Actual parent
editRulesOrder:Edit rules order
editRulesOrderTop:Top
editRulesOrderUp:Up
editRulesOrderDown:Down
editRulesOrderBottom:Bottom
confirmChangeRulesOrder:Are you sure you want to change the order of the disposal rules?
deleteDisposalRuleDialogTitle:Remove disposal rule
deleteDisposalRuleDialogMessage:Are you sure you want to remove the disposal rule {0}?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,10 @@ disposalRulePreviewButtonText:Pré-visualização
disposalTitle:Eliminação
conditionActualParent:Pai atual
editRulesOrder:Ordenar condições
editRulesOrderTop:Topo
editRulesOrderUp:Cima
editRulesOrderDown:Baixo
editRulesOrderBottom:Fundo
confirmChangeRulesOrder:Tem a certeza que prentende alterar a ordem das condições de eliminação?
deleteDisposalRuleDialogTitle:Remover condição de eliminação
deleteDisposalRuleDialogMessage:Tem a certeza que pretende remover a condição de eliminação {0}?
Expand Down

0 comments on commit 6d32c46

Please sign in to comment.