Skip to Content
0

Design Studio - Localize Dialog Buttons

Dec 27, 2016 at 09:37 PM

204

avatar image

SAP Design Studio has a nice feature to define buttons inside of the footer of a 'Dialog' component:

The 'Dialog' component is one of the standard 'Container Components'.

My question is if there is a way to localize the text of these buttons, i.e. apply strings defined inside of a TEXT_POOL to these buttons? I see we can define the button text in the 'Add/Edit Dialog Footer Buttons' popup (see the screenshot), but I do not see a way to reference these buttons and to set their text in a script.

I would think that the 'Button Key' value would allow me to reference the button inside of a script function, but the editor does not recognize a component whose name is the button-key.

I am using SAP Design Studio 1.6 SP02 Patch 2.

Any insight or assistance would be greatly appreciated.

Regards,

- Knoa Support

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mustafa Bensan Dec 28, 2016 at 04:06 AM
0

Hi Knoa,

The Dialog component does not have a script method to dynamically allow you to change the text of the buttons. However, if you simply wish to provide localized static text for the buttons, you do not need to specify strings in a TEXT_POOL component. If you use the Translation Management Tool, I expect you should be able to see the Dialog button texts as part of the application texts, where you can specify the translations for the required languages.

Regards,

Mustafa.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hello Mustafa,

Thank you, I see that the dialog button text is available for localization in the Translation Management Tool.

I was under the impression that only strings from the TEXT_POOL component could be localized.

Regards,

- Knoa Support

0

Hi Knoa,

The TEXT_POOL component only requires strings to be defined if you need to dynamically assign localised texts at run-time. Otherwise, you can simply create an empty TEXT_POOL component and perform static translations in the Translation Management Tool.

Regards,

Mustafa.

0