Skip to content

Commit

Permalink
JNG-5443 fix missing table key in i18n for columns (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg authored Jan 29, 2024
1 parent 3c3e8a0 commit 20f386e
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,14 @@ public static String getTranslationKeyForVisualElement(VisualElement element) {
}

assert target != null;
String bare = tokenNeedsPrefix(target) ? root + "." + target.getName() : target.getName();
String bare = target.getName();
if (tokenNeedsPrefix(target)) {
if (element instanceof Column column && column.eContainer() instanceof Table table && !table.getPageContainer().isTable()) {
bare = root + "." + table.getDataElement().getName() + "." + target.getName();
} else {
bare = root + "." + target.getName();
}
}
return bare.replaceAll("::", ".");
}

Expand Down

0 comments on commit 20f386e

Please sign in to comment.