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
[sap.m.upload.UploadSet] sap.m.IllustratedMessage does not bind i18n text, and illustrationType requires special prefix #4037
Comments
{i18n>myText}
, and illustrationType requires special naming
Hi @henriquemattos ,
About the i18n model values, can I ask you to set-up an example of how your view is designed the model is binded? Best regards, |
Hi, @PetyaMarkovaBogdanova . Took me some time to understand and process your comment. Thank you for explaining about the registration of IllustrationPool. I have done it for IconPool, but not for IllustrationMessageType, and still it was working for "high-level" IllustrationMessage. It does not work specifically for the UploadSet, and that was my confusion. I will try registering, but maybe it's worth to highlight this in the documentation? Or have I missed the information there? About the i18n models, I use the manifest.json to bind the models, and then I only need to access it using Thank you once again for explaining the registering of the IllustrationPool, I missed it before. Kind regards, |
Hello @henriquemattos , |
Hello @henriquemattos, The created incident: DINC0145671 is with the UploadSet Development team. In order to better process the issue would it be possible to provide us with an Application URL, where we can retest the similar behavior Or any location where we can test the above mentioned behavior? Thanks, |
OpenUI5 version: 1.123.1 (actually it's SAPUI5, not OpenUI5)
Browser/version (+device/version): (irrelevant, but Firefox Developer Edition latest on macOS)
Any other tested browsers/devices(OK/FAIL): (yes, Chrome and Safari on macOS)
Steps to reproduce the problem:
illustratedMessage
tosap.m.upload.UploadSet
title
anddescription
with i18n variable i.e.title="{i18n>myText}"
illustrationType="SearchEarth"
additionalContent
with a button andtext="{i18n>uploadButton}"
What is the expected result?
I would expect the texts and the illustrated message to be rendered.
What happens instead?
The
title
anddescription
fallback to the default text since they are "empty". The button has no text, and no illustration message is displayed. I've tried to use the other pattern likeillustrationType="tnt-SearchEarth"
but an error occurs, the image is not found.Any other information? (attach screenshot if possible)
After reading the source code from latest commits, I've found this QUnit test where the illustration type has a prefix
sapIllus-
. This has worked, soillustrationType="sapIllus-SearchEarth"
is displayed correctly. The text can be hardcoded and are displayed, but I miss the internationalization feature.Here's a sample code of how I expected it to be:
The text was updated successfully, but these errors were encountered: