Skip to content

Commit

Permalink
JNG-6033 modeled features
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Dec 6, 2024
1 parent e3fcde1 commit 22f8677
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,10 @@ public static Map<String, String> getApplicationTranslations(Application applica
}
});

List<VisualElement> inputsWithLabel = new ArrayList<>();
collectVisualElementsMatchingCondition(container, (v) -> v instanceof Input input && input.getTooltipText() != null && !input.getTooltipText().isEmpty(), inputsWithLabel);
List<VisualElement> inputsWithTooltips = new ArrayList<>();
collectVisualElementsMatchingCondition(container, (v) -> v instanceof Input input && input.getTooltipText() != null && !input.getTooltipText().isEmpty(), inputsWithTooltips);

inputsWithLabel.forEach(i -> {
inputsWithTooltips.forEach(i -> {
translations.put(getTranslationKeyForVisualElement(i) + ".tooltip", ((Input) i).getTooltipText());
});

Expand Down

0 comments on commit 22f8677

Please sign in to comment.