Skip to content

Commit

Permalink
MID-9481 fixed translations for role cluster/session types
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Mar 1, 2024
1 parent 71ba9d5 commit b221995
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void update(@NotNull AnActionEvent e) {

String text = selected.getTypeQName().getLocalPart();

String value = ApplicationManager.getApplication().getService(MidPointLocalizationService.class).translate("ObjectType." + text, text);
String value = ApplicationManager.getApplication().getService(MidPointLocalizationService.class).translate("ObjectTypes." + selected.name(), text);
getTemplatePresentation().setText(value);
e.getPresentation().setText(value);
}
Expand Down Expand Up @@ -92,7 +92,7 @@ public void update(@NotNull AnActionEvent e) {

String text = type.getTypeQName().getLocalPart();

String value = ApplicationManager.getApplication().getService(MidPointLocalizationService.class).translate("ObjectType." + text, text);
String value = ApplicationManager.getApplication().getService(MidPointLocalizationService.class).translate("ObjectTypes." + type.name(), text);
getTemplatePresentation().setText(value);
e.getPresentation().setText(value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void customizeCellRenderer(@NotNull JTree tree, Object value, boolean sel
ObjectTypes type = (ObjectTypes) userObject;
String text = type.getTypeQName().getLocalPart();

value = ApplicationManager.getApplication().getService(MidPointLocalizationService.class).translate("ObjectType." + text, text);
value = ApplicationManager.getApplication().getService(MidPointLocalizationService.class).translate("ObjectTypes." + type.name(), text);
} else if (userObject instanceof ObjectType) {
ObjectType ot = (ObjectType) userObject;
value = MidPointUtils.getOrigFromPolyString(ot.getName());
Expand Down

0 comments on commit b221995

Please sign in to comment.