-
Notifications
You must be signed in to change notification settings - Fork 199
[SYNCOPE-1942] added getString to retrieve the label from localization properties file #1278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…n properties file
ilgrosso
left a comment
There was a problem hiding this 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()))); |
There was a problem hiding this comment.
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()))); |
There was a problem hiding this comment.
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 | ||
|
|
There was a problem hiding this comment.
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.
|
@massx1 welcome back! |
No description provided.