Skip to content

Conversation

@massx1
Copy link
Contributor

@massx1 massx1 commented Dec 30, 2025

No description provided.

@ilgrosso ilgrosso changed the title [SYNCOPE-1942] added getString to retrieve the label from localizatio… [SYNCOPE-1942] added getString to retrieve the label from localization properties file Dec 30, 2025
Copy link
Member

@ilgrosso ilgrosso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides what reported above, the same approach should be applied to extPages in the same way


BookmarkablePageLink<Page> link = new BookmarkablePageLink<>("idmPage", item.getModelObject());
link.add(new Label("idmPageLabel", ann.label()));
link.add(new Label("idmPageLabel", getString(ann.label())));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the getString() variant with default, e.g.

getString(ann.label(), null, ann.label())

so it will work even when the actual translation is not available


BookmarkablePageLink<Page> link = new BookmarkablePageLink<>("amPage", item.getModelObject());
link.add(new Label("amPageLabel", ann.label()));
link.add(new Label("amPageLabel", getString(ann.label())));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

sessionExpiration.header=Session Expiration
sessionExpiration.body=Your session is about to expire. Please select the appropriate option to keep working.
sessionExpiration.extend=Extend

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These labels shall be provided in the same module where the corresponding page is located, e.g. ``client/idm/console/src/main/resources/...forTopology`

The other two labels are useless and should be removed.

@ilgrosso
Copy link
Member

@massx1 welcome back!
Have you already linked your GitHub and ASF accounts by https://gitbox.apache.org/boxer/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants