on 09-01-2017 9:39 AM
Hi experts,
I'm developing an App using smart template, and I want to change the default Button text from 'Save' to 'Post'.
Since this button is default from Fiori element, and I can't set text in xml view file, but only in UI adaptation.
So is it possible that I set the text and give it i18n ?
(I tried to set button Text as '{i18n>BUTTON_SAVE}' and add an entry 'BUTTON_SAVE=Post' in existing i18n file. but doesn't work)
Regards,
Blangero
Hi, yes, in the manifest file you need to set the respective i18n files to the ListReport and/or ObjectPage where you want to change the text
"sap.ui5": {
...
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"uri": "i18n/i18n.properties"
},
"i18n|sap.suite.ui.generic.template.ListReport|POHeaders": {
"type": "sap.ui.model.resource.ResourceModel",
"uri": "i18n/ListReport/POHeaders/i18n.properties"
},
"i18n|sap.suite.ui.generic.template.ObjectPage|POHeaders": {
"type": "sap.ui.model.resource.ResourceModel",
"uri": "i18n/ObjectPage/POHeaders/i18n.properties"
},
"i18n|sap.suite.ui.generic.template.ObjectPage|POItems": {
"type": "sap.ui.model.resource.ResourceModel",
"uri": "i18n/ObjectPage/POItems/i18n.properties"
Source: https://sapui5.hana.ondemand.com/sdk/#/topic/b8cb649973534f08a6047692f8c6830d.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
8 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.